Skip to content

Commit

Permalink
Merge pull request #88 from microsoft/fixmac80211hwsimbuildscript
Browse files Browse the repository at this point in the history
Fix some issues in the mac80211_hwsim build script
  • Loading branch information
abeltrano authored Jan 2, 2024
2 parents e11f328 + 1effa97 commit 7388184
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .docker/netremote-dev/build-mac80211_hwsim-kmod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,12 @@ if [[ ! -d ${WSL_SRC_DIRECTORY_BASE} ]]; then
mkdir -p ${WSL_SRC_DIRECTORY_BASE}
fi

cd ${WSL_SRC_DIRECTORY_BASE}
wget ${KERNEL_URL_FILE} ${WGET_XTRA_ARGS:+"${WGET_XTRA_ARGS}"} -O - | tar xzvf -
cd ${WSL_SRC_DIRECTORY}
if [[ ! -d ${WSL_SRC_DIRECTORY_BASE}/${WSL_SRC_DIRECTORY} ]]; then
cd ${WSL_SRC_DIRECTORY_BASE}
wget ${KERNEL_URL_FILE} ${WGET_XTRA_ARGS:+"${WGET_XTRA_ARGS}"} -O - | tar xzvf -
fi

cd ${WSL_SRC_DIRECTORY_BASE}/${WSL_SRC_DIRECTORY}

# Prepare the kernel source with the configuration for the running kernel.
echo "Preparing kernel source with configuration for running kernel..."
Expand All @@ -65,6 +68,9 @@ if [[ ! -f .config ]]; then
ln -s ${WSL_SRC_CONFIG} .config
fi

# Supply defaults for any new/unspecified options in the configuration.
make olddefconfig

# 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} \
Expand All @@ -73,9 +79,6 @@ ${KERNEL_CONFIG_UTIL} \
--module CONFIG_MAC80211 \
--module CONFIG_MAC80211_HWSIM

# 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 ${WSL_KERNEL_COMPILE_ARG_PARALLEL}

Expand Down

0 comments on commit 7388184

Please sign in to comment.