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

In entire meta/classes/ directory, replace shell tests of the form "if test -? ..." with POSIX tests of the form "if [ -? ... (From OE-Core rev: 78928016f4cf38cf6751cb089200bf950d07ae93) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
21 lines
455 B
Plaintext
21 lines
455 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"
|
|
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}"
|
|
}
|