@@ -8,12 +8,12 | |||
|
8 | 8 | # Fetch and build latest raspberry kernel |
|
9 | 9 | if [ "$BUILD_KERNEL" = true ] ; then |
|
10 | 10 | # Setup source directory |
|
11 | mkdir -p "${R}/usr/src/linux" | |
|
11 | mkdir -p "${KERNEL_DIR}" | |
|
12 | 12 | |
|
13 | 13 | # Copy existing kernel sources into chroot directory |
|
14 | 14 | if [ -n "$KERNELSRC_DIR" ] && [ -d "$KERNELSRC_DIR" ] ; then |
|
15 | 15 | # Copy kernel sources and include hidden files |
|
16 |
cp -r "${KERNELSRC_DIR}/". "${R} |
|
|
16 | cp -r "${KERNELSRC_DIR}/". "${KERNEL_DIR}" | |
|
17 | 17 | |
|
18 | 18 | # Clean the kernel sources |
|
19 | 19 | if [ "$KERNELSRC_CLEAN" = true ] && [ "$KERNELSRC_PREBUILT" = false ] ; then |
@@ -31,7 +31,7 if [ "$BUILD_KERNEL" = true ] ; then | |||
|
31 | 31 | fi |
|
32 | 32 | |
|
33 | 33 | # Copy downloaded kernel sources |
|
34 |
cp -r "${temp_dir}/linux/"* "${R} |
|
|
34 | cp -r "${temp_dir}/linux/"* "${KERNEL_DIR}" | |
|
35 | 35 | |
|
36 | 36 | # Remove temporary directory for kernel sources |
|
37 | 37 | rm -fr "${temp_dir}" |
@@ -123,7 +123,7 ETC_DIR="${R}/etc" | |||
|
123 | 123 | LIB_DIR="${R}/lib" |
|
124 | 124 | BOOT_DIR="${R}/boot/firmware" |
|
125 | 125 | KERNEL_DIR="${R}/usr/src/linux" |
|
126 |
WLAN_FIRMWARE_DIR="${R} |
|
|
126 | WLAN_FIRMWARE_DIR="${LIB_DIR}/firmware/brcm" | |
|
127 | 127 | |
|
128 | 128 | # Firmware directory: Blank if download from github |
|
129 | 129 | RPI_FIRMWARE_DIR=${RPI_FIRMWARE_DIR:=""} |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant