Book Image

Embedded Linux Development with Yocto Project

Book Image

Embedded Linux Development with Yocto Project

Overview of this book

Table of Contents (22 chapters)
Embedded Linux Development with Yocto Project
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
References
Index

Adding extra options to recipes based on Autoconf


Let's assume we have Autoconf's build system-based application 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" 

The same 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" 

Tip

EXTRA_OECONF is used to add extra options to the configure script.

EXTRA_OEMAKE is used to add extra parameters to the make call.