From 91fb280c3d35424d56c7f9a3bea23f383dfcb56a Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 5 Feb 2011 18:35:52 +0100 Subject: remove wrong rebuild touch files, when switching between configs --- mk/build.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mk') 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 \ -- cgit v1.2.3