mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
fs: set per-rootfs variable name
Like we do for packages with the PKG variable, set ROOTFS to contain the upper-case name of the rootfs currently being generated. This will be useful in later patches, when we need more per-rootfs variables, like a per-rootfs TARGET_DIR for example. In Makefiles, per-rule variables trickle down the dependency chain, to all dependencies of that rule, so we have to stop ROOTFS as soon as we're not in a rootfs. This means we have to stop it at target-finalize (which is a dependency of all filesystems), and for each package individually, since some packages (host or target) can be direct dependencies of filesystems as well. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
7e9870ce32
commit
2765973e01
@@ -384,6 +384,10 @@ endef
|
||||
|
||||
define inner-generic-package
|
||||
|
||||
# When doing a package, we're definitely not doing a rootfs, but we
|
||||
# may inherit it via the dependency chain, so we reset it.
|
||||
$(1): ROOTFS=
|
||||
|
||||
# Ensure the package is only declared once, i.e. do not accept that a
|
||||
# package be re-defined by a br2-external tree
|
||||
ifneq ($(call strip,$(filter $(1),$(PACKAGES_ALL))),)
|
||||
|
||||
Reference in New Issue
Block a user