summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/rules
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-10-26 13:52:12 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2018-10-26 13:58:37 +0200
commit1569c93d9601adef5b6b47eebb0de0ca2bdda67a (patch)
treed3e47cc0a5483a780b1f77e93646453a612d1937 /configs/platform-v7a/rules
parent8bed21e7d0c427badcec7bef22b2772dd9dcb0d1 (diff)
downloadDistroKit-1569c93d9601adef5b6b47eebb0de0ca2bdda67a.tar.gz
DistroKit-1569c93d9601adef5b6b47eebb0de0ca2bdda67a.tar.xz
platform-v7a: barebox-rpi2: add layer support
Remove all references to PTXDIST_PLATFORMCONFIGDIR to do this. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/rules')
-rw-r--r--configs/platform-v7a/rules/barebox-rpi2.make8
1 files changed, 7 insertions, 1 deletions
diff --git a/configs/platform-v7a/rules/barebox-rpi2.make b/configs/platform-v7a/rules/barebox-rpi2.make
index ba16511..cf9fc00 100644
--- a/configs/platform-v7a/rules/barebox-rpi2.make
+++ b/configs/platform-v7a/rules/barebox-rpi2.make
@@ -21,7 +21,7 @@ BAREBOX_RPI2_MD5 := 8286a8ea2cdd88104e5c6762d93d81db
BAREBOX_RPI2 := barebox-$(BAREBOX_RPI2_VERSION)
BAREBOX_RPI2_SUFFIX := tar.bz2
BAREBOX_RPI2_DIR := $(BUILDDIR)/barebox-rpi2-$(BAREBOX_RPI2_VERSION)
-BAREBOX_RPI2_CONFIG := $(PTXDIST_PLATFORMCONFIGDIR)/barebox-rpi2.config
+BAREBOX_RPI2_CONFIG := $(call ptx/in-platformconfigdir, barebox-rpi2.config)
BAREBOX_RPI2_LICENSE := GPL-2.0
BAREBOX_RPI2_URL := $(call barebox-url, BAREBOX_RPI2)
BAREBOX_RPI2_SOURCE := $(SRCDIR)/$(BAREBOX_RPI2).$(BAREBOX_RPI2_SUFFIX)
@@ -58,6 +58,12 @@ $(BAREBOX_RPI2_CONFIG):
endif
$(STATEDIR)/barebox-rpi2.prepare: $(BAREBOX_RPI2_CONFIG)
+ @$(call targetinfo)
+ @rm -f "$(BAREBOX_RPI2_DIR)/.ptxdist-defaultenv"
+ @ln -s "$(call ptx/in-platformconfigdir, barebox-rpi2-defaultenv)" \
+ "$(BAREBOX_RPI2_DIR)/.ptxdist-defaultenv"
+ @$(call world/prepare, BAREBOX_RPI2)
+ @$(call touch)
# ----------------------------------------------------------------------------
# Install