[oe] [PATCH] remove duplicated code from linux.inc

Graham Gower graham.gower at gmail.com
Thu Jul 30 05:11:30 UTC 2009


2009/7/29 Marcin Juszkiewicz <marcin at juszkiewicz.com.pl>:
> Dnia środa, 29 lipca 2009 o 10:38:12 Graeme Gregory napisał(a):
>> Koen Kooi wrote:
>> > NAK, this breaks the resulting kernel-image ipk
>>
>> Double NAK, read the git log, I put this there to specifically make
>> stuff work, I thought I had removed it from kernel.bbclass but I
>> obviously forgot to push that patch. Doing it in do_deploy is just
>> totally wrong.
>
> So maybe remove it from kernel.bbclass/do_deploy and move
> linux.inc/do_compile_append to kernel.bbclass?
>
> We need to clean linux.inc by moving stuff from it to kernel.bbclass.
>

Ok, my patch is bogus. It doesn't even let me do what I wanted.
*smacks self for not testing first*

The real issue is that my kernel entry point is not fixed. The entry
point can be found by searching for the 'kernel_entry' symbol in the
vmlinux. And unfortunately, I can't search for this at an appropriate
time to be able to set UBOOT_ENTRYPOINT.

What I would need is something like the following, post do_compile.

UBOOT_ENTRYPOINT=`${NM} ${S}/vmlinux | \
		awk '$3=="${UBOOT_ENTRYSYMBOL}" {print $1}'

Where UBOOT_ENTRYSYMBOL="kernel_entry" could be set from the ${MACHINE}.conf.


Presumably no one else's machine with a variable entry point is using
u-boot.... The uImage makefile target in my kernel tree generates a
uImage anyway. Perhaps this step could simply be skipped if the
${S}/arch/${ARCH}/uImage file already exists?

-Graham




More information about the Openembedded-devel mailing list