summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-12-28 16:10:58 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-28 16:10:58 +0100
commit43c62785b4a669407bb9ae823b82b13b05030c3a (patch)
tree57bce84bc79a6bc9d73a3f57fa64920b1f652e9a /mk
parentbc4105bc807f3159ca77811a10abde2f2784176f (diff)
parent7fe44c3270a5f83833f352d94ed5b7380b962f68 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'mk')
-rw-r--r--mk/build.mk18
-rw-r--r--mk/vars.mk2
2 files changed, 17 insertions, 3 deletions
diff --git a/mk/build.mk b/mk/build.mk
index 856565345..1a9c637cf 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -45,16 +45,20 @@ noconfig_targets:= menuconfig \
distclean \
tags
-MAKECLEAN_SYMBOLS= ADK_TARGET_LIB_UCLIBC \
+MAKECLEANDIR_SYMBOLS= ADK_TARGET_LIB_UCLIBC \
ADK_TARGET_LIB_GLIBC \
ADK_TARGET_LIB_ECLIBC \
ADK_DEBUG
+MAKECLEAN_SYMBOLS= ADK_TARGET_PACKAGE_IPKG \
+ ADK_TARGET_PACKAGE_RPM \
+ ADK_TARGET_PACKAGE_TGZ
+
POSTCONFIG= -@ \
if [ -f .config.old ];then \
if [ -d .cfg ];then \
what=cleantarget; \
- for symbol in ${MAKECLEAN_SYMBOLS}; do \
+ for symbol in ${MAKECLEANDIR_SYMBOLS}; do \
newval=$$(grep -e "^$$symbol=" -e "^\# $$symbol " .config); \
oldval=$$(cat .cfg/"$$symbol" 2>&-); \
[[ $$newval = $$oldval ]] && continue; \
@@ -63,6 +67,16 @@ POSTCONFIG= -@ \
"$$what' might be required!"; \
break; \
done; \
+ what=clean; \
+ for symbol in ${MAKECLEAN_SYMBOLS}; do \
+ newval=$$(grep -e "^$$symbol=" -e "^\# $$symbol " .config); \
+ oldval=$$(cat .cfg/"$$symbol" 2>&-); \
+ [[ $$newval = $$oldval ]] && continue; \
+ echo; \
+ echo >&2 "WARNING: Package backend related options have changed, 'make" \
+ "$$what' might be required!"; \
+ break; \
+ done; \
fi; \
if [ "$$(grep ^BUSYBOX .config|md5sum)" != "$$(grep ^BUSYBOX .config.old|md5sum)" ];then \
if [ -f build_*/w-busybox*/busybox*/.configure_done ];then \
diff --git a/mk/vars.mk b/mk/vars.mk
index 7661ebb71..cfc1d2632 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -84,7 +84,7 @@ PKG_INSTALL:= IPKG_TMP=$(BUILD_DIR)/tmp \
PKG_STATE_DIR:= $(TARGET_DIR)/usr/lib/ipkg
else
PKG_BUILD:= ${BASH} ${SCRIPT_DIR}/tarpkg build
-PKG_INSTALL:= INSTROOT=$(TARGET_DIR) \
+PKG_INSTALL:= PKG_INSTROOT=$(TARGET_DIR) \
${BASH} ${SCRIPT_DIR}/tarpkg install
PKG_STATE_DIR:= $(TARGET_DIR)/usr/lib/pkg
endif