summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/rules
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-10-26 13:52:11 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2018-10-26 13:58:37 +0200
commit8bed21e7d0c427badcec7bef22b2772dd9dcb0d1 (patch)
treea50b013357c3cb5a29e5d7d16b0051c2fcda91c9 /configs/platform-v7a/rules
parente24fc531cd40cbeb5f9e66b856de327806f448e9 (diff)
downloadDistroKit-8bed21e7d0c427badcec7bef22b2772dd9dcb0d1.tar.gz
DistroKit-8bed21e7d0c427badcec7bef22b2772dd9dcb0d1.tar.xz
platform-v7a: barebox-mx6: 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-mx6.make8
1 files changed, 7 insertions, 1 deletions
diff --git a/configs/platform-v7a/rules/barebox-mx6.make b/configs/platform-v7a/rules/barebox-mx6.make
index 7103ed4..7d7c2ce 100644
--- a/configs/platform-v7a/rules/barebox-mx6.make
+++ b/configs/platform-v7a/rules/barebox-mx6.make
@@ -21,7 +21,7 @@ BAREBOX_MX6_MD5 := 8286a8ea2cdd88104e5c6762d93d81db
BAREBOX_MX6 := barebox-$(BAREBOX_MX6_VERSION)
BAREBOX_MX6_SUFFIX := tar.bz2
BAREBOX_MX6_DIR := $(BUILDDIR)/barebox-mx6-$(BAREBOX_MX6_VERSION)
-BAREBOX_MX6_CONFIG := $(PTXDIST_PLATFORMCONFIGDIR)/barebox-mx6.config
+BAREBOX_MX6_CONFIG := $(call ptx/in-platformconfigdir, barebox-mx6.config)
BAREBOX_MX6_LICENSE := GPL-2.0
BAREBOX_MX6_URL := $(call barebox-url, BAREBOX_MX6)
BAREBOX_MX6_SOURCE := $(SRCDIR)/$(BAREBOX_MX6).$(BAREBOX_MX6_SUFFIX)
@@ -65,6 +65,12 @@ $(BAREBOX_MX6_CONFIG):
endif
$(STATEDIR)/barebox-mx6.prepare: $(BAREBOX_MX6_CONFIG)
+ @$(call targetinfo)
+ @rm -f "$(BAREBOX_MX6_DIR)/.ptxdist-defaultenv"
+ @ln -s "$(call ptx/in-platformconfigdir, barebox-mx6-defaultenv)" \
+ "$(BAREBOX_MX6_DIR)/.ptxdist-defaultenv"
+ @$(call world/prepare, BAREBOX_MX6)
+ @$(call touch)
# ----------------------------------------------------------------------------
# Install