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}

(From OE-Core rev: bb80a5f6f383d874b314af4263695e5a6b2d84cb)

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Roy.Li 2012-07-24 09:33:29 +08:00 committed by Richard Purdie
parent 520c5d9bda
commit 76df449399
1 changed files with 6 additions and 1 deletions

View File

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