diff options
Diffstat (limited to 'meta/classes/kernel-uboot.bbclass')
-rw-r--r-- | meta/classes/kernel-uboot.bbclass | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/meta/classes/kernel-uboot.bbclass b/meta/classes/kernel-uboot.bbclass deleted file mode 100644 index b1e7ac05c2..0000000000 --- a/meta/classes/kernel-uboot.bbclass +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | # fitImage kernel compression algorithm | ||
2 | FIT_KERNEL_COMP_ALG ?= "gzip" | ||
3 | FIT_KERNEL_COMP_ALG_EXTENSION ?= ".gz" | ||
4 | |||
5 | uboot_prep_kimage() { | ||
6 | if [ -e arch/${ARCH}/boot/compressed/vmlinux ]; then | ||
7 | vmlinux_path="arch/${ARCH}/boot/compressed/vmlinux" | ||
8 | linux_suffix="" | ||
9 | linux_comp="none" | ||
10 | elif [ -e arch/${ARCH}/boot/vmlinuz.bin ]; then | ||
11 | rm -f linux.bin | ||
12 | cp -l arch/${ARCH}/boot/vmlinuz.bin linux.bin | ||
13 | vmlinux_path="" | ||
14 | linux_suffix="" | ||
15 | linux_comp="none" | ||
16 | else | ||
17 | vmlinux_path="vmlinux" | ||
18 | linux_suffix="${FIT_KERNEL_COMP_ALG_EXTENSION}" | ||
19 | linux_comp="${FIT_KERNEL_COMP_ALG}" | ||
20 | fi | ||
21 | |||
22 | [ -n "${vmlinux_path}" ] && ${OBJCOPY} -O binary -R .note -R .comment -S "${vmlinux_path}" linux.bin | ||
23 | |||
24 | if [ "${linux_comp}" != "none" ] ; then | ||
25 | gzip -9 linux.bin | ||
26 | mv -f "linux.bin${linux_suffix}" linux.bin | ||
27 | fi | ||
28 | |||
29 | echo "${linux_comp}" | ||
30 | } | ||