From a4225276a466e41c071351f1bcfc34908357540e Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 16 Sep 2010 22:18:57 +0200 Subject: [PATCH] lirc: use the proper kernelpath, rebuild if kernel will be changed Signed-off-by: Stephan Raue --- packages/sysutils/remote/lirc/build | 1 + packages/sysutils/remote/lirc/need_unpack | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100755 packages/sysutils/remote/lirc/need_unpack diff --git a/packages/sysutils/remote/lirc/build b/packages/sysutils/remote/lirc/build index d2450c77c8..05f761b423 100755 --- a/packages/sysutils/remote/lirc/build +++ b/packages/sysutils/remote/lirc/build @@ -23,6 +23,7 @@ cd $PKG_BUILD --without-x \ --with-driver=userspace \ --with-syslog=LOG_DAEMON \ + --with-kerneldir=$(kernel_path) \ $DEBUG_CONFIG make diff --git a/packages/sysutils/remote/lirc/need_unpack b/packages/sysutils/remote/lirc/need_unpack new file mode 100755 index 0000000000..8be9db1963 --- /dev/null +++ b/packages/sysutils/remote/lirc/need_unpack @@ -0,0 +1,14 @@ +#!/bin/sh + +. config/options + +PKG_DIR=`find $PACKAGES -type d -name $1` +STAMP=$STAMPS/$1/unpack + +test $PKG_DIR/config/linux.$TARGET_ARCH.conf -nt $STAMP -o \ + $PKG_DIR/config/linux.$TARGET_PLATFORM.conf -nt $STAMP -o \ + $PROJECT_DIR/$PROJECT/linux/linux.$TARGET_ARCH.conf -nt $STAMP -o \ + $PROJECT_DIR/$PROJECT/linux/linux.$TARGET_PLATFORM.conf -nt $STAMP -o \ + $PKG_DIR/url -nt $STAMP && rm -f $STAMP + +exit 0