generic-poky/meta/classes
Bruce Ashfield dfa83e6625 linux-yocto: make kernel configuration audit user visible
After a linux-yocto style kernel is configured, a kernel configuration
audit is executed to detect common errors or issues with the config.

This output used to be visible, but was made less obvious to not alarm
users unnecessarily (since some configuration issues are acceptable).

There are some classes of configuration issue that are worth being
visible, and that is specified configuration values that do not make the
final .config. These dropped options can result in any number of runtime
failures, so flagging them at build time makes sense.

The visibility of auditing is controlled by KCONF_AUDIT_LEVEL:

   0: no reporting
   1: report options that are specified, but not in the final config
   2: report options that are not hardware related, but set by a BSP

The default level is 1, with level 2 and above being for BSP development
only.

If these conditions are detected, warnings will be generated as follows:

  WARNING: [kernel config]: specified values did not make it into the
  kernel's final configuration:

  Value requested for CONFIG_SND_PCSP not in final ".config"
  Requested value: "CONFIG_SND_PCSP=y"
  Actual value set: ""

or

  WARNING: [kernel config]: BSP specified non-hw configuration:

  CONFIG_BLOCK
  CONFIG_CFG80211_WEXT
  CONFIG_CORDIC
  CONFIG_CRC8
  CONFIG_EFIVAR_FS
  CONFIG_EFI_PARTITION
  CONFIG_NET
  CONFIG_NETDEVICES
  CONFIG_PARTITION_ADVANCED
  CONFIG_WEXT_CORE
  CONFIG_WEXT_PROC
  CONFIG_WIRELESS

At this point thse are only a warnings, since there needs to be time for
layers and configuration fragments to be validated against this new
check.

