Skip to content

Commit

Permalink
Merge pull request #131 from microsoft/fixhwsimbuild
Browse files Browse the repository at this point in the history
Fix script to build mac80211_hwsim kernel module
  • Loading branch information
abeltrano authored Jan 25, 2024
2 parents 4fecdb5 + 69f3e3e commit 4553be0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .docker/netremote-dev/build-mac80211_hwsim-kmod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -79,6 +76,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 \
Expand All @@ -87,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}

Expand Down

0 comments on commit 4553be0

Please sign in to comment.