[Buildroot] [PATCH 4/6] libusb-compat: add host variant
Luca Ceresoli
list at lucaceresoli.net
Sun Oct 2 20:29:37 UTC 2011
Thomas Petazzoni wrote:
> Signed-off-by: Thomas Petazzoni<thomas.petazzoni at free-electrons.com>
> ---
> package/libusb-compat/libusb-compat.mk | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/package/libusb-compat/libusb-compat.mk b/package/libusb-compat/libusb-compat.mk
> index e39cdd8..99e7716 100644
> --- a/package/libusb-compat/libusb-compat.mk
> +++ b/package/libusb-compat/libusb-compat.mk
> @@ -18,4 +18,8 @@ endef
>
> LIBUSB_COMPAT_POST_INSTALL_STAGING_HOOKS+=LIBUSB_COMPAT_FIXUP_CONFIG
>
> +HOST_LIBUSB_COMPAT_DEPENDENCIES = host-pkg-config host-libusb
I have a generic question about host packages, not strictly related to the
addition of the "Host tools" menu that's being discussed here.
I see many of the packages that have both target and host variant have
their host dependencies equal to their target package dependencies, plus a
"host-" prefix added to packages that don't have one on their own.
For example:
> LIBUSB_COMPAT_DEPENDENCIES = host-pkg-config libusb
> HOST_LIBUSB_COMPAT_DEPENDENCIES = host-pkg-config host-libusb
host-pkg-config does not change, libusb becomes host-libusb.
This is indeed pretty natural.
Would it be a good idea to define by default HOST_FOO_DEPENDENCIES
equal to FOO_DEPENDENCIES with suitable subst magic to add "host-" where
it is not present?
This could of course be done later, separated from this work.
Luca
More information about the buildroot
mailing list