]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
layer_extra_sanity.bbclass: add new bbclass ChenQi/layer_extra_sanity
authorChen Qi <Qi.Chen@windriver.com>
Thu, 16 Apr 2015 02:02:00 +0000 (10:02 +0800)
committerChen Qi <Qi.Chen@windriver.com>
Thu, 16 Apr 2015 07:44:05 +0000 (15:44 +0800)
commitc1c7339199e08085ed82ffed0d80356d5b177807
tree3cdfc52560cfd40f55864a63850a5c90c556edba
parentcfc43743b0e41cf168cad9cbd4e9d870b8f01f03
layer_extra_sanity.bbclass: add new bbclass

Add a new bbclass for extra sanity check for layers.

These sanity checks include:
*) conf/machine and conf/distro don't appear in the same layer.
   The rational is that distro specific changes and BSP specific changes
   should be splitted into different layers for better maintenance.
   The meta layer is an exception.
*) A BSP layer is not included if MACHINE is not set to any of the conf file
   it provides.
   The rational is that BSP layer, by design, is supposed to make changes
   specific for the BSPs it covers. Including a BSP layer which doesn't contain
   a conf file matching the MACHINE setting might cause potential problem.
*) Configuration files under conf/machine don't set distro specific variables
   such as DISTRO_FEATURES.
   The rational is that machine configuration files should not set things
   related to machine.

[YOCTO #5427]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
meta/classes/layer_extra_sanity.bbclass [new file with mode: 0644]