diff options
author | André Draszik <adraszik@tycoint.com> | 2017-10-06 13:12:55 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-05 22:39:47 +0000 |
commit | 1e69586439333a579b020b9ecaddacf4def9c459 (patch) | |
tree | b005ecd6b199cb0a2334bac10404d66222d5f223 /meta | |
parent | 01e24eb47b493a1c5aa9fa1b851a4ba653c5e5db (diff) | |
download | poky-1e69586439333a579b020b9ecaddacf4def9c459.tar.gz |
kernel-uimage: optimise UBOOT_ENTRYSYMBOL support
This is the remaining local change to a fix similar to
commit e0b4f018d1c2 ("kernel-uimage.bbclass: Fix up
generation of uImage from vmlinux"):
Make awk exit on match to save a few CPU cycles so as
to make this similar to kernel-fitimage.bbclass
(From OE-Core rev: d60b3d02949ba318e30627131fd38f74c74cf590)
Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 614e8be7a89a2f2113fa40b11e7a05b9e8155f6a)
Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/kernel-uimage.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel-uimage.bbclass b/meta/classes/kernel-uimage.bbclass index 7c026abf0b..1d8656e76e 100644 --- a/meta/classes/kernel-uimage.bbclass +++ b/meta/classes/kernel-uimage.bbclass | |||
@@ -27,7 +27,7 @@ do_uboot_mkimage() { | |||
27 | ENTRYPOINT=${UBOOT_ENTRYPOINT} | 27 | ENTRYPOINT=${UBOOT_ENTRYPOINT} |
28 | if [ -n "${UBOOT_ENTRYSYMBOL}" ]; then | 28 | if [ -n "${UBOOT_ENTRYSYMBOL}" ]; then |
29 | ENTRYPOINT=`${HOST_PREFIX}nm ${B}/vmlinux | \ | 29 | ENTRYPOINT=`${HOST_PREFIX}nm ${B}/vmlinux | \ |
30 | awk '$3=="${UBOOT_ENTRYSYMBOL}" {print $1}'` | 30 | awk '$3=="${UBOOT_ENTRYSYMBOL}" {print "0x"$1;exit}'` |
31 | fi | 31 | fi |
32 | 32 | ||
33 | uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C "${linux_comp}" -a ${UBOOT_LOADADDRESS} -e $ENTRYPOINT -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin ${B}/arch/${ARCH}/boot/uImage | 33 | uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C "${linux_comp}" -a ${UBOOT_LOADADDRESS} -e $ENTRYPOINT -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin ${B}/arch/${ARCH}/boot/uImage |