[oe] environment variables in Makefile for cross compilation (was: package VDR for OE)

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Sun Jan 10 13:00:05 UTC 2010


2010/1/10 Paul Menzel <paulepanter at users.sourceforge.net>:
> Am Sonntag, den 13.12.2009, 16:45 +0100 schrieb Paul Menzel:
>> Am Sonntag, den 13.12.2009, 15:18 +0100 schrieb Petr Štetiar:
>> > Paul Menzel <paulepanter at users.sourceforge.net> [2009-12-13 14:46:20]:
>>
>> […]
>>
>> > INCLUDES = -I${STAGING_INCDIR}freetype2
>> >
>> > to
>> >
>> > INCLUDES = ${CFLAGS}
>> >
>> > and in your recipe do:
>> >
>> > CFLAGS_append  += " -I${STAGING_INCDIR}/freetype2"
>>
>> Great. That worked.
>>
>> > > Furthermore is there a better way for upstream to set things up so that
>> > > no patching is needed? Or is autotools needed for this?
>>
>> I am still asking if upstream could change something to make the
>> Makefile cross compilable by default.
>
> Is there an environment variable for a handmade Makefile to make it
> cross compilable? Or is patching the upstream Makefile inevitable?

You can always have your own makefile in the recipe dir and overwrite
the existing one in a patch.
But personally I prefer patches to makefiles, as you can piggyback on
changes in the original makefile (or worst case, if the patch fails on
a newer version you know that some work is waiting.

Frans
>
> […]
>
>
> Thanks,
>
> Paul
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
>




More information about the Openembedded-devel mailing list