[Buildroot] Including example applications to target

Peter Korsgaard peter at korsgaard.com
Sun Sep 2 07:47:05 UTC 2018


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

 > Hi,

 > I'm trying to add a new cmake package (aws-iot-devic-sck-cpp) to
 > buildroot. I managed to integrate it and the shared object is added to
 > the target /usr/lib folder. The build also produces a bunch of sample
 > applications (and unit tests). These are not however added to the
 > target (cmake install step doesn't include them in the first
 > place). What is the best approach to add these sample applications to
 > the final image. My two thinkings are:


 > - Add a post install package step to copy those samples (and certificates) to target

 > - Add a patch to the CMakeLists.txt file to add them in the install step.

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.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list