[OE-core] [PATCH 5/5] hdparm: 9.48 -> 9.50
Andreas Oberritter
obi at opendreambox.org
Thu Dec 22 03:09:46 UTC 2016
On 22.12.2016 03:47, Robert Yang wrote:
> On 12/21/2016 09:27 PM, Andre McCurdy wrote:
>> Passing LDFLAGS on the make command line might be a cleaner solution
>> than patching the Makefile.
>
> We can't do that since there is a "-e MAKEFLAGS=" in EXTRA_OEMAKE, and its
> Makefile is:
>
> all:
> make -j2 hdparm
>
> hdparm: hdparm.h sgio.h $(OBJS)
> $(CC) $(LDFLAGS) -o hdparm $(OBJS)
> $(STRIP) hdparm
>
> The "make -j2 hdparm" doesn't pass any env vars to sub make since
> MAKEFLAGS=,
> so that need use weak assignment "?=" here.
You don't need to use target 'all'. Try this:
do_compile() {
oe_runmake hdparm
}
Regards,
Andreas
More information about the Openembedded-core
mailing list