From ea35a495b92b3d7e5b2d734484d483214e4b2dce Mon Sep 17 00:00:00 2001 From: Andrew Beltrano Date: Thu, 25 Jan 2024 15:25:20 -0700 Subject: [PATCH 1/2] Enable CONFIG_WLAN option. --- .docker/netremote-dev/build-mac80211_hwsim-kmod.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.docker/netremote-dev/build-mac80211_hwsim-kmod.sh b/.docker/netremote-dev/build-mac80211_hwsim-kmod.sh index 8eb1f1f7..c23c1b89 100755 --- a/.docker/netremote-dev/build-mac80211_hwsim-kmod.sh +++ b/.docker/netremote-dev/build-mac80211_hwsim-kmod.sh @@ -79,6 +79,7 @@ fi # Update the configuration to build the mac80211_hwsim module and its dependencies. echo "Updating kernel configuration to build mac80211_hwsim module and its dependencies..." ${KERNEL_CONFIG_UTIL} \ + --enable CONFIG_WLAN \ --module CONFIG_RFKILL \ --module CONFIG_CFG80211 \ --module CONFIG_MAC80211 \ From a1b43212f50a7e4f1aec829bca3ee6b2f34b0558 Mon Sep 17 00:00:00 2001 From: Andrew Beltrano Date: Thu, 25 Jan 2024 15:56:07 -0700 Subject: [PATCH 2/2] Fix ordering of build. --- .docker/netremote-dev/build-mac80211_hwsim-kmod.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.docker/netremote-dev/build-mac80211_hwsim-kmod.sh b/.docker/netremote-dev/build-mac80211_hwsim-kmod.sh index c23c1b89..e76f409e 100755 --- a/.docker/netremote-dev/build-mac80211_hwsim-kmod.sh +++ b/.docker/netremote-dev/build-mac80211_hwsim-kmod.sh @@ -68,9 +68,6 @@ cd ${WSL_SRC_DIRECTORY} echo "Preparing kernel source with configuration for running kernel..." cat /proc/config.gz | gzip -d > .config -echo "Preparing kernel source tree for building external modules..." -make prepare modules_prepare ${KERNEL_COMPILE_ARG_PARALLEL} - # Ensure kernel helper scripts are available. if [[ ! -f ${KERNEL_CONFIG_UTIL} ]]; then make scripts @@ -88,6 +85,9 @@ ${KERNEL_CONFIG_UTIL} \ # Supply defaults for any new/unspecified options in the configuration. make olddefconfig +echo "Preparing kernel source tree for building external modules..." +make prepare modules_prepare ${KERNEL_COMPILE_ARG_PARALLEL} + echo "Building kernel modules..." make modules ${KERNEL_COMPILE_ARG_PARALLEL}