[yocto] No package is created after do_install

Peter Oruba peter.oruba at signalion.com
Mon Nov 12 05:44:33 PST 2012


Hello everybody

I am using Yocto as a framework to build Debian packages. So far there 
is a recipe working up to the stage that source is fetched and copied 
(for now compiling is simply skipped). That part works fine, however, I 
am having a hard time to create a Debian package with ${destdir}'s content.

The recipe looks as follows:

LICENSE = "MyLicense"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c6564c1e3c8492bdfa4eddb6d81c2c66"

#SRCDATE
SRCREV="r105"
PV="${SRCPV}"
PR="${SRCREV}"
SRC_URI = "svn://repo/trunk;module=myproject;proto=http"
S = "${WORKDIR}/${PN}"

PKG="myproject-debian"
PKGFN="myproject"
IMAGE_ROOTFS="${D}"
PN="myproject"
PACKAGE_ARCH = "${MACHINE_ARCH}"
PACKAGES = "${PN}"
FILES_${PN} = "${D}/usr/libexec/*"

inherit native package_deb

do_install() {
   #oe_runmake 'DESTDIR=${D}' install
   install -v -d ${D}/usr/libexec/
   cp -a -v ${S} ${D}/usr/libexec/
}

do_populate_sysroot[noexec] = "1"

do_package[noexec] = "0"
do_package_write[noexec] = "0"
do_package_write_deb[noexec] = "0"


Unfortunately there is not a lot of information about creating native 
packages with Yocto that you can find out there.

Thanks,
Peter



More information about the yocto mailing list