From c6f4eaf616af82e4a4a4e8b79a2482f89550b47a Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Wed, 8 Apr 2020 17:15:11 +0800 Subject: [PATCH] generic: change thermal to tristate This commit fix https://github.com/project-openwrt/openwrt-latest-isco/issues/75 --- README.md | 2 +- target/linux/generic/config-5.4 | 4 +++- .../linux/generic/hack-5.4/999-thermal-tristate.patch | 11 +++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 target/linux/generic/hack-5.4/999-thermal-tristate.patch diff --git a/README.md b/README.md index 01f2f08d1c..6258329bac 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Has access to both ChinaNet & Internet ```bash sudo apt-get update -y sudo apt-get full-upgrade -y -sudo apt-get install -y build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libreadline-dev libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint ccache curl wget vim nano python python3 python-pip python3-pip python-ply python3-ply haveged lrzsz device-tree-compiler scons antlr3 gperf ecj fastjar +sudo apt-get install -y build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libreadline-dev libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint ccache curl wget vim nano python python3 python-pip python3-pip python-ply python3-ply haveged lrzsz device-tree-compiler scons antlr3 gperf ecj fastjar mkisofs ``` #### For mainland China & Ubuntu(16.04+) user, you may run the following command to setup quickly: ```bash diff --git a/target/linux/generic/config-5.4 b/target/linux/generic/config-5.4 index d44d29dbf3..0293bba497 100644 --- a/target/linux/generic/config-5.4 +++ b/target/linux/generic/config-5.4 @@ -4844,9 +4844,11 @@ CONFIG_SERIAL_EARLYCON=y # CONFIG_SERIO_SERPORT is not set # CONFIG_SERIO_SUN4I_PS2 is not set # CONFIG_SFC is not set +# CONFIG_SFC_FALCON is not set # CONFIG_SFC_MTD is not set # CONFIG_SFC_MCDI_LOGGING is not set -# CONFIG_SFC_FALCON is not set +# CONFIG_SFC_MCDI_MON is not set +# CONFIG_SFC_SRIOV is not set # CONFIG_SFI is not set # CONFIG_SFP is not set # CONFIG_SGETMASK_SYSCALL is not set diff --git a/target/linux/generic/hack-5.4/999-thermal-tristate.patch b/target/linux/generic/hack-5.4/999-thermal-tristate.patch new file mode 100644 index 0000000000..1d40613b90 --- /dev/null +++ b/target/linux/generic/hack-5.4/999-thermal-tristate.patch @@ -0,0 +1,11 @@ +--- a/drivers/thermal/Kconfig ++++ b/drivers/thermal/Kconfig +@@ -4,7 +4,7 @@ + # + + menuconfig THERMAL +- bool "Generic Thermal sysfs driver" ++ tristate "Generic Thermal sysfs driver" + help + Generic Thermal Sysfs driver offers a generic mechanism for + thermal management. Usually it's made up of one or more thermal