summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-11-08 21:08:28 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-11-08 21:08:28 +0100
commit793044fd96bca30ad6b02e75e4972be89dc6bd72 (patch)
treed7d2194894ce03142aa70b5a5e574600e285c3e8
parent6f722173be786a0594e6084737942b7e05cd71e4 (diff)
rebuild packages, when runtime vars are changed. also when rootfs is changed.
-rw-r--r--mk/build.mk14
1 files changed, 12 insertions, 2 deletions
diff --git a/mk/build.mk b/mk/build.mk
index ea0adbb95..7e0fe8e2a 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -74,8 +74,18 @@ POSTCONFIG= -@\
touch .rebuild.busybox;\
rebuild=1;\
fi; \
- if [ "$$(grep ^ADK_RUNTIME_PASSWORD .config|md5sum)" != "$$(grep ^ADK_RUNTIME_PASSWORD .config.old|md5sum)" ];then \
- touch .rebuild.base-files;\
+ for i in ADK_RUNTIME_PASSWORD ADK_RUNTIME_HOSTNAME ADK_TARGET_ROOTFS;do \
+ if [ "$$(grep ^$$i .config|md5sum)" != "$$(grep ^$$i .config.old|md5sum)" ];then \
+ touch .rebuild.base-files;\
+ rebuild=1;\
+ fi; \
+ done; \
+ if [ "$$(grep ^ADK_RUNTIME_TIMEZONE .config|md5sum)" != "$$(grep ^ADK_RUNTIME_TIMEZONE .config.old|md5sum)" ];then \
+ touch .rebuild.eglibc .rebuild.uclibc .rebuild.glibc;\
+ rebuild=1;\
+ fi; \
+ if [ "$$(grep ^ADK_RUNTIME_SSH_PUBKEY .config|md5sum)" != "$$(grep ^ADK_RUNTIME_SSH_PUBKEY .config.old|md5sum)" ];then \
+ touch .rebuild.dropbear .rebuild.openssh;\
rebuild=1;\
fi; \
if [ $$rebuild -eq 1 ];then \