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 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core