Skip to content

Commit

Permalink
blobs: Introduce TAINT and TAINT_BLOBS Kconfig options
Browse files Browse the repository at this point in the history
In order to ensure that builds properly reflect the use of binary blobs,
it is important to markt the build as tainted. For that purpose
introduce two new Kconfig options that ultimately will be reflected in
the build image itself.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
  • Loading branch information
carlescufi committed Aug 29, 2022
1 parent 99bab75 commit d800ccc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Kconfig.zephyr
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,12 @@ config WARN_EXPERIMENTAL
Print a warning when the Kconfig tree is parsed if any experimental
features are enabled.

config TAINT
bool
help
Symbol that must be selected by a feature or module if the Zephyr
build is considered tainted.

config ENFORCE_ZEPHYR_STDINT
bool
prompt "Enforce Zephyr convention for stdint"
Expand Down
7 changes: 7 additions & 0 deletions modules/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Copyright (c) 2019 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

config TAINT_BLOBS
bool
select TAINT
help
This option is selected when binary blobs are present locally at
build time to reflect that the build might have been tainted by them.

comment "Available modules."

osource "$(KCONFIG_BINARY_DIR)/Kconfig.modules"
Expand Down

0 comments on commit d800ccc

Please sign in to comment.