Adding extra options to recipes based on Autoconf

Let's assume we have Autoconf's build system-based application, along with a preexisting recipe for it, and we want to do the following:

  • Enable my-feature
  • Disable another-feature

The content of the .bbappend file, in order to make the changes, will be the following:

EXTRA_OECONF += "--enable-my-feature --disable-another-feature"
EXTRA_OEMAKE += "DEFINE_PASSED_TO_MAKE=1"

This can also be done based on the hardware we are building for, as follows:

EXTRA_OECONF_append_arm = " --enable-my-arm-feature"
EXTRA_OEMAKE_append_mymachine = " MYMACHINE_SPECIFIC=1"
EXTRA_OECONF is used to add extra options to the configuration script.
EXTRA_OEMAKE is used to add extra parameters to the make call.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.80.45