From b1ff1bd2067beed2425de13d4d75beb0fbe2dc17 Mon Sep 17 00:00:00 2001 From: Joel Stanley Date: Thu, 25 Feb 2021 14:03:26 +1030 Subject: Remove phsophor-gpio-keys as a standalone feature The feature was implemented as an append to the kernel (BSP) layers in meta-phsophor. This created a three way dance between machine layers, BSP and meta-phosphor, when it should have been the kernel layer providing this feature and machines could then opt in. Fixing this means we could remove the KERNEL_DANGLING_FEATURES_WARN_ONLY workaround. As the feature is simply turning on a pair of kernel options without any other impact, we can implement it by adding the options to our defconfigs. In fact, aspeed and hpe kernel configurations enable the two kernel options: $ git grep CONFIG_KEYBOARD_GPIO=y meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g4/defconfig:CONFIG_KEYBOARD_GPIO=y meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g5/defconfig:CONFIG_KEYBOARD_GPIO=y meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g6/defconfig:CONFIG_KEYBOARD_GPIO=y meta-hpe/meta-gxp/recipes-kernel/linux/linux-obmc/defconfig:CONFIG_KEYBOARD_GPIO=y $ git grep CONFIG_INPUT_EVDEV meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g4/defconfig:CONFIG_INPUT_EVDEV=y meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g5/defconfig:CONFIG_INPUT_EVDEV=y meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g6/defconfig:CONFIG_INPUT_EVDEV=y meta-hpe/meta-gxp/recipes-kernel/linux/linux-obmc/defconfig:CONFIG_INPUT_EVDEV=y Other machines that wish to enable this feature should ensure it is added to their BSP's defconfig, or add it to their machine specific defconfig. Change-Id: I0726836319022f96c1d13d4a0cbd73708047302c Signed-off-by: Joel Stanley --- .../recipes-kernel/linux/linux-obmc/phosphor-gpio-keys.cfg | 7 ------- .../recipes-kernel/linux/linux-obmc/phosphor-gpio-keys.scc | 2 -- meta-hpe/meta-gxp/recipes-kernel/linux/linux-obmc_5.7.bb | 3 --- 3 files changed, 12 deletions(-) delete mode 100644 meta-hpe/meta-gxp/recipes-kernel/linux/linux-obmc/phosphor-gpio-keys.cfg delete mode 100644 meta-hpe/meta-gxp/recipes-kernel/linux/linux-obmc/phosphor-gpio-keys.scc (limited to 'meta-hpe') diff --git a/meta-hpe/meta-gxp/recipes-kernel/linux/linux-obmc/phosphor-gpio-keys.cfg b/meta-hpe/meta-gxp/recipes-kernel/linux/linux-obmc/phosphor-gpio-keys.cfg deleted file mode 100644 index f5c01bed7..000000000 --- a/meta-hpe/meta-gxp/recipes-kernel/linux/linux-obmc/phosphor-gpio-keys.cfg +++ /dev/null @@ -1,7 +0,0 @@ -CONFIG_INPUT_KEYBOARD=y -# CONFIG_INPUT_LEDS is not set -# CONFIG_INPUT_MOUSDEV is not set -CONFIG_INPUT_EVDEV=y -# CONFIG_KEYBOARD_ATKBD is not set -CONFIG_KEYBOARD_GPIO=y -# CONFIG_INPUT_MOUSE is not set diff --git a/meta-hpe/meta-gxp/recipes-kernel/linux/linux-obmc/phosphor-gpio-keys.scc b/meta-hpe/meta-gxp/recipes-kernel/linux/linux-obmc/phosphor-gpio-keys.scc deleted file mode 100644 index 78961af7a..000000000 --- a/meta-hpe/meta-gxp/recipes-kernel/linux/linux-obmc/phosphor-gpio-keys.scc +++ /dev/null @@ -1,2 +0,0 @@ -define KFEATURE_DESCRIPTION "Enable gpio-keys" -kconf non-hardware phosphor-gpio-keys.cfg diff --git a/meta-hpe/meta-gxp/recipes-kernel/linux/linux-obmc_5.7.bb b/meta-hpe/meta-gxp/recipes-kernel/linux/linux-obmc_5.7.bb index 8f5a627ed..0e57afd87 100644 --- a/meta-hpe/meta-gxp/recipes-kernel/linux/linux-obmc_5.7.bb +++ b/meta-hpe/meta-gxp/recipes-kernel/linux/linux-obmc_5.7.bb @@ -4,9 +4,6 @@ LINUX_VERSION ?= "5.7.10" SRCREV="1ca49db2b4baf304d29396a603d0308770797a5c" require linux-obmc.inc -SRC_URI += "file://phosphor-gpio-keys.scc" -SRC_URI += "file://phosphor-gpio-keys.cfg" - # OpenBMC loads in kernel features via other mechanisms so this check # in the kernel-yocto.bbclass is not required KERNEL_DANGLING_FEATURES_WARN_ONLY="1" -- cgit v1.2.3