From: Graham Gower <graham.gower@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH] remove duplicated code from linux.inc
Date: Wed, 29 Jul 2009 14:00:47 +0930 [thread overview]
Message-ID: <4A6FD077.1060001@gmail.com> (raw)
Hello,
The contents of the do_compile_append() function below can also be found in
kernel.bbclass: do_deploy().
I've removed it from linux.inc because I want to dynamically set
UBOOT_ENTRYPOINT in my linux-blah.bb based upon the resultant kernel binary
and this makes it easier.
-Graham
diff --git a/recipes/linux/linux.inc b/recipes/linux/linux.inc
index 96feba6..3dbb1ec 100644
--- a/recipes/linux/linux.inc
+++ b/recipes/linux/linux.inc
@@ -158,22 +158,6 @@ do_configure_append() {
fi
}
-do_compile_append() {
- if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then
- if test -e arch/${ARCH}/boot/compressed/vmlinux ; then
- ${OBJCOPY} -O binary -R .note -R .comment -S arch/${ARCH}/boot/compressed/vmlinux linux.bin
- uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C none -a ${UBOOT_LOADADDRESS} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin arch/${ARCH}/boot/uImage
- rm -f linux.bin
- else
- ${OBJCOPY} -O binary -R .note -R .comment -S vmlinux linux.bin
- rm -f linux.bin.gz
- gzip -9 linux.bin
- uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C gzip -a ${UBOOT_LOADADDRESS} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin.gz arch/${ARCH}/boot/uImage
- rm -f linux.bin.gz
- fi
- fi
-}
-
do_devicetree_image() {
if test -n "${KERNEL_DEVICETREE}" ; then
dtc -I dts -O dtb ${KERNEL_DEVICETREE_FLAGS} -o devicetree ${KERNEL_DEVICETREE}
next reply other threads:[~2009-07-29 4:45 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-29 4:30 Graham Gower [this message]
2009-07-29 7:34 ` [PATCH] remove duplicated code from linux.inc Koen Kooi
2009-07-29 8:36 ` Marcin Juszkiewicz
2009-07-29 8:38 ` Graeme Gregory
2009-07-29 9:31 ` Marcin Juszkiewicz
2009-07-30 5:11 ` Graham Gower
2009-07-30 5:33 ` Tom Rini
2009-07-30 5:49 ` Graham Gower
2009-07-30 8:59 ` Graeme Gregory
2009-07-31 2:24 ` Graham Gower
2009-07-31 7:12 ` Graeme Gregory
2009-07-31 7:40 ` Graham Gower
2009-07-31 8:55 ` Graeme Gregory
2009-07-31 9:59 ` Koen Kooi
2009-07-31 11:33 ` Graeme Gregory
2009-07-31 12:35 ` Graham Gower
2009-07-31 13:24 ` Marcin Juszkiewicz
2009-08-01 9:45 ` Graham Gower
2009-08-03 6:54 ` Marcin Juszkiewicz
2009-07-31 17:45 ` Koen Kooi
2009-07-31 7:50 ` Andrea Adami
2009-07-31 9:03 ` Graham Gower
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A6FD077.1060001@gmail.com \
--to=graham.gower@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.