lirc: use the proper kernelpath, rebuild if kernel will be changed

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-09-16 22:18:57 +02:00
parent b64f7012a4
commit a4225276a4
2 changed files with 15 additions and 0 deletions

View File

@ -23,6 +23,7 @@ cd $PKG_BUILD
--without-x \
--with-driver=userspace \
--with-syslog=LOG_DAEMON \
--with-kerneldir=$(kernel_path) \
$DEBUG_CONFIG
make

View File

@ -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