diff options
| -rw-r--r-- | recipes-devtools/qemu/files/fdt_header.patch | 39 | ||||
| -rw-r--r-- | recipes-devtools/qemu/qemu_fslgit.bb | 2 |
2 files changed, 41 insertions, 0 deletions
diff --git a/recipes-devtools/qemu/files/fdt_header.patch b/recipes-devtools/qemu/files/fdt_header.patch new file mode 100644 index 0000000..dccfe53 --- /dev/null +++ b/recipes-devtools/qemu/files/fdt_header.patch | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | Upstream-Status: Pending | ||
| 2 | |||
| 3 | qemu: define fdt types in libfdt_env.h from qemu | ||
| 4 | |||
| 5 | * fixes | ||
| 6 | In file included from /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/sysroots/x86_64-linux/usr/include/libfdt.h:55:0, | ||
| 7 | from /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/work/x86_64-linux/qemu-native/1.4.0-r0/qemu-1.4.0/hw/arm/../../device_tree.c:28: | ||
| 8 | /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/sysroots/x86_64-linux/usr/include/fdt.h:58:2: error: unknown type name 'fdt32_t' | ||
| 9 | /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/sysroots/x86_64-linux/usr/include/fdt.h:59:2: error: unknown type name 'fdt32_t' | ||
| 10 | /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/sysroots/x86_64-linux/usr/include/fdt.h:60:2: error: unknown type name 'fdt32_t' | ||
| 11 | /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/sysroots/x86_64-linux/usr/include/fdt.h:61:2: error: unknown type name 'fdt32_t' | ||
| 12 | /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/sysroots/x86_64-linux/usr/include/fdt.h:62:2: error: unknown type name 'fdt32_t' | ||
| 13 | /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/sysroots/x86_64-linux/usr/include/fdt.h:63:2: error: unknown type name 'fdt32_t' | ||
| 14 | /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/sysroots/x86_64-linux/usr/include/fdt.h:64:2: error: unknown type name 'fdt32_t' | ||
| 15 | /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/sysroots/x86_64-linux/usr/include/fdt.h:67:2: error: unknown type name 'fdt32_t' | ||
| 16 | /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/sysroots/x86_64-linux/usr/include/fdt.h:70:2: error: unknown type name 'fdt32_t' | ||
| 17 | /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/sysroots/x86_64-linux/usr/include/fdt.h:73:2: error: unknown type name 'fdt32_t' | ||
| 18 | /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/sysroots/x86_64-linux/usr/include/fdt.h:77:2: error: unknown type name 'fdt64_t' | ||
| 19 | /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/sysroots/x86_64-linux/usr/include/fdt.h:78:2: error: unknown type name 'fdt64_t' | ||
| 20 | /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/sysroots/x86_64-linux/usr/include/fdt.h:82:2: error: unknown type name 'fdt32_t' | ||
| 21 | /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/sysroots/x86_64-linux/usr/include/fdt.h:87:2: error: unknown type name 'fdt32_t' | ||
| 22 | /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/sysroots/x86_64-linux/usr/include/fdt.h:88:2: error: unknown type name 'fdt32_t' | ||
| 23 | /home/oe/setup-scripts/build/tmp-angstrom_next-uclibc/sysroots/x86_64-linux/usr/include/fdt.h:89:2: error: unknown type name 'fdt32_t' | ||
| 24 | |||
| 25 | Index: qemu-1.4.0/include/libfdt_env.h | ||
| 26 | =================================================================== | ||
| 27 | --- qemu-1.4.0.orig/include/libfdt_env.h 2013-02-15 23:05:35.000000000 +0000 | ||
| 28 | +++ qemu-1.4.0/include/libfdt_env.h 2013-04-13 14:17:27.918885225 +0000 | ||
| 29 | @@ -21,6 +21,10 @@ | ||
| 30 | |||
| 31 | #include "qemu/bswap.h" | ||
| 32 | |||
| 33 | +typedef uint16_t fdt16_t; | ||
| 34 | +typedef uint32_t fdt32_t; | ||
| 35 | +typedef uint64_t fdt64_t; | ||
| 36 | + | ||
| 37 | #ifdef HOST_WORDS_BIGENDIAN | ||
| 38 | #define fdt32_to_cpu(x) (x) | ||
| 39 | #define cpu_to_fdt32(x) (x) | ||
diff --git a/recipes-devtools/qemu/qemu_fslgit.bb b/recipes-devtools/qemu/qemu_fslgit.bb index ac40fb5..e3bb276 100644 --- a/recipes-devtools/qemu/qemu_fslgit.bb +++ b/recipes-devtools/qemu/qemu_fslgit.bb | |||
| @@ -9,6 +9,8 @@ PV = "1.4+fsl" | |||
| 9 | SRC_URI = "git://git.freescale.com/ppc/sdk/qemu.git" | 9 | SRC_URI = "git://git.freescale.com/ppc/sdk/qemu.git" |
| 10 | SRCREV = "8713c58725df407dbbedb48fa315248d0100720c" | 10 | SRCREV = "8713c58725df407dbbedb48fa315248d0100720c" |
| 11 | 11 | ||
| 12 | SRC_URI += "file://fdt_header.patch" | ||
| 13 | |||
| 12 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
| 13 | 15 | ||
| 14 | QEMU_TARGETS = "ppc" | 16 | QEMU_TARGETS = "ppc" |
