summaryrefslogtreecommitdiffstats
path: root/rules/at91bootstrap2.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-11-23 08:53:02 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-11-23 08:53:37 +0100
commitca84b2752e2eb768db3c3e63e5bbd1a8d3b1e2bc (patch)
tree7f9d7bb6f578e1cf54a2067ca09aea6f90861b70 /rules/at91bootstrap2.make
parent61ddfa859330b092bde9d751cdb39114176a67dd (diff)
downloadptxdist-ca84b2752e2eb768db3c3e63e5bbd1a8d3b1e2bc.tar.gz
ptxdist-ca84b2752e2eb768db3c3e63e5bbd1a8d3b1e2bc.tar.xz
at91bootstrap2: use generic kconfig helper
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/at91bootstrap2.make')
-rw-r--r--rules/at91bootstrap2.make23
1 files changed, 2 insertions, 21 deletions
diff --git a/rules/at91bootstrap2.make b/rules/at91bootstrap2.make
index b5def8985..a0ee1e0df 100644
--- a/rules/at91bootstrap2.make
+++ b/rules/at91bootstrap2.make
@@ -38,8 +38,7 @@ AT91BOOTSTRAP2_WRAPPER_BLACKLIST := \
TARGET_DEBUG \
TARGET_BUILD_ID
-AT91BOOTSTRAP2_PATH := PATH=$(CROSS_PATH)
-AT91BOOTSTRAP2_MAKEVARS := \
+AT91BOOTSTRAP2_MAKE_OPT := \
HOSTCC=$(HOSTCC) \
ARCH=$(PTXCONF_BAREBOX_ARCH_STRING) \
CROSS_COMPILE=$(COMPILER_PREFIX)
@@ -55,15 +54,6 @@ $(AT91BOOTSTRAP2_CONFIG):
@exit 1
endif
-$(STATEDIR)/at91bootstrap2.prepare: $(AT91BOOTSTRAP2_CONFIG)
- @$(call targetinfo)
-
- @echo "Using at91bootstrap config file: $(AT91BOOTSTRAP2_CONFIG)"
- @install -m 644 $(AT91BOOTSTRAP2_CONFIG) $(AT91BOOTSTRAP2_DIR)/.config
- @$(call ptx/oldconfig, AT91BOOTSTRAP2)
-
- @$(call touch)
-
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
@@ -101,15 +91,6 @@ $(STATEDIR)/at91bootstrap2.clean:
# ----------------------------------------------------------------------------
at91bootstrap2_oldconfig at91bootstrap2_menuconfig: $(STATEDIR)/at91bootstrap2.extract
- @if test -e $(AT91BOOTSTRAP2_CONFIG); then \
- cp $(AT91BOOTSTRAP2_CONFIG) $(AT91BOOTSTRAP2_DIR)/.config; \
- fi
- cd $(AT91BOOTSTRAP2_DIR) && \
- $(AT91BOOTSTRAP2_PATH) $(AT91BOOTSTRAP2_ENV) $(MAKE) $(AT91BOOTSTRAP2_MAKEVARS) $(subst at91bootstrap2_,,$@)
- @if cmp -s $(AT91BOOTSTRAP2_DIR)/.config $(AT91BOOTSTRAP2_CONFIG); then \
- echo "at91bootstrap configuration unchanged"; \
- else \
- cp $(AT91BOOTSTRAP2_DIR)/.config $(AT91BOOTSTRAP2_CONFIG); \
- fi
+ @$(call world/kconfig, AT91BOOTSTRAP2, $(subst at91bootstrap2_,,$@))
# vim: syntax=make