summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2006-07-27 17:33:33 +0000
committerKoen Kooi <koen@openembedded.org>2006-07-27 17:33:33 +0000
commit81ba9c8629cbb6fd471113beadb4043b0862d970 (patch)
treed679310c88cbb9099a66e920e89130d3f91031fc
parentba79cba9ccae1e272e64329ba1a7df32c9260397 (diff)
handhelds-pxa-2.6_cvs: implement check to spot -hh version mismatches
-rw-r--r--packages/linux/handhelds-pxa-2.6_cvs.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/linux/handhelds-pxa-2.6_cvs.bb b/packages/linux/handhelds-pxa-2.6_cvs.bb
index 8ee7ca2cf4..054868864f 100644
--- a/packages/linux/handhelds-pxa-2.6_cvs.bb
+++ b/packages/linux/handhelds-pxa-2.6_cvs.bb
@@ -30,7 +30,12 @@ HHV = "5"
KERNEL_PRIORITY = "${@'%d' % (int(bb.data.getVar('K_MAJOR',d,1)) * 100000000 + int(bb.data.getVar('K_MINOR',d,1)) * 1000000 + int(bb.data.getVar('K_MICRO',d,1)) * 10000 + float(bb.data.getVar('HHV',d,1)))}"
do_configure() {
- rm -f ${S}/.config
+
+ if [ `grep EXTRAVERSION Makefile | grep hh | awk '{print $3}' | sed s/-hh//` != ${HHV} ]; then
+ die "-hh version mismatch"
+ fi
+
+ rm -f ${S}/.config
if [ ! -e ${WORKDIR}/defconfig ]; then
die "No default configuration for ${MACHINE} available."
@@ -57,6 +62,7 @@ do_deploy() {
install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}
}
+
do_deploy[dirs] = "${S}"
addtask deploy before do_package after do_compile