[yocto] Unable to install additional tools in SDK
Gabriele Zampieri
gabbla.malist at gmail.com
Wed May 15 05:32:21 PDT 2019
Hi all,
I need to include in my native sdk the ODB compiler in order to produce
some sources. Since it is a nativesdk- only package, I wrote the following
nativesdk-odb-compiler_2.5.0.bb
------------------------------------------------------------------------------------------------------------------------
inherit nativesdk
CONFIG_NAME = "odb-gcc-X"
B = "${WORKDIR}/build2"
# We must have a valid configuration before fetching
do_fetch_prepend() {
install -d ${B}
bpkg create -d ${B}/${CONFIG_NAME} cc \
--wipe \
config.cxx=g++ \
config.cc.coptions=-O3 \
config.install.root=${D}/usr
}
do_fetch() {
bpkg fetch --trust-yes \
--directory ${B}/${CONFIG_NAME} https://pkg.cppget.org/1/beta
}
do_compile() {
bpkg build odb -y ${PARALLEL_MAKE} --directory ${B}/${CONFIG_NAME}
}
do_install() {
bpkg install odb --verbose 3 --directory ${B}/${CONFIG_NAME}
}
FILES_${PN}_append = " ${SDKPATHNATIVE}"
FILES_${PN}_append = " /usr/*"
------------------------------------------------------------------------------------------------------------------------
Then added the following line in my custom image recipe:
TOOLCHAIN_HOST_TASK_append = " nativesdk-odb-compiler"
Then I run bitbake <image> -c populate_sdk and the SDK is build. Once
installed, there is no trace about ODB. I digged in the bitbake output
directories (image/, package/ and package-split/) and the file tree is
correct, also the rpm packages are generated (however the main package is
1/10th of the ODB installed tree). Maybe I'm missing something?
Thanks in advance,
Gabriele
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190515/2e4a5c18/attachment.html>
More information about the yocto
mailing list