* Copying the files to sysroot
[not found] <119490492.5831423.1543217793985.ref@mail.yahoo.com>
@ 2018-11-26 7:36 ` Ugesh Reddy
2018-11-26 11:52 ` Awais Belal
0 siblings, 1 reply; 5+ messages in thread
From: Ugesh Reddy @ 2018-11-26 7:36 UTC (permalink / raw)
To: Bitbake-devel; +Cc: Ugesh Munirajulu (RBEI\/ECG-EP3)
[-- Attachment #1: Type: text/plain, Size: 606 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 3129 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Copying the files to sysroot
2018-11-26 7:36 ` Copying the files to sysroot Ugesh Reddy
@ 2018-11-26 11:52 ` Awais Belal
2018-11-26 12:05 ` Ugesh Munirajulu (RBEI/ECG-EP3)
2018-11-26 12:24 ` Ugesh Reddy
0 siblings, 2 replies; 5+ messages in thread
From: Awais Belal @ 2018-11-26 11:52 UTC (permalink / raw)
To: kumar.ugesh003, Bitbake-devel; +Cc: Ugesh Munirajulu (RBEI\/ECG-EP3)
[-- Attachment #1: Type: text/plain, Size: 1253 bytes --]
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
>
>
>
[-- Attachment #2: Type: text/html, Size: 5203 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Copying the files to sysroot
2018-11-26 11:52 ` Awais Belal
@ 2018-11-26 12:05 ` Ugesh Munirajulu (RBEI/ECG-EP3)
2018-11-27 6:05 ` Awais Belal
2018-11-26 12:24 ` Ugesh Reddy
1 sibling, 1 reply; 5+ messages in thread
From: Ugesh Munirajulu (RBEI/ECG-EP3) @ 2018-11-26 12:05 UTC (permalink / raw)
To: Awais Belal, kumar.ugesh003, Bitbake-devel
[-- Attachment #1: Type: text/plain, Size: 3205 bytes --]
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.
Best regards,
Munirajulu Ugesh
RBEI/ECG-EP3
Tel. +91 422 676-4710
From: Awais Belal <awais_belal@mentor.com>
Sent: Monday, November 26, 2018 5:22 PM
To: kumar.ugesh003@yahoo.com; Bitbake-devel <bitbake-devel@lists.openembedded.org>
Cc: Ugesh Munirajulu (RBEI/ECG-EP3) <Ugesh.Munirajulu@in.bosch.com>
Subject: Re: [bitbake-devel] Copying the files to sysroot
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
[-- Attachment #2: Type: text/html, Size: 14940 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Copying the files to sysroot
2018-11-26 11:52 ` Awais Belal
2018-11-26 12:05 ` Ugesh Munirajulu (RBEI/ECG-EP3)
@ 2018-11-26 12:24 ` Ugesh Reddy
1 sibling, 0 replies; 5+ messages in thread
From: Ugesh Reddy @ 2018-11-26 12:24 UTC (permalink / raw)
To: awais_belal, Bitbake-devel; +Cc: Ugesh Munirajulu (RBEI\/ECG-EP3)
[-- Attachment #1: Type: text/plain, Size: 3109 bytes --]
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
On Mon, 26 Nov 2018 at 5:22 PM, Awais Belal<awais_belal@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
[-- Attachment #2: Type: text/html, Size: 14053 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Copying the files to sysroot
2018-11-26 12:05 ` Ugesh Munirajulu (RBEI/ECG-EP3)
@ 2018-11-27 6:05 ` Awais Belal
0 siblings, 0 replies; 5+ messages in thread
From: Awais Belal @ 2018-11-27 6:05 UTC (permalink / raw)
To: Ugesh Munirajulu (RBEI/ECG-EP3), kumar.ugesh003, Bitbake-devel
[-- Attachment #1: Type: text/plain, Size: 4682 bytes --]
Hi Ugesh,
>> Where is the ${includedir} points too? by default it is /usr/ by GNU
itself. is it somewhere redefined?
The includedir points to /usr/include under the ${D} which is
${WORKDIR}/image. To be precise the includedir is directly set to
${exec_prefix}/include where exec_prefix is usually set to /usr
>> if [ ! -e $(includedir)/componentincludes ]; then
this if looks incorrect to me. It should probably be
if [ ! -e ${D}${includedir}/componentincludes ]; then
Please also move your inherit lines just below SRC_URI as keeping
inheritance on top of everything is a good practice and would avoid some
issues. Once you make these changes please rerun bitbake for this .bb
file and then look at ${WORKDIR}/temp/log.do_install. The sysroot will
not be populated with these headers unless one of the recipes DEPENDS on
this first recipe. Also, in current implementation every recipe has its
own sysroot components under ${WORKDIR}/recipe-sysroot/. So you need to
look in <2nd-recipe-workdir>/recipe-sysroot/
BR,
Awais
On 26/11/18 17:05, Ugesh Munirajulu (RBEI/ECG-EP3) wrote:
>
> 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.
>
> Best regards,
>
> *Munirajulu Ugesh
> RBEI/ECG-EP3
> *
> Tel. +91 422 676-4710
>
> *From:*Awais Belal <awais_belal@mentor.com>
> *Sent:* Monday, November 26, 2018 5:22 PM
> *To:* kumar.ugesh003@yahoo.com; Bitbake-devel
> <bitbake-devel@lists.openembedded.org>
> *Cc:* Ugesh Munirajulu (RBEI/ECG-EP3) <Ugesh.Munirajulu@in.bosch.com>
> *Subject:* Re: [bitbake-devel] Copying the files to sysroot
>
> 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
>
>
>
[-- Attachment #2: Type: text/html, Size: 20105 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-11-27 6:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <119490492.5831423.1543217793985.ref@mail.yahoo.com>
2018-11-26 7:36 ` Copying the files to sysroot Ugesh Reddy
2018-11-26 11:52 ` Awais Belal
2018-11-26 12:05 ` Ugesh Munirajulu (RBEI/ECG-EP3)
2018-11-27 6:05 ` Awais Belal
2018-11-26 12:24 ` Ugesh Reddy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.