generic-poky/meta/conf/machine/include
Martin Jansa f2a65bd268 v86d, qemuboot-x86.inc: use KERNEL_MODULE_AUTOLOAD+KERNEL_MODULE_PROBECONF for uvesafb instead of fbsetup init script
* also add UVESA_MODE variable for easier change of resolution and respect it in QB_KERNEL_CMDLINE_APPEND
  as well
* don't use init script just to call modprobe
* I wasn't able to test this all the way with runqemu, because runqemu
  doesn't work on my system, but I've verified that the right params
  appear there and that I can easily change UVESA_MODE from
  conf/local.conf, the modules.d and modprobe.d files look OK:
  OE qemux86@ ~/build/oe-core/tmp-glibc/deploy/images/qemux86/core-image-sato-qemux86-20170427212613.rootfs
  $ cat etc/modules-load.d/uvesafb.conf
  uvesafb

  OE qemux86@ ~/build/oe-core/tmp-glibc/deploy/images/qemux86/core-image-sato-qemux86-20170427212613.rootfs
  $ cat etc/modprobe.d/uvesafb.conf
  options uvesafb mode_option=1600x1200-32

  so I'll be able to drop this KERNEL_MODULE_AUTOLOAD +
  KERNEL_MODULE_PROBECONF from my DISTRO conf.

