soc/intel/common/block/*/Kconfig: Guard options with if-blocks
commit1b89f5eeab3f28c6d4d096203c9bd0deaf21f19e
authorAngel Pons <th3fanbus@gmail.com>
Wed, 2 Sep 2020 17:57:34 +0000 (2 19:57 +0200)
committerAngel Pons <th3fanbus@gmail.com>
Sat, 12 Sep 2020 23:00:12 +0000 (12 23:00 +0000)
treeb263006718d1bb843cde3054afadd79083ef8cff
parent042edd389be9461d69a754f9df9b7a68ff9a3a16
soc/intel/common/block/*/Kconfig: Guard options with if-blocks

The usual structure of these files is a global enable symbol, usually
followed by an if-block which contains all other dependent symbols.

Use this instead of having a `depends on` line to each symbol. Guard all
symbols, even if they originally were not guarded, since they don't do
anything useful unless the global enable option is selected.

Change-Id: If5347187b07a46192f0063011ab197b5047f555f
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45043
Reviewed-by: Subrata Banik <subrata.banik@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/soc/intel/common/block/gpio/Kconfig
src/soc/intel/common/block/sgx/Kconfig
src/soc/intel/common/block/uart/Kconfig