summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-02-05 18:35:52 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-02-05 18:35:52 +0100
commit91fb280c3d35424d56c7f9a3bea23f383dfcb56a (patch)
tree1625a7f3b8d5b098b891590a1a1bbbffa3c79846 /mk
parentbc8188233741e5378d9d0a57e561952e3cebe5ec (diff)
remove wrong rebuild touch files, when switching between configs
Diffstat (limited to 'mk')
-rw-r--r--mk/build.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/build.mk b/mk/build.mk
index 3e1b6cd69..4fcce3ada 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -167,10 +167,11 @@ switch:
if [ -f .config.${ARCH}_${SYSTEM} ];then \
cp -p .config.${ARCH}_${SYSTEM} .config; \
cp -p .config.old.${ARCH}_${SYSTEM} .config.old; \
+ $(MAKE) dep; rm .rebuild.* 2>/dev/null ; \
echo "Setting configuration to target system: ${SYSTEM} with arch: ${ARCH}"; \
else \
echo "No old target config found" ;\
- mv .config .config.bak ;\
+ mv .config .config.bak ; mv .config.old .config.old.bak; rm .rebuild.* 2>/dev/null ; \
if [ ! -z "$(SYSTEM)" ];then \
make ARCH=${ARCH} SYSTEM=${SYSTEM} menuconfig; \
else \