From c520af08374726845bb6e059fc2a765838578b05 2018-11-18 20:39:17 From: Unknown Date: 2018-11-18 20:39:17 Subject: [PATCH] . --- diff --git a/bootstrap.d/13-kernel.sh b/bootstrap.d/13-kernel.sh index 13a56c3..80f3b0b 100644 --- a/bootstrap.d/13-kernel.sh +++ b/bootstrap.d/13-kernel.sh @@ -8,7 +8,7 @@ # Fetch and build latest raspberry kernel if [ "$BUILD_KERNEL" = true ] ; then # Setup source directory - mkdir -p "${R}/usr/src/linux" + mkdir -p "${KERNEL_DIR}" # Copy existing kernel sources into chroot directory if [ -n "$KERNELSRC_DIR" ] && [ -d "$KERNELSRC_DIR" ] ; then diff --git a/rpi23-gen-image.sh b/rpi23-gen-image.sh index 12615c5..8ba8102 100755 --- a/rpi23-gen-image.sh +++ b/rpi23-gen-image.sh @@ -83,7 +83,7 @@ ETC_DIR="${R}/etc" LIB_DIR="${R}/lib" BOOT_DIR="${R}/boot/firmware" KERNEL_DIR="${R}/usr/src/linux" -WLAN_FIRMWARE_DIR="${R}/lib/firmware/brcm" +WLAN_FIRMWARE_DIR="${LIB_DIR}/firmware/brcm" # Firmware directory: Blank if download from github RPI_FIRMWARE_DIR=${RPI_FIRMWARE_DIR:=""}