]> Git Repo - buildroot-mgba.git/commitdiff
fs: introduce per-rootfs TARGET_DIR variable
authorYann E. MORIN <[email protected]>
Sat, 31 Mar 2018 09:05:55 +0000 (11:05 +0200)
committerPeter Korsgaard <[email protected]>
Sat, 31 Mar 2018 18:53:06 +0000 (20:53 +0200)
... which for now still points to the base target directory, but this is
a step forward.

Signed-off-by: "Yann E. MORIN" <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Arnout Vandecappelle <[email protected]>
Signed-off-by: Peter Korsgaard <[email protected]>
Makefile
fs/common.mk

index 6cfe83072ec0eb4ab335aa5862bbdbb9b2ef143f..b34dd78c7327cb47a19cc07399fe2dd4cee98981 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -215,8 +215,10 @@ BR_GRAPH_OUT := $(or $(BR2_GRAPH_OUT),pdf)
 
 BUILD_DIR := $(BASE_DIR)/build
 BINARIES_DIR := $(BASE_DIR)/images
+# The target directory is common to all packages,
+# but there is one that is specific to each filesystem.
 BASE_TARGET_DIR := $(BASE_DIR)/target
-TARGET_DIR = $(BASE_TARGET_DIR)
+TARGET_DIR = $(if $(ROOTFS),$(ROOTFS_$(ROOTFS)_TARGET_DIR),$(BASE_TARGET_DIR))
 # initial definition so that 'make clean' works for most users, even without
 # .config. HOST_DIR will be overwritten later when .config is included.
 HOST_DIR := $(BASE_DIR)/host
index ab42beb7becf99a5a6dcbe1d15d928942162380f..22e18d1eff300b1c8d45d1831fe6a14802279a78 100644 (file)
@@ -39,6 +39,7 @@ ROOTFS_USERS_TABLES = $(call qstrip,$(BR2_ROOTFS_USERS_TABLES))
 define inner-rootfs
 
 ROOTFS_$(2)_DIR = $$(FS_DIR)/$(1)
+ROOTFS_$(2)_TARGET_DIR = $$(BASE_TARGET_DIR)
 
 # extra deps
 ROOTFS_$(2)_DEPENDENCIES += host-fakeroot host-makedevs \
This page took 0.042481 seconds and 4 git commands to generate.