]> git.openpandora.org Git - openembedded.git/commitdiff
mpc83x3-rdb: Fix uImage kernel build.
authorLeon Woestenberg <leon.woestenberg@gmail.com>
Sun, 3 Feb 2008 23:10:05 +0000 (23:10 +0000)
committerLeon Woestenberg <leon.woestenberg@gmail.com>
Sun, 3 Feb 2008 23:10:05 +0000 (23:10 +0000)
conf/machine/mpc8313e-rdb.conf
conf/machine/mpc8323e-rdb.conf
packages/linux/linux.inc

index 3bc18e3f9e6c04b137791b84cb88306a98bec665..27706cbd4ae6e38956d3e838de734a06e0bd52b0 100644 (file)
@@ -10,6 +10,8 @@ PREFERRED_VERSION_u-boot = "git"
 
 MACHINE_FEATURES = "kernel26 usbhost ext2"
 
+KERNEL_IMAGETYPE = "uImage"
+
 PREFERRED_VERSION_u-boot = "1.3.1"
 UBOOT_MACHINE = "MPC8313ERDB_33_config"
 
index ee2c6144a906ca31786c24ea5eeaaa246542e265..38f3b1930c55a1da8a8bb58165d0150a16b17a2d 100644 (file)
@@ -10,6 +10,8 @@ PREFERRED_PROVIDER_virtual/kernel = "linux"
 
 MACHINE_FEATURES = "kernel26 usbhost pci ext2 uboot"
 
+KERNEL_IMAGETYPE = "uImage"
+
 PREFERRED_VERSION_u-boot = "1.1.6"
 UBOOT_MACHINE = "MPC8323ERDB_config"
 
index 23f314353e884a7b57de15d030241b3660a2d6f8..b98b722d976c0937a663b9b7e7e57d58b33204bd 100644 (file)
@@ -108,15 +108,20 @@ UBOOT_ENTRYPOINT ?= "20008000"
 
 do_compile_append() {
     if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then 
+       if test "x${ARCH}" = "xpowerpc" ; then
+               UBOOT_ARCH=ppc
+       else
+               UBOOT_ARCH=$ARCH
+       fi
         if test -e arch/${ARCH}/boot/compressed/vmlinux ; then
             ${OBJCOPY} -O binary -R .note -R .comment -S arch/${ARCH}/boot/compressed/vmlinux linux.bin
-            uboot-mkimage -A ${ARCH} -O linux -T kernel -C none -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin arch/${ARCH}/boot/uImage
+            uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C none -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin arch/${ARCH}/boot/uImage
             rm -f linux.bin
         else
             ${OBJCOPY} -O binary -R .note -R .comment -S vmlinux linux.bin
             rm -f linux.bin.gz
             gzip -9 linux.bin
-            uboot-mkimage -A ${ARCH} -O linux -T kernel -C gzip -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin.gz arch/${ARCH}/boot/uImage
+            uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C gzip -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin.gz arch/${ARCH}/boot/uImage
             rm -f linux.bin.gz
         fi
     fi