mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

Since commit a725d188b5 (kernel-uboot: compress arm64 kernels) arm64 Image files are handled exactly like in the default case, making this special case pointless. Remove it to make the code simpler. (From OE-Core rev: 60bc7e180e2d44ac026e5537552a567784dc506a) Signed-off-by: Alban Bedel <alban.bedel@aerq.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
27 lines
654 B
Plaintext
27 lines
654 B
Plaintext
uboot_prep_kimage() {
|
|
if [ -e arch/${ARCH}/boot/compressed/vmlinux ]; then
|
|
vmlinux_path="arch/${ARCH}/boot/compressed/vmlinux"
|
|
linux_suffix=""
|
|
linux_comp="none"
|
|
elif [ -e arch/${ARCH}/boot/vmlinuz.bin ]; then
|
|
rm -f linux.bin
|
|
cp -l arch/${ARCH}/boot/vmlinuz.bin linux.bin
|
|
vmlinux_path=""
|
|
linux_suffix=""
|
|
linux_comp="none"
|
|
else
|
|
vmlinux_path="vmlinux"
|
|
linux_suffix=".gz"
|
|
linux_comp="gzip"
|
|
fi
|
|
|
|
[ -n "${vmlinux_path}" ] && ${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}"
|
|
}
|