Browse Source

rebuild packages, when runtime vars are changed. also when rootfs is changed.

Waldemar Brodkorb 13 years ago
parent
commit
793044fd96
1 changed files with 12 additions and 2 deletions
  1. 12 2
      mk/build.mk

+ 12 - 2
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 \