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.
Yocto recipes inherit
base.bbclass and hence their default behavior is to look for a
GNUmakefile 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 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
mingetty recipe is based on a
Makefile and looks as follows:
SUMMARY = "Compact getty terminal handler for virtual consoles only" SECTION = "console/utils" HOMEPAGE = "http://sourceforge.net/projects...