[Buildroot] [PATCH 1 of 2] GENTARGETS: Allow disabling host package installation

Thomas De Schampheleire patrickdepinguin+buildroot at gmail.com
Mon Mar 28 17:16:34 UTC 2011

For target builds, it's already possible to enable/disable installation in the
target and staging directories. Host builds, however, are installed
In some cases, installation is not appropriate; building the package is
enough. This patch checks whether the new variable HOST_PKGFOO_INSTALL_HOST
equals NO, in which case the installation is not done.
This principle is inspired by the PKGFOO_INSTALL_STAGING and
PKGFOO_INSTALL_TARGET variables, but with negative logic to suit the common

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>

 package/Makefile.package.in |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/package/Makefile.package.in b/package/Makefile.package.in
--- a/package/Makefile.package.in
+++ b/package/Makefile.package.in
@@ -458,7 +458,11 @@
-$(1)-install-host:      $(1)-build $$($(2)_TARGET_INSTALL_HOST)
+ifneq ($$($(2)_INSTALL_HOST),NO)
+$(1)-install-host:	$(1)-build $$($(2)_TARGET_INSTALL_HOST)
+$(1)-install-host:	$(1)-build
 $(1)-build:		$(1)-configure \

More information about the buildroot mailing list