(From OE-Core rev: 3a8613a101aebf4f2a75ea95dac72202bbda8238)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-08-29 11:57:28 +01:00
..
arm feature-arm-thumb.inc: fix ARM_THUMB_SUFFIX for armv8 2017-03-22 11:35:19 +00:00
mips recipes: Make use of the new bb.utils.filter() function 2017-03-01 11:17:45 +00:00
powerpc arch-powerpc64.inc: disable the use of qemu usermode on ppc64 2016-05-06 10:31:15 +01:00
sh meta/conf/machine: use ' inside quoted values 2015-12-01 21:32:05 +00:00
x86 bitbake.conf: rename 'gobject-introspection-data' machine feature to 'qemu-usermode' 2016-03-28 15:55:49 +01:00
README tune: README: Typographical corrections 2014-01-28 00:50:54 +00:00
qemu.inc conf: Use xf86-input-libinput by default 2016-11-01 10:05:45 +00:00
qemuboot-mips.inc machine/qemu*: Add comment regarding the reason for virtio-rng-pci 2016-09-28 10:16:03 +01:00
qemuboot-x86.inc v86d, qemuboot-x86.inc: use KERNEL_MODULE_AUTOLOAD+KERNEL_MODULE_PROBECONF for uvesafb instead of fbsetup init script 2017-08-29 11:57:28 +01:00
soc-family.inc soc-family.inc: Add a default SOC_FAMILY value 2015-06-03 16:38:45 +01:00
tune-arm9tdmi.inc tune-*: use mcpu instead of mtune for ARM tunes 2016-01-07 13:40:19 +00:00
tune-arm920t.inc tune-*: use mcpu instead of mtune for ARM tunes 2016-01-07 13:40:19 +00:00
tune-arm926ejs.inc tune-arm926ejs: Handle missing thumb suffix 2016-03-25 10:29:15 +00:00
tune-arm1136jf-s.inc conf/machine/include: enable hardfloat by default for ARMv6 and above 2017-03-10 14:50:10 +00:00
tune-atom.inc conf/machine/include: Start to fill out architecture specific tune include files and tune features 2011-07-25 14:36:30 +01:00
tune-c3.inc meta/conf/machine: use ' inside quoted values 2015-12-01 21:32:05 +00:00
tune-core2.inc meta/conf/machine: use ' inside quoted values 2015-12-01 21:32:05 +00:00
tune-corei7.inc tune-corei7.inc: Fix PACKAGE_EXTRA_ARCHS for corei7-32 2016-03-09 16:58:11 +00:00
tune-cortexa5.inc conf/machine/include: enable hardfloat by default for ARMv6 and above 2017-03-10 14:50:10 +00:00
tune-cortexa7.inc conf/machine/include: enable hardfloat by default for ARMv6 and above 2017-03-10 14:50:10 +00:00
tune-cortexa8.inc conf/machine/include: enable hardfloat by default for ARMv6 and above 2017-03-10 14:50:10 +00:00
tune-cortexa9.inc conf/machine/include: enable hardfloat by default for ARMv6 and above 2017-03-10 14:50:10 +00:00
tune-cortexa15.inc conf/machine/include: enable hardfloat by default for ARMv6 and above 2017-03-10 14:50:10 +00:00
tune-cortexa17.inc conf/machine/include: enable hardfloat by default for ARMv6 and above 2017-03-10 14:50:10 +00:00
tune-ep9312.inc tune-*: use mcpu instead of mtune for ARM tunes 2016-01-07 13:40:19 +00:00
tune-i586-nlp.inc meta/conf/machine: use ' inside quoted values 2015-12-01 21:32:05 +00:00
tune-i586.inc meta/conf/machine: use ' inside quoted values 2015-12-01 21:32:05 +00:00
tune-iwmmxt.inc tune-*: use mcpu instead of mtune for ARM tunes 2016-01-07 13:40:19 +00:00
tune-mips32.inc meta/conf/machine: use ' inside quoted values 2015-12-01 21:32:05 +00:00
tune-mips32r2.inc tune-mips32r2.inc: add soft-float variants 2016-05-06 10:31:15 +01:00
tune-mips32r6.inc arch-mips: Add o32 in TUNE_FEATURES for MIPS32R6 2016-11-15 15:19:52 +00:00
tune-mips64.inc tune-mips*: Ensure tunes are inherited in order 2014-08-02 09:26:17 +01:00
tune-mips64r2.inc arch-mips: Add mips64r2 tunes 2016-09-24 07:30:09 +01:00
tune-mips64r6.inc arch-mips: Fix tune configuration for mipsisa64r6el-n32-nf 2017-03-04 23:18:19 +00:00
tune-octeon.inc meta/conf/machine: use ' inside quoted values 2015-12-01 21:32:05 +00:00
tune-power5.inc meta/conf/machine: use ' inside quoted values 2015-12-01 21:32:05 +00:00
tune-power6.inc meta/conf/machine: use ' inside quoted values 2015-12-01 21:32:05 +00:00
tune-power7.inc meta/conf/machine: use ' inside quoted values 2015-12-01 21:32:05 +00:00
tune-ppc476.inc meta/conf/machine: use ' inside quoted values 2015-12-01 21:32:05 +00:00
tune-ppc603e.inc meta/conf/machine: use ' inside quoted values 2015-12-01 21:32:05 +00:00
tune-ppc7400.inc gcc, qemuppc: Explicitly disable forcing SPE flags 2016-01-31 13:29:48 +00:00
tune-ppce300c2.inc meta/conf/machine: use ' inside quoted values 2015-12-01 21:32:05 +00:00
tune-ppce300c3.inc meta/conf/machine: use ' inside quoted values 2015-12-01 21:32:05 +00:00
tune-ppce500.inc recipes: Make use of the new bb.utils.filter() function 2017-03-01 11:17:45 +00:00
tune-ppce500mc.inc tune-ppce500mc.inc: pass -mcpu=e500mc for ppce500mc kernel compile 2016-07-10 14:12:17 +01:00
tune-ppce500v2.inc recipes: Make use of the new bb.utils.filter() function 2017-03-01 11:17:45 +00:00
tune-ppce5500.inc tune-ppc[65]00.inc: Disable QEMU usermode usage 2016-09-24 07:30:10 +01:00
tune-ppce6500.inc tune-ppc[65]00.inc: Disable QEMU usermode usage 2016-09-24 07:30:10 +01:00
tune-sh3.inc meta/conf/machine: use ' inside quoted values 2015-12-01 21:32:05 +00:00
tune-sh4.inc meta/conf/machine: use ' inside quoted values 2015-12-01 21:32:05 +00:00
tune-strongarm1100.inc tune-*: use mcpu instead of mtune for ARM tunes 2016-01-07 13:40:19 +00:00
tune-supersparc.inc conf/machine/include: Set TUNE_CCARGS instead of TARGET_CC_ARCH 2011-07-25 12:06:30 +01:00
tune-thunderx.inc arm/arch-arm*, tune-cortexa*, tune-thunderx.inc, powerpac/arch-powerpc64.inc: Use normal assignment 2016-01-07 13:40:18 +00:00
tune-xscale.inc tune-*: use mcpu instead of mtune for ARM tunes 2016-01-07 13:40:19 +00:00
x86-base.inc x86-base.inc, qemuarm.conf: prefer 4.10 version of linux-yocto 2017-04-05 23:22:12 +01:00

