summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/kernel-uboot.bbclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/kernel-uboot.bbclass b/meta/classes/kernel-uboot.bbclass
index 868e97d7a7..87f02654fa 100644
--- a/meta/classes/kernel-uboot.bbclass
+++ b/meta/classes/kernel-uboot.bbclass
@@ -3,13 +3,19 @@ uboot_prep_kimage() {
3 vmlinux_path="arch/${ARCH}/boot/compressed/vmlinux" 3 vmlinux_path="arch/${ARCH}/boot/compressed/vmlinux"
4 linux_suffix="" 4 linux_suffix=""
5 linux_comp="none" 5 linux_comp="none"
6 elif [ -e arch/${ARCH}/boot/vmlinuz.bin ]; then
7 rm -f linux.bin
8 cp -l arch/${ARCH}/boot/vmlinuz.bin linux.bin
9 vmlinux_path=""
10 linux_suffix=""
11 linux_comp="none"
6 else 12 else
7 vmlinux_path="vmlinux" 13 vmlinux_path="vmlinux"
8 linux_suffix=".gz" 14 linux_suffix=".gz"
9 linux_comp="gzip" 15 linux_comp="gzip"
10 fi 16 fi
11 17
12 ${OBJCOPY} -O binary -R .note -R .comment -S "${vmlinux_path}" linux.bin 18 [ -n "${vmlinux_path}" ] && ${OBJCOPY} -O binary -R .note -R .comment -S "${vmlinux_path}" linux.bin
13 19
14 if [ "${linux_comp}" != "none" ] ; then 20 if [ "${linux_comp}" != "none" ] ; then
15 gzip -9 linux.bin 21 gzip -9 linux.bin