[oe-commits] Roy.Li : insserv: define do_install_virtclass-native()
git at git.openembedded.org
git at git.openembedded.org
Sat Jul 28 08:22:06 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: bb80a5f6f383d874b314af4263695e5a6b2d84cb
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=bb80a5f6f383d874b314af4263695e5a6b2d84cb
Author: Roy.Li <rongqing.li at windriver.com>
Date: Tue Jul 24 09:33:29 2012 +0800
insserv: define do_install_virtclass-native()
[YOCTO #2812]
Since files installation dirs are DESTDIR/etc/, DESTDIR/sbin etc
in Makefile, not DESTDIR/${sysconfdir}/, DESTDIR/${sbindir}/, for
the native package, a prefix can not be inserted which is needed
when do the next step of install and do_populate_sysroot.
Now we define do_install_virtclass-native in which DESTDIR is
${D}/${STAGING_DIR_NATIVE}
Signed-off-by: Roy.Li <rongqing.li at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/recipes-devtools/insserv/insserv_1.14.0.bb | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/meta/recipes-devtools/insserv/insserv_1.14.0.bb b/meta/recipes-devtools/insserv/insserv_1.14.0.bb
index b3ddec3..c424a15 100644
--- a/meta/recipes-devtools/insserv/insserv_1.14.0.bb
+++ b/meta/recipes-devtools/insserv/insserv_1.14.0.bb
@@ -6,7 +6,7 @@ SECTION = "base"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
-PR = "r0"
+PR = "r1"
SRC_URI = "ftp://ftp.suse.com/pub/projects/init/${BPN}-${PV}.tar.bz2 \
file://makefile.patch \
@@ -21,4 +21,9 @@ do_install () {
install -m0644 ${WORKDIR}/insserv.conf ${D}${sysconfdir}/insserv.conf
}
+do_install_virtclass-native () {
+ oe_runmake 'DESTDIR=${D}/${STAGING_DIR_NATIVE}' install
+ install -m0644 ${WORKDIR}/insserv.conf ${D}${sysconfdir}/insserv.conf
+}
+
BBCLASSEXTEND = "native"
More information about the Openembedded-commits
mailing list