Skip to content

Commit

Permalink
sokol-flex: adjust configuration for oe-selftest via distro feature
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Larson <[email protected]>
  • Loading branch information
kergoth committed Jul 29, 2022
1 parent 27f6ce5 commit a2cf914
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
python no_sanity_distros () {
if bb.utils.contains('DISTRO_FEATURES', 'selftest', True, False, d):
d.delVar('SANITY_TESTED_DISTROS')
}
addhandler no_sanity_distros
12 changes: 12 additions & 0 deletions meta-sokol-flex-distro/conf/distro/sokol-flex.conf
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,18 @@ require classes/metadata_scm.bbclass
METADATA_BRANCH := "${@base_detect_branch(d)}"
METADATA_REVISION := "${@base_detect_revision(d)}"
## }}}1
## OE Self Test {{{1
# Use the expected dummy kernel
PREFERRED_PROVIDER_virtual/kernel:feature-selftest = "linux-dummy"

# Remove configuration items incompatible with oe-selftest
INHERIT:remove:feature-selftest = "buildhistory rm_work"
PRSERV_HOST:feature-selftest = ""

# Selftest demands that this variable bit even exist in the metadata, so setting
# to the empty string is insufficient
require conf/distro/include/no_sanity_distros.inc
## }}}1
## SDK & Application Development Environment {{{1
# Use DEPLOY_DIR_ naming for consistency
SDK_DEPLOY:sokol-flex = "${DEPLOY_DIR_SDK}"
Expand Down

0 comments on commit a2cf914

Please sign in to comment.