All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] remove duplicated code from linux.inc
@ 2009-07-29  4:30 Graham Gower
  2009-07-29  7:34 ` Koen Kooi
  0 siblings, 1 reply; 22+ messages in thread
From: Graham Gower @ 2009-07-29  4:30 UTC (permalink / raw)
  To: openembedded-devel

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}



^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2009-08-03  7:09 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-29  4:30 [PATCH] remove duplicated code from linux.inc Graham Gower
2009-07-29  7:34 ` 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

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.