AnsweredAssumed Answered

Custom recipe for YOCTO

Question asked by Manjunath Joshi on Apr 20, 2015
Latest reply on Apr 24, 2015 by Daiane Angolini

Hello All,

 

I want to create a recipe to compile cifs-utils and bitbake with image.

 

I tried following YOCTO user manual and at first it was troublesome. But now, i am able to bitbake but "cifs-utils not found in the base feeds" is the error. So the last do_install is getting failed.

 

My recipe looks like this,

**********************************************************************************************************************************************************

# This file is a modified example recipe to help mount cifs on linux.

#

 

DESCRIPTION = "Simple compile application"

SECTION = "examples"

LICENSE = "MIT"

LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

PR = "r0"

 

SRC_URI = "http://ftp.de.debian.org/debian/pool/main/c/cifs-utils/cifs-utils_5.5.orig.tar.bz2"

 

SRC_URI[tarball.md5sum] = "b1e6309e8331e0f4e6efd311c2d97fa8"

SRC_URI[tarball.sha256sum] = "7f7d9f60b7766b852881d40b8ff91d8e39fccb0d1d913102a5c75a2dbb52332d"

 

S = "${WORKDIR}"

DEPENDS +="glibc"

ALLOW_EMPTY_${PN}-dev = "1"

 

EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'BUILDDIR=${S}'"

 

do_install () {

         oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir}

}

 

PARALLEL_MAKE = ""

 

BBCLASSEXTEND = "native"

**************************************************************************************************************************************************************

 

Now my question is cifs-utils gets compiled by AUTOTOOLS so at first i used inherit autotools but did not work.

 

oe-runmake error persisted.

 

But now there is no error but do_install fails right at the end. can anyone help ??

 

 

Regards,

Manju

Outcomes