summaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-10-26 13:52:10 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2018-10-26 13:58:37 +0200
commite24fc531cd40cbeb5f9e66b856de327806f448e9 (patch)
tree145189e68183da7027495bda325c5597974fcb18 /configs
parentc7cd636cfa5c205ab724ffea9df1bc7a14f544ec (diff)
downloadDistroKit-e24fc531cd40cbeb5f9e66b856de327806f448e9.tar.gz
DistroKit-e24fc531cd40cbeb5f9e66b856de327806f448e9.tar.xz
platform-v7a: barebox-am335x: 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')
-rw-r--r--configs/platform-v7a/barebox-am335x.config2
-rw-r--r--configs/platform-v7a/rules/barebox-am335x.make8
2 files changed, 8 insertions, 2 deletions
diff --git a/configs/platform-v7a/barebox-am335x.config b/configs/platform-v7a/barebox-am335x.config
index 3cb5272..0c78012 100644
--- a/configs/platform-v7a/barebox-am335x.config
+++ b/configs/platform-v7a/barebox-am335x.config
@@ -192,7 +192,7 @@ CONFIG_DEFAULT_ENVIRONMENT=y
CONFIG_DEFAULT_COMPRESSION_NONE=y
CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW_MENU=y
-CONFIG_DEFAULT_ENVIRONMENT_PATH="${PTXDIST_PLATFORMCONFIGDIR}/barebox-am335x-defaultenv"
+CONFIG_DEFAULT_ENVIRONMENT_PATH=".ptxdist-defaultenv"
# CONFIG_BAREBOXENV_TARGET is not set
# CONFIG_BAREBOXCRC32_TARGET is not set
CONFIG_POLLER=y
diff --git a/configs/platform-v7a/rules/barebox-am335x.make b/configs/platform-v7a/rules/barebox-am335x.make
index e358ac6..2c35ae1 100644
--- a/configs/platform-v7a/rules/barebox-am335x.make
+++ b/configs/platform-v7a/rules/barebox-am335x.make
@@ -21,7 +21,7 @@ BAREBOX_AM335X_MD5 := 8286a8ea2cdd88104e5c6762d93d81db
BAREBOX_AM335X := barebox-$(BAREBOX_AM335X_VERSION)
BAREBOX_AM335X_SUFFIX := tar.bz2
BAREBOX_AM335X_DIR := $(BUILDDIR)/barebox-am335x-$(BAREBOX_AM335X_VERSION)
-BAREBOX_AM335X_CONFIG := $(PTXDIST_PLATFORMCONFIGDIR)/barebox-am335x.config
+BAREBOX_AM335X_CONFIG := $(call ptx/in-platformconfigdir, barebox-am335x.config)
BAREBOX_AM335X_LICENSE := GPL-2.0
BAREBOX_AM335X_URL := $(call barebox-url, BAREBOX_AM335X)
BAREBOX_AM335X_SOURCE := $(SRCDIR)/$(BAREBOX_AM335X).$(BAREBOX_AM335X_SUFFIX)
@@ -59,6 +59,12 @@ $(BAREBOX_AM335X_CONFIG):
endif
$(STATEDIR)/barebox-am335x.prepare: $(BAREBOX_AM335X_CONFIG)
+ @$(call targetinfo)
+ @rm -f "$(BAREBOX_AM335X_DIR)/.ptxdist-defaultenv"
+ @ln -s "$(call ptx/in-platformconfigdir, barebox-am335x-defaultenv)" \
+ "$(BAREBOX_AM335X_DIR)/.ptxdist-defaultenv"
+ @$(call world/prepare, BAREBOX_AM335X)
+ @$(call touch)
# ----------------------------------------------------------------------------
# Install