summaryrefslogtreecommitdiff
path: root/packages/initscripts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/initscripts')
-rw-r--r--packages/initscripts/initscripts_1.0.bb12
1 files changed, 10 insertions, 2 deletions
diff --git a/packages/initscripts/initscripts_1.0.bb b/packages/initscripts/initscripts_1.0.bb
index af2ae26822..06aa140a5e 100644
--- a/packages/initscripts/initscripts_1.0.bb
+++ b/packages/initscripts/initscripts_1.0.bb
@@ -6,7 +6,7 @@ DEPENDS = "makedevs"
DEPENDS_openzaurus = "virtual/kernel"
RDEPENDS = "makedevs"
LICENSE = "GPL"
-PR = "r27"
+PR = "r28"
SRC_URI = "file://halt \
file://ramdisk \
@@ -34,7 +34,15 @@ SRC_URI = "file://halt \
SRC_URI_append_arm = " file://alignment.sh"
SRC_URI_append_openzaurus = " file://checkversion"
-KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
+def read_kernel_version(d):
+ import bb
+ distro = bb.data.getVar('DISTRO', d, 1)
+ filename = bb.data.getVar('STAGING_KERNEL_DIR', d, 1)
+ if distro == "openzaurus":
+ return file( filename + "/kernel-abiversion", "r" ).read().strip()
+ else:
+ return "not important"
+KERNEL_VERSION = "${@read_kernel_version(d)}"
do_install () {
#