@@ -28,7 +28,7 if [ "$BUILD_KERNEL" = true ] ; then | |||||
28 | as_nobody -H git -C "${temp_dir}" clone --depth=1 "${KERNEL_URL}" linux |
|
28 | as_nobody -H git -C "${temp_dir}" clone --depth=1 "${KERNEL_URL}" linux | |
29 | else |
|
29 | else | |
30 | as_nobody -H git -C "${temp_dir}" clone --depth=1 --branch "${KERNEL_BRANCH}" "${KERNEL_URL}" linux |
|
30 | as_nobody -H git -C "${temp_dir}" clone --depth=1 --branch "${KERNEL_BRANCH}" "${KERNEL_URL}" linux | |
31 | fi |
|
31 | fi | |
32 |
|
32 | |||
33 | # Copy downloaded kernel sources |
|
33 | # Copy downloaded kernel sources | |
34 | cp -r "${temp_dir}/linux/"* "${R}/usr/src/linux/" |
|
34 | cp -r "${temp_dir}/linux/"* "${R}/usr/src/linux/" | |
@@ -107,7 +107,7 if [ "$BUILD_KERNEL" = true ] ; then | |||||
107 | echo "CONFIG_CRYPTO_XTS=y" >> ${KERNEL_DIR}/.config |
|
107 | echo "CONFIG_CRYPTO_XTS=y" >> ${KERNEL_DIR}/.config | |
108 | echo "CONFIG_CRYPTO_SHA512=y" >> ${KERNEL_DIR}/.config |
|
108 | echo "CONFIG_CRYPTO_SHA512=y" >> ${KERNEL_DIR}/.config | |
109 | echo "CONFIG_CRYPTO_MANAGER=y" >> ${KERNEL_DIR}/.config |
|
109 | echo "CONFIG_CRYPTO_MANAGER=y" >> ${KERNEL_DIR}/.config | |
110 | fi |
|
110 | fi | |
111 | fi |
|
111 | fi | |
112 |
|
112 | |||
113 | # Copy custom kernel configuration file |
|
113 | # Copy custom kernel configuration file | |
@@ -233,7 +233,7 if [ "$BUILD_KERNEL" = true ] ; then | |||||
233 | chroot_exec ln -sf /usr/src/linux "/lib/modules/${KERNEL_VERSION}/source" |
|
233 | chroot_exec ln -sf /usr/src/linux "/lib/modules/${KERNEL_VERSION}/source" | |
234 | fi |
|
234 | fi | |
235 | fi |
|
235 | fi | |
236 | elif [ BUILD_KERNEL = false ] |
|
236 | elif [ "$BUILD_KERNEL" = false ] ; then | |
237 | # Collabora states this kernel is just for RPI 2 so better implement a check. |
|
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 |
|
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+" |
|
239 | #"The Linux kernel "${COLLABORA_KERNEL}" and modules for use on ARMv7 kernel for Raspberry pi 2 model B+" | |
@@ -263,7 +263,7 elif [ BUILD_KERNEL = false ] | |||||
263 | fi |
|
263 | fi | |
264 | #if [ "$SET_ARCH" = 64 ] |
|
264 | #if [ "$SET_ARCH" = 64 ] | |
265 | else |
|
265 | else | |
266 |
echo " |
|
266 | echo "error: no precompiled 64bit kernel found" | |
267 | exit 1 |
|
267 | exit 1 | |
268 | # inset precompiled 64 bit kernel code here |
|
268 | # inset precompiled 64 bit kernel code here | |
269 | fi |
|
269 | fi |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant