fd3dd25e0c
Building uImage fails when KEEPUIMAGE is not "yes". Remove wrong removal of linux.bin before compressing it. (From OE-Core rev: ed5c6a0c80bac092e98f4d68dbc9cad77701bc7e) Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
21 lines
457 B
Text
21 lines
457 B
Text
uboot_prep_kimage() {
|
|
if test -e arch/${ARCH}/boot/compressed/vmlinux ; then
|
|
vmlinux_path="arch/${ARCH}/boot/compressed/vmlinux"
|
|
linux_suffix=""
|
|
linux_comp="none"
|
|
else
|
|
vmlinux_path="vmlinux"
|
|
linux_suffix=".gz"
|
|
linux_comp="gzip"
|
|
fi
|
|
|
|
${OBJCOPY} -O binary -R .note -R .comment -S "${vmlinux_path}" linux.bin
|
|
|
|
if [ "${linux_comp}" != "none" ] ; then
|
|
gzip -9 linux.bin
|
|
mv -f "linux.bin${linux_suffix}" linux.bin
|
|
fi
|
|
|
|
echo "${linux_comp}"
|
|
}
|