[Buildroot] Including example applications to target

Peter Korsgaard peter at korsgaard.com
Sun Sep 2 10:31:28 UTC 2018


>>>>> "Bassem" == Bassem Fahmy <t_fahmy_bassem at hotmail.com> writes:

 >> You probably want to make installing the example conditional on a sub
 >> option (like E.G. BR2_PACKAGE_QT_EXAMPLES), so the first option sounds
 >> simplest.

 > Thanks for the reply.
 > Following on this I have another question. The sample applications are
 > built in the aws build folder
 > (buildroot/output/build/aws-iot-device-sdk-cpp-master/buildroot-build/bin). How
 > should I reference this?
 > Is it ok to reference buildroot-build directly or is there a variable that references it.

 > cp -dpfr $(@D)/buildroot-build/bin/* $(TARGET_DIR)/aws-iot-device-sdk-cpp

$(@D) is the build directory for the package, so that is fine.

I notice you have 'master' as the version in
aws-iot-device-sdk-cpp-master, which sounds like a branch name and not a
tag. The package version must refer to a tag (or vcs revision hash). See
the manual for details:

http://nightly.buildroot.org/manual.html#generic-package-reference

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list