@@ -25,9 +25,9 if [ "$BUILD_KERNEL" = true ] ; then | |||||
25 |
|
25 | |||
26 | # Fetch current RPi2/3 kernel sources |
|
26 | # Fetch current RPi2/3 kernel sources | |
27 | if [ -z "${KERNEL_BRANCH}" ] ; then |
|
27 | if [ -z "${KERNEL_BRANCH}" ] ; then | |
28 | sudo -u nobody git -C "${temp_dir}" clone --depth=1 "${KERNEL_URL}" |
|
28 | sudo -E -u nobody git -C "${temp_dir}" clone --depth=1 "${KERNEL_URL}" | |
29 | else |
|
29 | else | |
30 | sudo -u nobody git -C "${temp_dir}" clone --depth=1 --branch "${KERNEL_BRANCH}" "${KERNEL_URL}" |
|
30 | sudo -E -u nobody git -C "${temp_dir}" clone --depth=1 --branch "${KERNEL_BRANCH}" "${KERNEL_URL}" | |
31 | fi |
|
31 | fi | |
32 |
|
32 | |||
33 | # Copy downloaded kernel sources |
|
33 | # Copy downloaded kernel sources |
@@ -20,13 +20,13 if [ "$BUILD_KERNEL" = true ] ; then | |||||
20 | temp_dir=$(sudo -u nobody mktemp -d) |
|
20 | temp_dir=$(sudo -u nobody mktemp -d) | |
21 |
|
21 | |||
22 | # Install latest boot binaries from raspberry/firmware github |
|
22 | # Install latest boot binaries from raspberry/firmware github | |
23 | sudo -u nobody wget -q -O "${temp_dir}/bootcode.bin" "${FIRMWARE_URL}/bootcode.bin" |
|
23 | sudo -E -u nobody wget -q -O "${temp_dir}/bootcode.bin" "${FIRMWARE_URL}/bootcode.bin" | |
24 | sudo -u nobody wget -q -O "${temp_dir}/fixup.dat" "${FIRMWARE_URL}/fixup.dat" |
|
24 | sudo -E -u nobody wget -q -O "${temp_dir}/fixup.dat" "${FIRMWARE_URL}/fixup.dat" | |
25 | sudo -u nobody wget -q -O "${temp_dir}/fixup_cd.dat" "${FIRMWARE_URL}/fixup_cd.dat" |
|
25 | sudo -E -u nobody wget -q -O "${temp_dir}/fixup_cd.dat" "${FIRMWARE_URL}/fixup_cd.dat" | |
26 | sudo -u nobody wget -q -O "${temp_dir}/fixup_x.dat" "${FIRMWARE_URL}/fixup_x.dat" |
|
26 | sudo -E -u nobody wget -q -O "${temp_dir}/fixup_x.dat" "${FIRMWARE_URL}/fixup_x.dat" | |
27 | sudo -u nobody wget -q -O "${temp_dir}/start.elf" "${FIRMWARE_URL}/start.elf" |
|
27 | sudo -E -u nobody wget -q -O "${temp_dir}/start.elf" "${FIRMWARE_URL}/start.elf" | |
28 | sudo -u nobody wget -q -O "${temp_dir}/start_cd.elf" "${FIRMWARE_URL}/start_cd.elf" |
|
28 | sudo -E -u nobody wget -q -O "${temp_dir}/start_cd.elf" "${FIRMWARE_URL}/start_cd.elf" | |
29 | sudo -u nobody wget -q -O "${temp_dir}/start_x.elf" "${FIRMWARE_URL}/start_x.elf" |
|
29 | sudo -E -u nobody wget -q -O "${temp_dir}/start_x.elf" "${FIRMWARE_URL}/start_x.elf" | |
30 |
|
30 | |||
31 | # Move downloaded boot binaries |
|
31 | # Move downloaded boot binaries | |
32 | mv "${temp_dir}/"* "${BOOT_DIR}/" |
|
32 | mv "${temp_dir}/"* "${BOOT_DIR}/" |
@@ -92,8 +92,8 if [ "$ENABLE_WIRELESS" = true ] ; then | |||||
92 | temp_dir=$(sudo -u nobody mktemp -d) |
|
92 | temp_dir=$(sudo -u nobody mktemp -d) | |
93 |
|
93 | |||
94 | # Fetch firmware binary blob |
|
94 | # Fetch firmware binary blob | |
95 | sudo -u nobody wget -q -O "${temp_dir}/brcmfmac43430-sdio.bin" "${WLAN_FIRMWARE_URL}/brcmfmac43430-sdio.bin" |
|
95 | sudo -E -u nobody wget -q -O "${temp_dir}/brcmfmac43430-sdio.bin" "${WLAN_FIRMWARE_URL}/brcmfmac43430-sdio.bin" | |
96 | sudo -u nobody wget -q -O "${temp_dir}/brcmfmac43430-sdio.txt" "${WLAN_FIRMWARE_URL}/brcmfmac43430-sdio.txt" |
|
96 | sudo -E -u nobody wget -q -O "${temp_dir}/brcmfmac43430-sdio.txt" "${WLAN_FIRMWARE_URL}/brcmfmac43430-sdio.txt" | |
97 |
|
97 | |||
98 | # Move downloaded firmware binary blob |
|
98 | # Move downloaded firmware binary blob | |
99 | mv "${temp_dir}/brcmfmac43430-sdio."* "${WLAN_FIRMWARE_DIR}/" |
|
99 | mv "${temp_dir}/brcmfmac43430-sdio."* "${WLAN_FIRMWARE_DIR}/" |
@@ -19,7 +19,7 if [ "$ENABLE_UBOOT" = true ] ; then | |||||
19 | temp_dir=$(sudo -u nobody mktemp -d) |
|
19 | temp_dir=$(sudo -u nobody mktemp -d) | |
20 |
|
20 | |||
21 | # Fetch U-Boot sources |
|
21 | # Fetch U-Boot sources | |
22 | sudo -u nobody git -C "${temp_dir}" clone "${UBOOT_URL}" |
|
22 | sudo -E -u nobody git -C "${temp_dir}" clone "${UBOOT_URL}" | |
23 |
|
23 | |||
24 | # Copy downloaded U-Boot sources |
|
24 | # Copy downloaded U-Boot sources | |
25 | mv "${temp_dir}/u-boot" "${R}/tmp/" |
|
25 | mv "${temp_dir}/u-boot" "${R}/tmp/" |
@@ -18,7 +18,7 if [ "$ENABLE_FBTURBO" = true ] ; then | |||||
18 | temp_dir=$(sudo -u nobody mktemp -d) |
|
18 | temp_dir=$(sudo -u nobody mktemp -d) | |
19 |
|
19 | |||
20 | # Fetch fbturbo sources |
|
20 | # Fetch fbturbo sources | |
21 | sudo -u nobody git -C "${temp_dir}" clone "${FBTURBO_URL}" |
|
21 | sudo -E -u nobody git -C "${temp_dir}" clone "${FBTURBO_URL}" | |
22 |
|
22 | |||
23 | # Move downloaded fbturbo sources |
|
23 | # Move downloaded fbturbo sources | |
24 | mv "${temp_dir}/xf86-video-fbturbo" "${R}/tmp/" |
|
24 | mv "${temp_dir}/xf86-video-fbturbo" "${R}/tmp/" |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant