buildsys: force package rebuild on $PKG_DIR/config/* change

This commit is contained in:
Stefan Saraev 2015-01-19 20:53:42 +02:00
parent 7565ff5062
commit cd14999372
2 changed files with 1 additions and 2 deletions

View File

@ -26,7 +26,6 @@ PKG_URL="http://busybox.net/downloads/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS_HOST=""
PKG_DEPENDS_TARGET="toolchain busybox:host hdparm dosfstools e2fsprogs zip unzip pciutils usbutils parted"
PKG_DEPENDS_INIT="toolchain"
PKG_NEED_UNPACK="packages/sysutils/busybox/config/*"
PKG_PRIORITY="required"
PKG_SECTION="system"
PKG_SHORTDESC="BusyBox: The Swiss Army Knife of Embedded Linux"

View File

@ -56,7 +56,7 @@ for i in $BUILD/$1-*; do
done
# trigger unpack / full rebuild on any patch / script / etc.. change
# TODO: rewwork $PKG_DIR/scripts -> $PKG_DIR/filesystem/....
for file in $PKG_DIR/{patches,scripts}/* $PROJECT_DIR/$PROJECT/patches/$PKG_NAME/*.patch; do
for file in $PKG_DIR/{patches,scripts,config}/* $PROJECT_DIR/$PROJECT/patches/$PKG_NAME/*.patch; do
if [ -f "$file" -a "$file" -nt "$i/.openelec-unpack" ]; then
CLEAN_SOURCE=yes
break