Embedded Linux Development using Yocto Projects - Second Edition
by Otavio Salvador, Daiane Angolini
Providing the source code
The most obvious way Poky can help us to provide the source code of every project used in our image is by sharing the DL_DIR content. However, this approach has one important pitfall: Any proprietary source code will be shared within DL_DIR if it is shared as is. In addition, this approach will share any source code, including parts that are not required by copyleft compliance.
Another way is to configure Poky to generate the set of source codes and decide what will be delivered. This may be done using the archiver class. This class copies the source code for each package under the build/tmp/deploy folder, separated by architecture (in our example, the present architectures are allarch-poky-linux, arm-poky-linux-gnueabi ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access