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