[bitbake-devel] Copying the files to sysroot

Ugesh Reddy kumar.ugesh003 at yahoo.com
Mon Nov 26 12:24:20 UTC 2018


Hello Awals,

If, I am correct the ${D} points to ${WORKDIR}/image

Where is the ${includedir} points too? by default it is /usr/ by GNU itself. is it somewhere redefined?

Please find the my .bb file

DESCRIPTION = "First Application"

SECTION = "MyLayer"

LICENSE = "MIT"

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

#LIC_FILES_CHKSUM = "file://LICENSE;md5=c00933139e794019cd555c2848de3d19"

PR = "r0"

SRC_URI = "file://component-0.1.tar.gz"

S = "${WORKDIR}/recipes-component-0.1/"

do_install_append() {       

          if [ ! -e $(includedir)/componentincludes ]; then

                    install -d ${D}${includedir}/componentincludes;

          fi

          install -m 644 ${S}/inc/*.h ${D}${includedir}/componentincludes

}

inherit autotools pkgconfig

inherit gettext

 

local.conf:

 

ACHINE ??= 'imx8mqevk'

DISTRO ?= 'fsl-imx-wayland'

PACKAGE_CLASSES ?= "package_rpm"

EXTRA_IMAGE_FEATURES ?= "debug-tweaks"

USER_CLASSES ?= "buildstats image-mklibs image-prelink"

PATCHRESOLVE = "noop"

BB_DISKMON_DIRS ??= "\

    STOPTASKS,${TMPDIR},1G,100K \

    STOPTASKS,${DL_DIR},1G,100K \

    STOPTASKS,${SSTATE_DIR},1G,100K \

    STOPTASKS,/tmp,100M,100K \

    ABORT,${TMPDIR},100M,1K \

    ABORT,${DL_DIR},100M,1K \

    ABORT,${SSTATE_DIR},100M,1K \

    ABORT,/tmp,10M,1K"

PACKAGECONFIG_append_pn-qemu-native = " sdl"

PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"

CONF_VERSION = "1"

 

DL_DIR ?= "${BSPDIR}/downloads/"

ACCEPT_FSL_EULA = "1"

 

With the above configuration the files are not copied to sysroot/usr/include/componentincludes

Sent from Yahoo Mail on Android 
 
  On Mon, 26 Nov 2018 at 5:22 PM, Awais Belal<awais_belal at mentor.com> wrote:    
Hi Ugesh,
 
>> 1. I want to copy the header includes to sysroot/usr/include/component
 
Simply install the header files to ${D}${includedir}/component at the end of your 1st recipe's do_install.
 
e.g.
 
mkdir -p ${D}${includedir}/component
 
install -m 0644 <HEADER_LOCATION>/<header>.h ${D}${includedir}/component/
 
>> 2. Another recipe shall be able to refer the header from sysroot/usr/include/component
 
Add your 1st recipe's package name in the DEPENDS of the recipe where you want to utilize these headers.
 
 BR,
Awais On 26/11/18 12:36, Ugesh Reddy via bitbake-devel wrote:
  
 
Hello All, 
   
I have the yocto bsp for iMx8 eval board and compiled it successfully. I have introduced the new custom layer and written .bb file for my recipe and the component is compiled successfully and want to install the my include in sysroot/usr/include/component at the end. I don't have the clue how to do that . Could you please  some one guide me.
 
 
 
I want the below to be achieved from .bb files.
 
1. I want to copy the header includes to sysroot/usr/include/component
 
2. Another recipe shall be able to refer the header from sysroot/usr/include/component
 

 
 
Regards,
 
Ugesh
  
  
 
   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20181126/d2605d5d/attachment.html>


More information about the bitbake-devel mailing list