[YOCTO: #6943]

(From OE-Core rev: ad4d59495194b37bc510e9891bd14c0a2ac30dba)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-02-21 22:05:33 +00:00
..
allarch.bbclass allarch: Add warning about packagegroup 2014-08-25 08:57:44 +01:00
archiver.bbclass archiver: fix truncation of src_rev 2014-10-24 17:36:15 +01:00
autotools-brokensep.bbclass autotools-brokensep: Mark recipes with broken separate build dir support 2014-02-28 14:01:16 +00:00
autotools.bbclass autotools/siteinfo: Avoid races over siteinfo files 2015-02-13 14:49:36 +00:00
autotools_stage.bbclass autotools: deprecate autotools_stage class 2010-04-27 17:11:28 +01:00
base.bbclass base.bbclass: detect when S has been set incorrectly 2015-01-23 11:36:28 +00:00
bin_package.bbclass bin_package.bbclass: binary package recipe class 2012-09-10 13:01:46 +01:00
binconfig-disabled.bbclass binconfig-disabled.bbclass: fix echo command 2015-02-08 08:00:25 +00:00
binconfig.bbclass *.bbclass (shell): avoid pipe with sed 2014-05-08 13:00:33 +01:00
blacklist.bbclass blacklist.bbclass: Avoid blacklist specific handle in base.bbclass 2013-08-13 23:06:03 +01:00
bluetooth.bbclass bluetooth.bbclass: simplify recipe inference of bluetooth provider 2015-02-17 13:43:38 +00:00
boot-directdisk.bbclass boot-directdisk: Use kernel from DEPLOY_DIR_IMAGE, not sysroot 2014-12-21 12:37:55 +00:00
bootimg.bbclass bootimg: Use deploy artefacts, not STAGING_KERNEL_DIR 2014-12-21 12:37:55 +00:00
bugzilla.bbclass classes/conf: Add eventmasks for event handlers 2013-06-14 12:55:47 +01:00
buildhistory.bbclass oe-pkgdata-util: improve command-line usage 2015-02-14 08:41:01 +00:00
buildstats-summary.bbclass buildstats-summary.bbclass: Import useful bbclass from meta-mentor 2014-06-14 08:43:55 +01:00
buildstats.bbclass buildstats: use TaskBase time for elapsed time 2014-03-25 09:55:36 +00:00
ccache.bbclass meta: Don't use deprecated bitbake API 2013-09-01 15:51:42 +01:00
chrpath.bbclass chrpath: Drop warning from darwn builds 2014-08-17 10:01:36 +01:00
clutter.bbclass clutter: remove usage of FILESPATH 2013-10-26 15:59:13 +01:00
cmake.bbclass cmake: supply CMAKE_AR in toolchain file 2014-12-05 18:01:04 +00:00
cml1.bbclass ncurses, busybox, cml1.bbclass: Fix menuconfig display corruption 2014-11-09 10:21:23 +00:00
compress_doc.bbclass compress_doc.bbclass: support update-alternatives 2014-12-03 12:23:59 +00:00
copyleft_compliance.bbclass archiver.bbclass: make it can filter the license 2014-03-25 09:55:35 +00:00
copyleft_filter.bbclass archiver.bbclass: make it can filter the license 2014-03-25 09:55:35 +00:00
core-image.bbclass core-image: split debug-tweaks into individual features 2015-02-08 08:00:25 +00:00
cpan-base.bbclass classes/cpan-base: fix signatures changing when perl is in sysroot 2014-02-17 15:28:58 +00:00
cpan.bbclass cpan.bbclass: matches more lines 2014-08-28 15:12:43 +01:00
cpan_build.bbclass classes/cpan_build.bbclass: add EXTRA_CPAN_BUILD_FLAGS 2014-08-29 23:44:36 +01:00
cross-canadian.bbclass cross-canadian/meta-environment: Allow modification of TARGET_OS to be optional 2015-01-16 23:08:19 +00:00
cross.bbclass cross: Update PKG_CONFIG variables after recent changes 2014-05-02 20:46:58 +01:00
crosssdk.bbclass crosssdk: Clear MACHINEOVERRIDES 2014-08-16 08:22:45 +01:00
debian.bbclass debian: Set RPROVIDES to include the original packagename when renaming 2014-08-25 08:57:44 +01:00
deploy.bbclass sstate: Get rid of crazy name mapping 2013-12-18 17:08:05 +00:00
devshell.bbclass devshell: Add interactive python shell 2014-05-28 08:27:00 +01:00
distro_features_check.bbclass distro_features_check.bbclass: fix searching whole list 2014-05-27 16:11:54 +01:00
distrodata.bbclass distrodata_class: checkpkg make usage of latest_versionstring methods in bitbake fetcher 2014-11-28 14:02:57 +00:00
distutils-base.bbclass classes/distutils: Introduce PYTHON_PN 2014-02-02 22:37:38 +00:00
distutils-common-base.bbclass distutils-common-base: Create staticdev pacakge for static libraries 2012-11-21 16:56:00 +00:00
distutils-native-base.bbclass classes/distutils: Introduce PYTHON_PN 2014-02-02 22:37:38 +00:00
distutils-tools.bbclass classes: Add distutils for python3 2014-02-02 22:37:39 +00:00
distutils.bbclass distutils/distutils3: Fix bashism 2014-06-29 09:04:21 +01:00
distutils3-base.bbclass distutils: Introduce PYTHON_ABI variable 2014-02-02 22:37:39 +00:00
distutils3-native-base.bbclass distutils: Introduce PYTHON_ABI variable 2014-02-02 22:37:39 +00:00
distutils3.bbclass distutils/distutils3: Fix bashism 2014-06-29 09:04:21 +01:00
externalsrc.bbclass classes/externalsrc: set do_compile as nostamp 2014-12-23 10:18:15 +00:00
extrausers.bbclass extrausers.bbclass: avoid infinite loop 2013-11-06 11:02:26 +00:00
fontcache.bbclass fontcache: Fix build dependency errors 2014-07-17 12:28:50 +01:00
gconf.bbclass Revert "gconf.bbclass: remove --disable-schemas-install" 2014-01-06 16:30:28 +00:00
gettext.bbclass gettext: Improve USE_NLS handling for nativesdk/crosssdk/cross-canadian 2013-08-23 16:20:11 +01:00
gnome.bbclass gnome: set UNKNOWN_CONFIGURE_WHITELIST 2013-10-29 10:41:37 +00:00
gnomebase.bbclass gnomebase: fix indentation 2014-09-29 12:12:43 +01:00
grub-efi.bbclass INITRD var: make it a list of filesystem images 2014-08-02 09:26:14 +01:00
gsettings.bbclass gsettings.bbclass: fix whitespace 2012-09-05 22:25:23 +01:00
gtk-doc.bbclass gtk-doc: Add pkgconfig inherit 2014-06-25 13:51:48 +01:00
gtk-icon-cache.bbclass Pass the mlprefix to postinst_intercept script 2013-04-29 14:45:10 +01:00
gtk-immodules-cache.bbclass gtk-immodules-cache: fix error message to use correct names 2013-11-14 13:39:48 +00:00
gummiboot.bbclass gummiboot.bbclass: Ensure MLPREFIX is applied to depends flag 2014-06-24 19:54:12 +01:00
gzipnative.bbclass gzipnative: Ensure dependencies apply to do_unpack and do_populate_lic 2013-09-22 12:19:43 +01:00
icecc.bbclass icecc.bbclass: properly handle disabling of icecc 2015-01-16 23:08:19 +00:00
image-buildinfo.bbclass image-buildinfo.bbclass: new class, writes build information to image 2014-11-09 10:21:22 +00:00
image-live.bbclass image-vmdk.bbclass: use sda rather than hda 2014-08-02 09:26:13 +01:00
image-mklibs.bbclass mklibs: Fix loader for mipsel 2014-10-30 13:01:21 +00:00
image-prelink.bbclass image/image-prelink/image-mklibs/sanity: Drop pointless EXPORT_FUNCTIONS 2014-04-01 23:37:01 +01:00
image-swab.bbclass image-swab.bbclass: Account for eglibc -> glibc move 2014-09-01 18:03:04 +01:00
image-vmdk.bbclass image-vmdk.bbclass: use sda rather than hda 2014-08-02 09:26:13 +01:00
image.bbclass image: add new items to IMAGE_FEATURES[validitems] list 2015-02-14 08:41:02 +00:00
image_types.bbclass image_types: Error out if BTRFS image is too small 2015-02-14 08:41:00 +00:00
image_types_uboot.bbclass image_types_uboot: Update to work after recent image_types changes 2012-02-29 18:25:03 +00:00
insane.bbclass insane.bbclass: Added QA test for expanded ${D} 2015-02-08 08:00:26 +00:00
insserv.bbclass bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the populate_staging task to populate_sysroot 2009-11-13 12:15:42 +00:00
kernel-arch.bbclass kernel-arch.bbclass: add arm64 support to U-Boot architecture map 2014-03-21 12:05:54 +00:00
kernel-grub.bbclass *.bbclass (shell): avoid pipe with sed 2014-05-08 13:00:33 +01:00
kernel-module-split.bbclass kernel/image/depmodwrapper: Fixups for depmod 2015-01-23 14:32:02 +00:00
kernel-yocto.bbclass linux-yocto: make kernel configuration audit user visible 2015-02-21 22:05:33 +00:00
kernel.bbclass kernel: Fix depmod for multilib 2015-01-29 15:36:52 +00:00
kernelsrc.bbclass kernelsrc.bbclass: Ensure fetch/unpack/patch tasks don't run 2014-12-21 12:37:55 +00:00
lib_package.bbclass lib_package.bbclass: Correct comment referring to bin directories. 2013-01-07 11:09:42 +00:00
libc-common.bbclass libc-common.bbclass: rename ALL the packages 2014-08-23 23:01:57 +01:00
libc-package.bbclass libc-package.bbclass: add aarch64 target to locale_arch_options 2014-12-23 10:18:17 +00:00
license.bbclass license.bbclass: fix unexpected operator for LICENSE values with space 2015-02-17 22:35:04 +00:00
linux-kernel-base.bbclass kernel: Rearrange for 1.8 2014-12-21 12:37:53 +00:00
logging.bbclass logging: add bb* logging mechanisms for bash recipe functions 2011-04-28 10:45:41 +01:00
meta.bbclass meta: fix no newline at end of file 2014-07-03 17:41:16 +01:00
metadata_scm.bbclass metadata_scm: Fix crash due to uncaught python exception 2014-12-03 12:23:59 +00:00
migrate_localcount.bbclass classes/conf: Add eventmasks for event handlers 2013-06-14 12:55:47 +01:00
mime.bbclass mime.bbclass: remove the --disable-update-mimedb 2014-01-06 11:13:56 +00:00
mirrors.bbclass mirrors.bbclass: add ${CPAN_MIRROR} option 2014-05-27 16:11:53 +01:00
module-base.bbclass kernel: move source and build output to work-shared 2015-01-16 23:08:18 +00:00
module.bbclass kernel: move source and build output to work-shared 2015-01-16 23:08:18 +00:00
multilib.bbclass multilib.bbclass/package_manager.py: fix <multilib>-meta-toolchain build failure 2014-11-04 10:27:09 +00:00
multilib_global.bbclass multilib_global.bbclass: PREFERRED_PROVIDERS for multilibs 2014-08-15 18:21:50 +01:00
multilib_header.bbclass multilib_header: Do not install mutlilib headers for musl 2014-06-01 14:29:29 +01:00
native.bbclass native: remove PN from DEPENDS automatically 2015-02-03 14:53:55 +00:00
nativesdk.bbclass native/nativesdk: Clear MACHINEOVERRIDES 2014-08-27 12:12:29 +01:00
oelint.bbclass oelint.bbclass: Check for ${PN} or ${P} usage 2014-08-06 10:23:40 +01:00
own-mirrors.bbclass own-mirrors: Add gitsm:// mirror support 2014-06-25 13:51:48 +01:00
package.bbclass packaging: allow globs in CONFFILES 2015-02-19 07:51:38 +00:00
package_deb.bbclass packaging: allow globs in CONFFILES 2015-02-19 07:51:38 +00:00
package_ipk.bbclass packaging: allow globs in CONFFILES 2015-02-19 07:51:38 +00:00
package_rpm.bbclass packaging: allow globs in CONFFILES 2015-02-19 07:51:38 +00:00
package_tar.bbclass classes/package_tar: fix conflicts with package_deb / package_ipk 2014-02-25 08:01:09 +00:00
packagedata.bbclass packagedata: Show error when trying to change PE/PV/PR from runtime/pkgdata 2013-06-28 10:01:28 +01:00
packagegroup.bbclass packagegroup.bbclass: Use immediate expanded PACKAGE_ARCH value 2014-09-10 15:38:57 +01:00
packageinfo.bbclass bitbake.conf/package: Collapse PKGDATA_DIR into a single machine specific directory 2013-09-14 08:21:00 +01:00
patch.bbclass patch.bbclass: unset TMPDIR after use 2014-06-29 09:04:22 +01:00
perlnative.bbclass base/perlnative/pythonnative/gzipnative: Add a new variable to enable easier handling of native path issues 2012-07-26 14:56:20 +01:00
pixbufcache.bbclass pixbufcache: add error exit in pixbufcache_sstate_postinst 2014-04-24 17:55:13 +01:00
pkgconfig.bbclass pkgconfig: Drop automatic pkgconfig RDEPENDS 2012-10-18 12:13:12 +01:00
populate_sdk.bbclass nativesdk: Switch to using nativesdk as a prefix, not a suffix 2012-09-02 05:52:06 -07:00
populate_sdk_base.bbclass populate_sdk: Handle OLDEST_KERNEL 2015-02-17 13:43:39 +00:00
prexport.bbclass utility-tasks/distrodata: Add recideptask flag for fetchall/checkuriall 2013-06-20 13:10:46 +01:00
primport.bbclass classes/conf: Add eventmasks for event handlers 2013-06-14 12:55:47 +01:00
prserv.bbclass package/prserv: Merge two similar functions into one 2014-11-09 10:21:19 +00:00
ptest-gnome.bbclass ptest-gnome: add ptest helper for GNOME packages 2014-07-25 15:33:59 +01:00
ptest.bbclass ptest: Work from PTEST_ENABLED, not DISTRO_FEATURES 2014-05-08 13:00:33 +01:00
python-dir.bbclass distutils: Introduce PYTHON_ABI variable 2014-02-02 22:37:39 +00:00
python3native.bbclass python3native.bbclass: Add python3 abstraction class 2014-02-02 22:37:38 +00:00
pythonnative.bbclass pythonnative: set PYTHON_EXECUTABLE so that cmake can find it 2014-12-25 08:18:13 +00:00
qemu.bbclass qemu/libc-package: Fix qemu option handling 2014-12-05 18:01:08 +00:00
qmake2.bbclass qt: update qmake2 class to export qconfig.pri mkspec 2013-06-13 17:38:11 +01:00
qmake_base.bbclass qmake_base.bbclass: fix hardcoded paths in a generated qt.conf 2015-02-14 08:40:57 +00:00
qt4e.bbclass Revert "qt4*.bbclass: disable build qt on mips64 with 64 bits userspace" 2014-12-05 18:01:05 +00:00
qt4x11.bbclass recipes-qt: add x11 to required DISTRO_FEATURES 2015-01-29 15:36:51 +00:00
recipe_sanity.bbclass recipe_sanity.bbclass: avoid error when running 'bitbake -e' 2014-04-23 11:43:27 +01:00
relocatable.bbclass relocatable.bbclass: split it up, to reuse code 2012-08-02 15:28:39 +01:00
report-error.bbclass report-error: Catch un-readable log data 2015-02-03 14:30:55 +00:00
rm_work.bbclass rm_work: Fix RM_WORK_EXCLUDE for image/sdk recipes 2015-01-08 09:24:47 +00:00
rootfs_deb.bbclass rootfs_*: Refactor common depends/lockfile task flags 2014-08-15 18:21:46 +01:00
rootfs_ipk.bbclass opkg: Merge in opkg-collateral 2015-02-03 14:53:56 +00:00
rootfs_rpm.bbclass rootfs_*: Refactor common depends/lockfile task flags 2014-08-15 18:21:46 +01:00
sanity.bbclass sanity: TMPDIR ABI change for kernel process 2014-12-21 12:37:53 +00:00
scons.bbclass scons bbclass: enable parallel make 2014-01-28 00:52:36 +00:00
sdl.bbclass classes/sdl: remove Opie-specific desktop file/packaging 2012-02-21 17:00:46 +00:00
setuptools.bbclass classes: Add distutils for python3 2014-02-02 22:37:39 +00:00
setuptools3.bbclass classes: Add distutils for python3 2014-02-02 22:37:39 +00:00
sip.bbclass *.bbclass (shell): avoid pipe with sed 2014-05-08 13:00:33 +01:00
siteconfig.bbclass meta-environment: Fix config-site with a multilib config 2014-11-12 15:38:33 +00:00
siteinfo.bbclass autotools/siteinfo: Avoid races over siteinfo files 2015-02-13 14:49:36 +00:00
spdx.bbclass spdx.bbclass: improved error handling and code cleanup 2014-11-20 14:08:14 +00:00
sstate.bbclass sstate.bbclass: Fix up white space lost in last commit. 2014-10-18 16:14:04 +02:00
staging.bbclass staging: Exclude MULTI_PROVIDER_WHISTLIST from do_populate_sysroot 2014-09-30 14:10:33 +01:00
syslinux.bbclass INITRD var: make it a list of filesystem images 2014-08-02 09:26:14 +01:00
systemd.bbclass systemd: don't add files and dependencies from units Conflicts 2014-11-04 10:27:11 +00:00
terminal.bbclass terminal.bbclass: do not export PS1 2014-01-10 15:16:52 +00:00
testimage-auto.bbclass testimage: add task level lock 2014-03-05 15:50:20 +00:00
testimage.bbclass testimage: Add parselogs to the default tests for sato images 2014-08-29 23:44:37 +01:00
texinfo.bbclass texinfo.bbclass: native/cross uses dummy texinfo; target uses host's Texinfo. 2014-06-13 12:31:38 +01:00
tinderclient.bbclass meta/classes: Various python whitespace fixes 2012-08-21 12:15:30 +01:00
toaster.bbclass toaster.bbclass: trigger event for other image files 2014-12-19 18:08:00 +00:00
toolchain-scripts.bbclass toolchain-script: Add support for ccache builds with the SDK 2014-12-03 12:24:00 +00:00
typecheck.bbclass classes/conf: Add eventmasks for event handlers 2013-06-14 12:55:47 +01:00
uboot-config.bbclass uboot-config.bbclass: Allow multiple U-Boot config for machine 2015-02-08 08:00:24 +00:00
uninative.bbclass uninative: Add uninative - a way of reusing native/cross over multiple distros 2014-09-23 20:31:18 +01:00
update-alternatives.bbclass update-alternatives: We now use u-a in nativesdk so make sure the dependency is present 2014-01-19 16:32:10 +00:00
update-rc.d.bbclass update-rc.d: use '-f' option in updatercd_postrm 2015-02-17 22:35:03 +00:00
useradd-staticids.bbclass useradd-staticids.bbclass: Fix for Bug 6633 2014-09-03 16:00:28 +01:00
useradd.bbclass useradd.bbclass: avoid do_rootfs error for debian package backend 2015-02-17 22:35:03 +00:00
useradd_base.bbclass useradd_base.bbclass: avoid the traffic crowding 2014-04-05 23:24:01 +01:00
utility-tasks.bbclass classes/utility-tasks: make do_listtasks a little more friendly 2014-02-25 08:01:09 +00:00
utils.bbclass utils.bbclass: fix create_cmdline_wrapper 2015-02-17 22:35:02 +00:00
vala.bbclass vala.bbclass: enable PARALLEL_MAKE 2015-02-15 21:58:27 +00:00
waf.bbclass waf.bbclass: add waf build system class 2013-09-06 23:03:22 +01:00