[Buildroot] [NEXT] infra: add force build flag for host dependencies

Peter Korsgaard peter at korsgaard.com
Mon Feb 4 14:44:14 UTC 2019


>>>>> "Matt" == Matt Weber <Matthew.Weber at collins.com> writes:

 > From: Bryce Ferguson <bryce.ferguson at rockwellcollins.com>
 > This commit adds a config option which will force buildroot to
 > build all host dependencies even if they are already present on the
 > host system. This may be a desirable option if different hosts are
 > used to build the same source. In this case, some packages will be
 > built on one host that are not built on another. This is problematic
 > if build source archives are cached afterwards for offline builds.

 > Cc: Peter Korsgaard <peter at korsgaard.com>
 > Signed-off-by: Bryce Ferguson <bryce.ferguson at rockwellcollins.com>
 > Signed-off-by: Matt Weber <matthew.weber at rockwellcollins.com>
..
 > +++ b/support/dependencies/dependencies.mk
 > @@ -9,9 +9,15 @@
 >  # can be the candidate to be checked. If not present, the check-host-$(1).sh
 >  # script should use 'which' to find a candidate. The script should return
 >  # the path to the suitable host tool, or nothing if no suitable tool was found.
 > +ifeq ($(BR2_FORCE_HOST_BUILD),y)
 > +define suitable-host-package
 > +$(shell exit 1)
 > +endef

It is little confusing that the description that only applies to the
"real" suitable-host-package is above this dummy implementation, so I've
moved the conditional above.

The $(shell exit 1) part isn't really needed as we look at the string
expansion of the macro, so I've dropped that.

I also slightly reworded the help text. Committed with those changes, thanks.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list