##// END OF EJS Templates
Added support for precompiled kernel other than collabora
Unknown -
r292:9e5bb80b1061
parent child
Show More
@@ -12,6 +12,7 if [ -z "$APT_PROXY" ] ; then
12 12 fi
13 13
14 14 if [ "$BUILD_KERNEL" = false ] ; then
15 if [ RPI_MODEL = 2 ] ; then
15 16 # Install APT pinning configuration for flash-kernel package
16 17 install_readonly files/apt/flash-kernel "${ETC_DIR}/apt/preferences.d/flash-kernel"
17 18
@@ -22,6 +23,11 if [ "$BUILD_KERNEL" = false ] ; then
22 23 # Upgrade collabora package index and install collabora keyring
23 24 chroot_exec apt-get -qq -y update
24 25 chroot_exec apt-get -qq -y --allow-unauthenticated install collabora-obs-archive-keyring
26 # if RPI_MODEL = [0] || [1] || [1P]
27 else
28 # insert apt configuration for precompiled kernel repository for RPI 0,1,1P
29 fi
30
25 31 else # BUILD_KERNEL=true
26 32 # Install APT sources.list
27 33 install_readonly files/apt/sources.list "${ETC_DIR}/apt/sources.list"
@@ -233,8 +233,13 if [ "$BUILD_KERNEL" = true ] ; then
233 233 chroot_exec ln -sf /usr/src/linux "/lib/modules/${KERNEL_VERSION}/source"
234 234 fi
235 235 fi
236
237 else # BUILD_KERNEL=false
236 elif [ BUILD_KERNEL = false ]
237 # Collabora states this kernel is just for RPI 2 so better implement a check.
238 #From https://repositories.collabora.co.uk/debian/dists/jessie/rpi2/binary-armhf/Packages
239 #"The Linux kernel "${COLLABORA_KERNEL}" and modules for use on ARMv7 kernel for Raspberry pi 2 model B+"
240 # nested if to be easily extended for more precompiled kernels
241 if [ "$SET_ARCH" = 32 ] ; then
242 if [ RPI_MODEL = 2 ] ; then
238 243 # Kernel installation
239 244 chroot_exec apt-get -qq -y --no-install-recommends install linux-image-"${COLLABORA_KERNEL}" raspberrypi-bootloader-nokernel
240 245
@@ -251,3 +256,11 else # BUILD_KERNEL=false
251 256 # Copy vmlinuz kernel to the boot directory
252 257 install_readonly "${VMLINUZ}" "${BOOT_DIR}/${KERNEL_IMAGE}"
253 258 fi
259 if [ RPI_MODEL = 0 ] || [ RPI_MODEL = 1 ] || [ RPI_MODEL = 1P ] ; then
260 # insert precompiled Kernel here
261 fi
262 #if [ "$SET_ARCH" = 64 ]
263 else
264 # inset precompiled 64 bit kernel here
265 fi
266 fi
1 NO CONTENT: modified file
1 NO CONTENT: modified file
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant