Working with GNU make
GNU make is a make implementation for Linux systems. It is used by a wide variety of open source projects, including the Linux kernel. The build is managed by a Makefile
, which tells make how to build the source code.
How to do it...
Yocto recipes inherit base.bbclass
and hence their default behavior is to look for a Makefile
, makefile
, or GNU Makefile
and use GNU make to build the package.
If your package already contains a Makefile
, then all you need to worry about are the arguments that need to be passed to make. Make arguments can be passed using the EXTRA_OEMAKE
variable, and a do_install
override that calls the oe_runmake
install needs to be provided, otherwise an empty install is run.
For example, the logrotate
recipe ...
Get Embedded Linux for Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.