From 30f31797fe80307598bc2502bfe2eb19b9bf13fe Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Thu, 4 Feb 2021 11:57:59 -0800 Subject: [PATCH] ANDROID: GKI: enable networking; add hidden network configs Drop the explicit disable of CONFIG_ETHERNET from gki_defconfig so wired networking support is enabled by default. Also, when testing GKI with out-of-tree wired networking modules, it was discovered that a few hidden Kconfigs are required. Add them here so out of tree net drivers can be built in a separate tree. Bug: 179406580 Change-Id: Ia66742e514ae1a3c9f8d0ec1d92eb40b68d12ce7 Signed-off-by: Kevin Hilman --- arch/arm64/configs/gki_defconfig | 1 - arch/x86/configs/gki_defconfig | 1 - init/Kconfig.gki | 10 ++++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm64/configs/gki_defconfig b/arch/arm64/configs/gki_defconfig index 285727d8e4f7..4cc4e157a2f9 100644 --- a/arch/arm64/configs/gki_defconfig +++ b/arch/arm64/configs/gki_defconfig @@ -269,7 +269,6 @@ CONFIG_DUMMY=y CONFIG_WIREGUARD=y CONFIG_TUN=y CONFIG_VETH=y -# CONFIG_ETHERNET is not set CONFIG_PHYLIB=y CONFIG_PPP=y CONFIG_PPP_BSDCOMP=y diff --git a/arch/x86/configs/gki_defconfig b/arch/x86/configs/gki_defconfig index f97357ae1653..bd49068354ac 100644 --- a/arch/x86/configs/gki_defconfig +++ b/arch/x86/configs/gki_defconfig @@ -245,7 +245,6 @@ CONFIG_DUMMY=y CONFIG_WIREGUARD=y CONFIG_TUN=y CONFIG_VETH=y -# CONFIG_ETHERNET is not set CONFIG_PHYLIB=y CONFIG_PPP=y CONFIG_PPP_BSDCOMP=y diff --git a/init/Kconfig.gki b/init/Kconfig.gki index a782550d28ca..dea0ceb987dd 100644 --- a/init/Kconfig.gki +++ b/init/Kconfig.gki @@ -185,6 +185,15 @@ config GKI_HIDDEN_HYPERVISOR_CONFIGS config, required by various SoC platforms. This is usually selected by XEN or S390. +config GKI_HIDDEN_NET_CONFIGS + bool "Hidden networking configuration needed for GKI" + select PAGE_POOL + select NET_PTP_CLASSIFY + help + Dummy config option used to enable the networking hidden + config, required by various SoC platforms. + + # Atrocities needed for # a) building GKI modules in separate tree, or # b) building drivers that are not modularizable @@ -211,6 +220,7 @@ config GKI_HACKS_TO_FIX select GKI_HIDDEN_GPU_CONFIGS select GKI_HIDDEN_IRQ_CONFIGS select GKI_HIDDEN_HYPERVISOR_CONFIGS + select GKI_HIDDEN_NET_CONFIGS help Dummy config option used to enable core functionality used by modules that may not be selectable in this config.