infra: move script 'gen_config.pl' to scripts/

Signed-off-by: Thomas Schoebel-Theuer <tst@1und1.de>
This commit is contained in:
Daniel Hermann 2013-04-11 16:15:27 +02:00 committed by Thomas Schoebel-Theuer
parent f5fae8e4ba
commit 9bcc99da6f
2 changed files with 5 additions and 4 deletions

View File

@ -100,11 +100,12 @@ $(obj)/buildtag.h: $(patsubst $(obj)/buildtag.h,,$(wildcard $(obj)/*.[ch])) $(ob
# In-tree builds should not be disturbed due to #ifndef safeguarding.
#
extra-y += mars_config.h
$(obj)/mars_config.h: $(src)/Kconfig $(src)/../gen_config.pl
GEN_CONFIG_SCRIPT := $(src)/../scripts/gen_config.pl
$(obj)/mars_config.h: $(src)/Kconfig $(GEN_CONFIG_SCRIPT)
$(Q)$(kecho) "MARS: Generating $@"
$(Q)set -e; \
if [ ! -x $(src)/../gen_config.pl ]; then \
$(kecho) "MARS: cannot execute script $(src)/../gen_config.pl"; \
if [ ! -x $(GEN_CONFIG_SCRIPT) ]; then \
$(kecho) "MARS: cannot execute script $(GEN_CONFIG_SCRIPT)"; \
/bin/false; \
fi; \
cat $< | $(src)/../gen_config.pl > $@;
cat $< | $(GEN_CONFIG_SCRIPT) > $@;