[Buildroot] uboot.pbl - make 'include' issue

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu May 1 00:26:28 UTC 2014


Dear Yann E. MORIN,

On Thu, 1 May 2014 01:02:40 +0200, Yann E. MORIN wrote:

> > I haven't looked at the details, but linux/linux.mk seems to be doing
> > the exact same thing with the "Linux extensions" for real-time, and
> > doesn't appear to have any problem. It does:
> > 
> > include $(sort $(wildcard linux/linux-ext-*.mk))
> > 
> > $(eval $(generic-package))
> > 
> > So by the time generic-package is expanded, the last included makefile
> > is not linux.mk. And still the thing works.
> 
> Indeed, but the includes are all in the same directory, so pkgdir still
> return "linux" and thus the pkgname is correct.
> 
> In Ryan's case, the included Makefiles are in sub-dirs of uboot, so
> pkgdir returns that last sub-dir, hence the wrong pkgname.

Aah, good point. So I'll have to think more about this U-Boot extension
thing to find a more appropriate solution to suggest to Ryan.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list