README

2012/03/30 - Mark Hatle <mark.hatle@windriver.com>
 - Initial Revision


Introduction
============
The individual CPU, and ABI tunings are contained in this directory.  A
number of local and global variables are used to control the way the
tunings are setup and how they work together to specify an optimized
configuration.

The following is brief summary of the generic components that are used
in these tunings.

AVAILTUNES - This is a list of all of the tuning definitions currently
available in the system.  Not all tunes in this list may be compatible
with the machine configuration, or each other in a multilib
configuration.  Each tuning file can add to this list using "+=", but
should never replace the list using "=".

DEFAULTTUNE - This specifies the tune to use for a particular build.
Each tune should specify a reasonable default, which can be overriden by
a machine or multilib configuration.  The specified tune must be listed
in the AVAILTUNES.

TUNEVALID[feature] - The <feature> is defined with a human readable
explanation for what it does.  All architectural, cpu, abi, etc tuning
features must be defined using TUNEVALID.

TUNECONFLICTS[feature] - A list of features which conflict with <feature>.
New sanity checks will try to reject combinations in which a single
tuning ends up with features which conflict with each other.

TUNE_FEATURES - This is automatically defined as TUNE_FEATURES_tune-<tune>.
See TUNE_FEATURES_tune-<tune> for more information.

TUNE_FEATURES_tune-<tune> - Specify the features used to describe a
specific tune.  This is a list of features that a tune support, each
feature must be in the TUNEVALID list.  Note: the tune and a given
feature name may be the same, but they have different purposes.  Only
features may be used to change behavior, while tunes are used to
describe an overall set of features.

ABIEXTENSION - An ABI extension may be specified by a specific feature
or other tuning setting, such as TARGET_FPU.  Any ABI extensions either
need to be defined in the architectures base arch file, i.e.
ABIEXTENSION = "eabi" in the arm case, or appended to in specific tune
files with a ".=".  Spaces are not allowed in this variable.

TUNE_CCARGS - Setup the cflags based on the TUNE_FEATURES settings.
These should be additive when defined using "+=".  All items in this
list should be dynamic! i.e.
${@bb.utils.contains("TUNE_FEATURES", "feature", "cflag", "!cflag", d)}

TUNE_ARCH - The GNU canonical arch for a specific architecture.  i.e.
arm, armeb, mips, mips64, etc.  This value is used by bitbake to setup
configure. TUNE_ARCH definitions are specific to a given architecture.
They may be a single static definition, or may be dynamically adjusted.
See each architecture's README for details for that CPU family.

TUNE_PKGARCH - The package architecture used by the packaging systems to
define the architecture, abi and tuning of a particular package.
Similarly to TUNE_ARCH, the definition of TUNE_PKGARCH is specific to
each architecture. See each architectures README for details for that
CPU family.

PACKAGE_EXTRA_ARCHS - Lists all runtime compatible package
architectures.  By default this is equal to
PACKAGE_EXTRA_ARCHS_tune-<tune>.  If an architecture deviates from the
default it will be listed in the architecture README.

PACKAGE_EXTRA_ARCHS_tune-<tune> - List all of the package architectures
that are compatible with this specific tune.  The package arch of this
tune must be in the list.

TARGET_FPU - The FPU setting for a given tune, hard (generate floating
point instructions), soft (generate internal gcc calls), "other"
architecture specific floating point.  This is synchronized with the
compiler and other toolchain items.  This should be dynamically
configured in the same way that TUNE_CCARGS is.

BASE_LIB_tune-<tune> - The "/lib" location for a specific ABI.  This is
used in a multilib configuration to place the libraries in the correct,
non-conflicting locations.


Best Practice
=============
The tune infrastructure is designed to be hierarchical. When writing a
new tune file for a "fast-forward" CPU architecture (one that supports
everything from a previous generation), it is recommended to require the
previous generation tune file and specify PACKAGE_EXTRA_ARCHS using the
previous generation's override and appending the new tune. Note that
only one previous tune file should be included to avoid mutiple includes
of the base arch which could lead to a broken configuration due to
multiple prepend and append assignments.

For example, for x86, there is a common x86/arch-x86.inc which is
included in the base i586 tune file. The core2 tune builds
on that, and corei7 builds on core2.