Hi,

I'm generating an esdk for my project, and I've come across two issues
that I can't seem to find a solution to.

1. I want to install a .sh file that is run when the ESDK environment
file is sourced.  I did the following, which seemed to work for the
normal SDK but not the ESDK:

DESCRIPTION = "SDK Testing"
SECTION = "libs"
LICENSE = "CLOSED"

BBCLASSEXTEND = "nativesdk"

FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}"

do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_fetch[noexec] = "1"

do_install:append:class-nativesdk () {
mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d
echo "PS1=[sdk]\$PS1" >
${D}${SDKPATHNATIVE}/environment-setup.d/add-ps1-variable.sh
chmod 755 ${D}${SDKPATHNATIVE}/environment-setup.d/add-ps1-variable.sh
}

Any ideas as to why this doesn't work properly?  It's very similar to
what the cmake build does:
https://git.yoctoproject.org/poky/tree/meta/recipes-devtools/cmake/cmake_3.22.3.bb?h=kirkstone#n52
The .sh file does exist, it's just not in the correct directory when
the ESDK is installed so it is never sourced.

2. For the main application that needs to be built, I need to manually
deploy a file that is built(so it is not part of the normal 'make
install').  I did the following in my .bb file for the recipe:
do_deploy() {
    install -m 0755 ${WORKDIR}/build/some-binary-file
${DEPLOYDIR}/some-binary-file
}
This works fine when building with bitbake, but when building in the
ESDK the directory paths have changed.  In bitbake, the binaries are
placed in ${WORKDIR}/build, but in the SDK the binaries are placed in
${WORKDIR}/<recipe-name>.  Is there a consistent way to find the build
directory?  This is using CMake if that makes a difference.

-Robert Middleton
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62837): https://lists.yoctoproject.org/g/yocto/message/62837
Mute This Topic: https://lists.yoctoproject.org/mt/105145292/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to