##// END OF EJS Templates
Fixed: RPi3 stretch support, uboot updated compiler and src dir
drtyhlpr -
r139:3f5e1cfcfee6
parent child
Show More
@@ -196,6 +196,9 Reduce the disk space usage by deleting packages and files. See `REDUCE_*` param
196 196 ##### `ENABLE_UBOOT`=false
197 197 Replace the default RPi2/3 second stage bootloader (bootcode.bin) with [U-Boot bootloader](http://git.denx.de/?p=u-boot.git;a=summary). U-Boot can boot images via the network using the BOOTP/TFTP protocol.
198 198
199 ##### `UBOOTSRC_DIR`=""
200 Path to a directory of [U-Boot bootloader sources](http://git.denx.de/?p=u-boot.git;a=summary) that will be copied, configured, build and installed inside the chroot.
201
199 202 ##### `ENABLE_FBTURBO`=false
200 203 Install and enable the [hardware accelerated Xorg video driver](https://github.com/ssvb/xf86-video-fbturbo) `fbturbo`. Please note that this driver is currently limited to hardware accelerated window moving and scrolling.
201 204
@@ -13,8 +13,14 fi
13 13
14 14 # Fetch and build U-Boot bootloader
15 15 if [ "$ENABLE_UBOOT" = true ] ; then
16 # Fetch U-Boot bootloader sources
17 git -C "${R}/tmp" clone "${UBOOT_URL}"
16 # Copy existing U-Boot sources into chroot directory
17 if [ -n "$UBOOTSRC_DIR" ] && [ -d "$UBOOTSRC_DIR" ] ; then
18 # Copy local U-Boot sources
19 cp -r "${UBOOTSRC_DIR}" "${R}/tmp"
20 else
21 # Fetch U-Boot sources
22 git -C "${R}/tmp" clone "${UBOOT_URL}"
23 fi
18 24
19 25 # Build and install U-Boot inside chroot
20 26 chroot_exec make -j${KERNEL_THREADS} -C /tmp/u-boot/ ${UBOOT_CONFIG} all
@@ -140,6 +140,7 SSH_USER_PUB_KEY=${SSH_USER_PUB_KEY:=""}
140 140 ENABLE_MINBASE=${ENABLE_MINBASE:=false}
141 141 ENABLE_REDUCE=${ENABLE_REDUCE:=false}
142 142 ENABLE_UBOOT=${ENABLE_UBOOT:=false}
143 UBOOTSRC_DIR=${UBOOTSRC_DIR:=""}
143 144 ENABLE_FBTURBO=${ENABLE_FBTURBO:=false}
144 145 ENABLE_HARDNET=${ENABLE_HARDNET:=false}
145 146 ENABLE_IPTABLES=${ENABLE_IPTABLES:=false}
@@ -226,7 +227,7 fi
226 227 if [ "$RELEASE" = "jessie" ] ; then
227 228 COMPILER_PACKAGES="linux-compiler-gcc-4.8-arm g++ make bc"
228 229 elif [ "$RELEASE" = "stretch" ] ; then
229 COMPILER_PACKAGES="linux-compiler-gcc-5-arm g++ make bc"
230 COMPILER_PACKAGES="g++ make bc"
230 231 BUILD_KERNEL=true
231 232 else
232 233 echo "error: Debian release ${RELEASE} is not supported!"
@@ -324,6 +325,12 if [ -n "$KERNELSRC_DIR" ] && [ ! -d "$KERNELSRC_DIR" ] ; then
324 325 exit 1
325 326 fi
326 327
328 # Check if specified UBOOTSRC_DIR directory exists
329 if [ -n "$UBOOTSRC_DIR" ] && [ ! -d "$UBOOTSRC_DIR" ] ; then
330 echo "error: '${UBOOTSRC_DIR}' specified directory not found (UBOOTSRC_DIR)!"
331 exit 1
332 fi
333
327 334 # Check if specified CHROOT_SCRIPTS directory exists
328 335 if [ -n "$CHROOT_SCRIPTS" ] && [ ! -d "$CHROOT_SCRIPTS" ] ; then
329 336 echo "error: ${CHROOT_SCRIPTS} specified directory not found (CHROOT_SCRIPTS)!"
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant