aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorRoy Li <rongqing.li@windriver.com>2014-02-13 11:48:58 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-13 11:41:16 +0000
commit4c80c557508e088fe226bfa1834464b505404652 (patch)
treed8468d505130e00212be9a0463dae998d5821759 /meta/recipes-support
parent4615ac771175cd413f461c081f7d3191c49ccc4b (diff)
downloadopenembedded-core-contrib-4c80c557508e088fe226bfa1834464b505404652.tar.gz
nss: avoid to use the hardcode kernel version
Read kernel version from ${STAGING_KERNEL_DIR}/kernel-abiversion, to avoid to use the hardcode kernel version. Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/nss/nss.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-support/nss/nss.inc b/meta/recipes-support/nss/nss.inc
index a6aeed8b1a..3ad12cc057 100644
--- a/meta/recipes-support/nss/nss.inc
+++ b/meta/recipes-support/nss/nss.inc
@@ -23,7 +23,7 @@ SRC_URI_append_class-target = "\
"
inherit siteinfo
PR = "r0"
-DEPENDS = "sqlite3 nspr zlib nss-native"
+DEPENDS = "sqlite3 nspr zlib nss-native virtual/kernel"
DEPENDS_class-native = "sqlite3-native nspr-native zlib-native"
RDEPENDS_${PN} = "perl"
@@ -55,7 +55,7 @@ do_compile() {
export NSS_USE_SYSTEM_SQLITE=1
export NSS_ENABLE_ECC=1
- export OS_RELEASE=3.4
+ export OS_RELEASE=`cat ${STAGING_KERNEL_DIR}/kernel-abiversion|sed 's/-.*//'`
export OS_TARGET=Linux
export OS_ARCH=Linux
@@ -95,7 +95,7 @@ do_install() {
export NSS_USE_SYSTEM_SQLITE=1
export NSS_ENABLE_ECC=1
- export OS_RELEASE=3.4
+ export OS_RELEASE=`cat ${STAGING_KERNEL_DIR}/kernel-abiversion|sed 's/-.*//'`
export OS_TARGET=Linux
export OS_ARCH=Linux