浏览代码

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

Waldemar Brodkorb 13 年之前
父节点
当前提交
793044fd96
共有 1 个文件被更改,包括 12 次插入2 次删除
  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 \