linux-dht-walnut: switch to uImage
authorKoen Kooi <koen@openembedded.org>
Wed, 26 Dec 2007 12:36:33 +0000 (12:36 +0000)
committerKoen Kooi <koen@openembedded.org>
Wed, 26 Dec 2007 12:36:33 +0000 (12:36 +0000)
conf/machine/dht-walnut.conf
packages/linux/linux-dht-walnut_2.6.20.bb

index a8a2d60..6eeb088 100644 (file)
@@ -20,6 +20,7 @@ USE_VT = "0"
 SERIAL_CONSOLE = "115200 ttyS0"
 
 PREFERRED_VERSION_u-boot = "1.1.4"
+KERNEL_IMAGETYPE = "uImage"
 
 #tune for the 405 cpu
 require conf/machine/include/tune-ppc405.inc
index 8c1d2b8..61836ac 100644 (file)
@@ -18,7 +18,6 @@ FILES_kernel-image = "/boot/zImage.elf"
 
 export OS = "Linux"
 ARCH = "ppc"
-KERNEL_OUTPUT = "arch/ppc/boot/images/zImage.elf"
 
 do_stage_append () {
 #need ppc platforms includes + friends in order for external kernel modules to compile as headers as still split
@@ -33,8 +32,11 @@ do_stage_append () {
 
 do_install_append () {
         install -d  ${DEPLOY_DIR_IMAGE}
-        install -m 0755 arch/ppc/boot/images/zImage.elf \ 
+       if [ -e arch/ppc/boot/images/zImage.elf ] ; then
+           cp -a arch/ppc/boot/images/zImage.elf arch/ppc/boot/images/zImage
+            install -m 0755 arch/ppc/boot/images/zImage.elf \ 
                 ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}.elf
+       fi      
         install -m 0755 vmlinux ${DEPLOY_DIR_IMAGE}/
 }