소스 검색

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

Waldemar Brodkorb 15 년 전
부모
커밋
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 \