brcm2708: add linux 4.19 support
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.19 / 950-0286-tpm-Make-SECURITYFS-a-weak-dependency.patch
1 From bcff673c2438f78cb41ab282ce969e4151e00f69 Mon Sep 17 00:00:00 2001
2 From: Peter Huewe <peterhuewe@gmx.de>
3 Date: Mon, 3 Sep 2018 21:51:51 +0200
4 Subject: [PATCH 286/703] tpm: Make SECURITYFS a weak dependency
5
6 commit 2f7d8dbb11287cbe9da6380ca14ed5d38c9ed91f upstream.
7
8 While having SECURITYFS enabled for the tpm subsystem is beneficial in
9 most cases, it is not strictly necessary to have it enabled at all.
10 Especially on platforms without any boot firmware integration of the TPM
11 (e.g. raspberry pi) it does not add any value for the tpm subsystem,
12 as there is no eventlog present.
13
14 By turning it from 'select' to 'imply' it still gets selected per
15 default, but enables users who want to save some kb of ram by turning
16 SECURITYFS off.
17
18 Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
19 Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
20 Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
21 ---
22 drivers/char/tpm/Kconfig | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25 --- a/drivers/char/tpm/Kconfig
26 +++ b/drivers/char/tpm/Kconfig
27 @@ -5,7 +5,7 @@
28 menuconfig TCG_TPM
29 tristate "TPM Hardware Support"
30 depends on HAS_IOMEM
31 - select SECURITYFS
32 + imply SECURITYFS
33 select CRYPTO
34 select CRYPTO_HASH_INFO
35 ---help---