summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-04-13 12:36:33 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-04-13 12:36:38 +0200
commitafb03d7a554a2911a3742e316f011319fcb416f1 (patch)
tree6e6174b3fb4525444346f6ac703e9afcf3227166
parent5efbed3b272b2b8b6bfa1e8317801f1637eeec88 (diff)
downloadbarebox-afb03d7a554a2911a3742e316f011319fcb416f1.tar.gz
barebox-afb03d7a554a2911a3742e316f011319fcb416f1.tar.xz
make building of bareboxenv-target optional
The bareboxenv script build for the target does not work on all architectures, so make it optional. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/Kconfig7
-rw-r--r--scripts/Makefile2
2 files changed, 8 insertions, 1 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 2a7cbfc13e..a997f3dc20 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -506,6 +506,13 @@ config DEFAULT_ENVIRONMENT_PATH
Relative pathes will be relative to the barebox Toplevel dir, but absolute
pathes are fine aswell.
+config BAREBOXENV_TARGET
+ bool
+ prompt "build bareboxenv tool for target"
+ help
+ 'bareboxenv' is a tool to access the barebox environment from a running Linux
+ system. Say yes here to build it for the target.
+
config POLLER
bool "generic polling infrastructure"
diff --git a/scripts/Makefile b/scripts/Makefile
index 15a2b81249..cb049fd6df 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -23,7 +23,7 @@ subdir- += basic kconfig setupmbr
quiet_cmd_csingle = CC $@
cmd_csingle = $(CC) -Wp,-MD,$(depfile) $(CFLAGS) -o $@ $<
-always += bareboxenv-target
+obj-$(CONFIG_BAREBOXENV_TARGET) += bareboxenv-target
scripts/bareboxenv-target: scripts/bareboxenv.c FORCE
$(call if_changed_dep,csingle)