diff options
-rw-r--r-- | meta/classes/kernel-uboot.bbclass | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes/kernel-uboot.bbclass b/meta/classes/kernel-uboot.bbclass index 87f02654fa..b1e7ac05c2 100644 --- a/meta/classes/kernel-uboot.bbclass +++ b/meta/classes/kernel-uboot.bbclass | |||
@@ -1,3 +1,7 @@ | |||
1 | # fitImage kernel compression algorithm | ||
2 | FIT_KERNEL_COMP_ALG ?= "gzip" | ||
3 | FIT_KERNEL_COMP_ALG_EXTENSION ?= ".gz" | ||
4 | |||
1 | uboot_prep_kimage() { | 5 | uboot_prep_kimage() { |
2 | if [ -e arch/${ARCH}/boot/compressed/vmlinux ]; then | 6 | if [ -e arch/${ARCH}/boot/compressed/vmlinux ]; then |
3 | vmlinux_path="arch/${ARCH}/boot/compressed/vmlinux" | 7 | vmlinux_path="arch/${ARCH}/boot/compressed/vmlinux" |
@@ -11,8 +15,8 @@ uboot_prep_kimage() { | |||
11 | linux_comp="none" | 15 | linux_comp="none" |
12 | else | 16 | else |
13 | vmlinux_path="vmlinux" | 17 | vmlinux_path="vmlinux" |
14 | linux_suffix=".gz" | 18 | linux_suffix="${FIT_KERNEL_COMP_ALG_EXTENSION}" |
15 | linux_comp="gzip" | 19 | linux_comp="${FIT_KERNEL_COMP_ALG}" |
16 | fi | 20 | fi |
17 | 21 | ||
18 | [ -n "${vmlinux_path}" ] && ${OBJCOPY} -O binary -R .note -R .comment -S "${vmlinux_path}" linux.bin | 22 | [ -n "${vmlinux_path}" ] && ${OBJCOPY} -O binary -R .note -R .comment -S "${vmlinux_path}" linux.bin |