Skip to content

Commit

Permalink
fix: ensure source dirs exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Raines authored and dalehamel committed Dec 21, 2021
1 parent f9e507c commit 09d8338
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/init/fetch-linux-headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ install_cos_linux_headers()
SOURCES_DIR="${TARGET_DIR}/linux-lakitu-${BUILD_ID}"

if [[ ! -e "${SOURCES_DIR}/.installed" ]]; then
mkdir -p ${SOURCES_DIR}
echo "Installing kernel headers for COS build ${BUILD_ID}"
time fetch_cos_linux_sources
time generate_headers
Expand All @@ -77,6 +78,7 @@ install_generic_linux_headers()
SOURCES_DIR="${TARGET_DIR}/linux-generic-${KERNEL_VERSION}"

if [[ ! -e "${SOURCES_DIR}/.installed" ]];then
mkdir -p ${SOURCES_DIR}
echo "Installing kernel headers for generic kernel"
time fetch_generic_linux_sources
time generate_headers
Expand Down

0 comments on commit 09d8338

Please sign in to comment.