[Buildroot] [PATCH] Makefile.package.in: Pass non-prefixed name as argument to GENTARGETS_INNER.

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Jul 19 18:29:14 UTC 2011


Le Mon, 18 Jul 2011 10:46:07 +0100,
Quotient Remainder <quotientvremainder at gmail.com> a écrit :

> Instead of effectively running s/^host-// on the package name, just
> pass the non-prefixed name to GENTARGETS_INNER.  This removes the
> need to ban packages with names starting with "host-".
> 
> Signed-off-by: Quotient Remainder <quotientvremainder at gmail.com>

I have taken this patch in my branch dedicated to package
infrastructure improvements, but did the following changes :

 * Updated the AUTOTARGETS and CMAKETARGETS infrastructures as well

 * Put the new argument in position 2 of GENTARGETS_INNER instead of
   the last argument. It requires a lot of renaming inside
   GENTARGETS_INNER, but it is a lot cleaner to have arg 1, lowercase
   package name with host-, arg 2, lowercase package name without
   host-, arg 3 uppercase package name with HOST_, arg 4, uppercase
   package name without HOST_

It will be part of an upcoming pull requests with various improvements
to the package infrastructure.

Thanks !

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list