@@ -240,18 +240,19 if [ -n "$SET_ARCH" ] | |||
|
240 | 240 | |
|
241 | 241 | #Raspberry setting grouped by board compability |
|
242 | 242 | if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 1 ] || [ "$RPI_MODEL" = 1P ] ; then |
|
243 | REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-armel" | |
|
244 | KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcmrpi_defconfig} | |
|
245 | UBOOT_CONFIG=${UBOOT_CONFIG:=rpi_defconfig} | |
|
246 | RELEASE_ARCH=${RELEASE_ARCH:=armel} | |
|
247 | KERNEL_IMAGE=${KERNEL_IMAGE:=kernel.img} | |
|
248 | CROSS_COMPILE=${CROSS_COMPILE:=arm-linux-gnueabi-} | |
|
249 | elif [ "$RPI_MODEL" = 2 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then | |
|
250 | REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-armhf" | |
|
251 | KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcm2709_defconfig} | |
|
252 | RELEASE_ARCH=${RELEASE_ARCH:=armhf} | |
|
253 | KERNEL_IMAGE=${KERNEL_IMAGE:=kernel7.img} | |
|
254 | CROSS_COMPILE=${CROSS_COMPILE:=arm-linux-gnueabihf-} | |
|
243 | REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-armel" | |
|
244 | KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcmrpi_defconfig} | |
|
245 | UBOOT_CONFIG=${UBOOT_CONFIG:=rpi_defconfig} | |
|
246 | RELEASE_ARCH=${RELEASE_ARCH:=armel} | |
|
247 | KERNEL_IMAGE=${KERNEL_IMAGE:=kernel.img} | |
|
248 | CROSS_COMPILE=${CROSS_COMPILE:=arm-linux-gnueabi-} | |
|
249 | elif [ "$RPI_MODEL" = 2 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then | |
|
250 | REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-armhf" | |
|
251 | KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcm2709_defconfig} | |
|
252 | RELEASE_ARCH=${RELEASE_ARCH:=armhf} | |
|
253 | KERNEL_IMAGE=${KERNEL_IMAGE:=kernel7.img} | |
|
254 | CROSS_COMPILE=${CROSS_COMPILE:=arm-linux-gnueabihf-} | |
|
255 | fi | |
|
255 | 256 | fi |
|
256 | 257 | |
|
257 | 258 | #Device specific configuration |
@@ -272,7 +273,7 if [ -n "$SET_ARCH" ] | |||
|
272 | 273 | DTB_FILE=${DTB_FILE:=bcm2710-rpi-3-b.dtb} |
|
273 | 274 | UBOOT_CONFIG=${UBOOT_CONFIG:=rpi_3_32b_defconfig} |
|
274 | 275 | ;; |
|
275 | 3P | |
|
276 | 3P) | |
|
276 | 277 | DTB_FILE=${DTB_FILE:=bcm2710-rpi-3-b.dtb} |
|
277 | 278 | UBOOT_CONFIG=${UBOOT_CONFIG:=rpi_3_32b_defconfig} |
|
278 | 279 | ;; |
@@ -281,7 +282,7 if [ -n "$SET_ARCH" ] | |||
|
281 | 282 | exit 1 |
|
282 | 283 | ;; |
|
283 | 284 | esac |
|
284 | fi | |
|
285 | #SET_ARCH not set | |
|
285 | 286 | else |
|
286 | 287 | echo "error: Please set '32' or '64' as value for SET_ARCH" |
|
287 | 288 | exit 1 |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant