aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2018-11-03 00:32:39 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2018-12-15 14:28:50 +0100
commitd234431c0cc3f8d8d9a562b5ebf29bd41f77401d (patch)
treee4cabdc74b43ed11b74c9de4d7d8add654aed09d
parent4c9df2aa0820e9d23f6d95e9b4c76558841bb7b8 (diff)
downloadupstream-d234431c0cc3f8d8d9a562b5ebf29bd41f77401d.tar.gz
upstream-d234431c0cc3f8d8d9a562b5ebf29bd41f77401d.tar.bz2
upstream-d234431c0cc3f8d8d9a562b5ebf29bd41f77401d.zip
kernel: Make CONFIG_NVMEM tristate
CONFIG_OF_NET depends on CONFIG_NVMEM in kernel 4.19. To fix some build problems in mainline Linux kernel CONFIG_NVMEM was changed from tristate to bool in commit 2a37ce25d9 ("nvmem: disallow modular CONFIG_NVMEM"). This patch in OpenWrt revert the upstream commit and changes CONFIG_NVMEM back to tristate we just have to make sure to build this in for all targets which select CONFIG_OF_NET. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--target/linux/generic/hack-4.19/290-nvmem-make-CONFIG_NVMEM-tristate-again.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/generic/hack-4.19/290-nvmem-make-CONFIG_NVMEM-tristate-again.patch b/target/linux/generic/hack-4.19/290-nvmem-make-CONFIG_NVMEM-tristate-again.patch
new file mode 100644
index 0000000000..ad45dc9168
--- /dev/null
+++ b/target/linux/generic/hack-4.19/290-nvmem-make-CONFIG_NVMEM-tristate-again.patch
@@ -0,0 +1,33 @@
+From 2579d9b982c7232f9354bcca5262e26a84c38799 Mon Sep 17 00:00:00 2001
+From: Hauke Mehrtens <hauke@hauke-m.de>
+Date: Fri, 2 Nov 2018 17:40:32 +0100
+Subject: [PATCH] nvmem: make CONFIG_NVMEM tristate again
+
+Only build it in when OF_NET is selected and make it possible to build
+it as module otherwise.
+
+Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
+---
+ drivers/nvmem/Kconfig | 2 +-
+ drivers/of/Kconfig | 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+--- a/drivers/nvmem/Kconfig
++++ b/drivers/nvmem/Kconfig
+@@ -1,5 +1,5 @@
+ menuconfig NVMEM
+- bool "NVMEM Support"
++ tristate "NVMEM Support"
+ help
+ Support for NVMEM(Non Volatile Memory) devices like EEPROM, EFUSES...
+
+--- a/drivers/of/Kconfig
++++ b/drivers/of/Kconfig
+@@ -71,6 +71,7 @@ config OF_IRQ
+
+ config OF_NET
+ depends on NETDEVICES
++ select NVMEM
+ def_bool y
+
+ config OF_MDIO