Add additional file with execute permission to SDK
Hello
I try to add an additional shell script to a Yocto SDK (release rocko). The file should be installed directly in the target directory of the SDK (same directory where the environment-setup-* file is installed). I added a meta-environment.bbappend and do something like this:
create_sdk_files_append() {
cp script.sh ${SDK_OUTPUT}/${SDKPATH}/
}do_install_append() {
# This makes populate_sdk fail
chmod +x ${D}/${SDKPATH}/script.sh
}
The create_sdk_files_append is enough to include the file in the SDK. The SDK is successfully generated but script.sh has no execute permission after SDK installation. To add the execute permission I used do_install_append. But then populate_sdk fails.
Problem: package packagegroup-cross-canadian-raspberrypi3-1.0-r0.x86_64_nativesdk requires meta-environment-raspberrypi3, but none of the providers can be installed
- conflicting requests
- nothing provides /bin/bash needed by
meta-environment-raspberrypi3-1.0-r8.x86_64_nativesdk
How can I fix this problem?
Regards
Jan