@@ -255,32 +255,31 set +x | |||||
255 |
|
255 | |||
256 | # Set Raspberry Pi model specific configuration |
|
256 | # Set Raspberry Pi model specific configuration | |
257 | if [ "$RPI_MODEL" = 0 ] ; then |
|
257 | if [ "$RPI_MODEL" = 0 ] ; then | |
258 |
DTB_FILE=${RPI |
|
258 | DTB_FILE=${RPI0_DTB_FILE} | |
259 |
UBOOT_CONFIG=${RPI |
|
259 | UBOOT_CONFIG=${RPI0_UBOOT_CONFIG} | |
260 | elif [ "$RPI_MODEL" = 1 ] ; then |
|
260 | elif [ "$RPI_MODEL" = 1 ] ; then | |
261 |
DTB_FILE=${RPI |
|
261 | DTB_FILE=${RPI1_DTB_FILE} | |
262 |
UBOOT_CONFIG=${RPI |
|
262 | UBOOT_CONFIG=${RPI1_UBOOT_CONFIG} | |
263 | elif [ "$RPI_MODEL" = 1P ] ; then |
|
263 | elif [ "$RPI_MODEL" = 1P ] ; then | |
264 |
DTB_FILE=${RPI |
|
264 | DTB_FILE=${RPI1P_DTB_FILE} | |
265 |
UBOOT_CONFIG=${RPI |
|
265 | UBOOT_CONFIG=${RPI1P_UBOOT_CONFIG} | |
266 | elif [ "$RPI_MODEL" = 2 ] ; then |
|
266 | elif [ "$RPI_MODEL" = 2 ] ; then | |
267 | DTB_FILE=${RPI2_DTB_FILE} |
|
267 | DTB_FILE=${RPI2_DTB_FILE} | |
268 | UBOOT_CONFIG=${RPI2_UBOOT_CONFIG} |
|
268 | UBOOT_CONFIG=${RPI2_UBOOT_CONFIG} | |
269 | elif [ "$RPI_MODEL" = 3 ] ; then |
|
269 | elif [ "$RPI_MODEL" = 3 ] ; then | |
270 | DTB_FILE=${RPI3_DTB_FILE} |
|
270 | DTB_FILE=${RPI3_DTB_FILE} | |
271 | UBOOT_CONFIG=${RPI3_UBOOT_CONFIG} |
|
271 | UBOOT_CONFIG=${RPI3_UBOOT_CONFIG} | |
272 | BUILD_KERNEL=true |
|
|||
273 | elif [ "$RPI_MODEL" = 3P ] ; then |
|
272 | elif [ "$RPI_MODEL" = 3P ] ; then | |
274 | DTB_FILE=${RPI3P_DTB_FILE} |
|
273 | DTB_FILE=${RPI3P_DTB_FILE} | |
275 | UBOOT_CONFIG=${RPI3P_UBOOT_CONFIG} |
|
274 | UBOOT_CONFIG=${RPI3P_UBOOT_CONFIG} | |
276 | BUILD_KERNEL=true |
|
|||
277 | else |
|
275 | else | |
278 | echo "error: Raspberry Pi model ${RPI_MODEL} is not supported!" |
|
276 | echo "error: Raspberry Pi model ${RPI_MODEL} is not supported!" | |
279 | exit 1 |
|
277 | exit 1 | |
280 | fi |
|
278 | fi | |
281 |
|
279 | |||
282 | # Check if the internal wireless interface is supported by the RPi model |
|
280 | # Check if the internal wireless interface is supported by the RPi model | |
283 | if [ "$ENABLE_WIRELESS" = true ] && [ "$RPI_MODEL" = 2 ]; then |
|
281 | if [ "$ENABLE_WIRELESS" = true ] && ([ "$RPI_MODEL" = 1 ] || [ "$RPI_MODEL" = 1P ] || [ "$RPI_MODEL" = 2 ]); then | |
|
282 | ||||
284 | echo "error: The selected Raspberry Pi model has no internal wireless interface" |
|
283 | echo "error: The selected Raspberry Pi model has no internal wireless interface" | |
285 | exit 1 |
|
284 | exit 1 | |
286 | fi |
|
285 | fi | |
@@ -301,11 +300,17 fi | |||||
301 | # Add packages required for kernel cross compilation |
|
300 | # Add packages required for kernel cross compilation | |
302 | if [ "$BUILD_KERNEL" = true ] ; then |
|
301 | if [ "$BUILD_KERNEL" = true ] ; then | |
303 | if [ "$KERNEL_ARCH" = "arm" ] ; then |
|
302 | if [ "$KERNEL_ARCH" = "arm" ] ; then | |
|
303 | if [ "$RELEASE_ARCH" = "armel" ]; then | |||
|
304 | REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-armel" | |||
|
305 | fi | |||
|
306 | if [ "$RELEASE_ARCH" = "armhf" ]; then | |||
304 | REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-armhf" |
|
307 | REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-armhf" | |
305 | else |
|
308 | fi | |
|
309 | if [ "$RELEASE_ARCH" = "arm64" ]; then | |||
306 | REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-arm64" |
|
310 | REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-arm64" | |
307 | fi |
|
311 | fi | |
308 | fi |
|
312 | fi | |
|
313 | fi | |||
309 |
|
314 | |||
310 | # Add libncurses5 to enable kernel menuconfig |
|
315 | # Add libncurses5 to enable kernel menuconfig | |
311 | if [ "$KERNEL_MENUCONFIG" = true ] ; then |
|
316 | if [ "$KERNEL_MENUCONFIG" = true ] ; then |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant