@@ -52,6 +52,10 if [ "$BUILD_KERNEL" = true ] ; then | |||
|
52 | 52 | if [ "$KERNEL_THREADS" = "1" ] && [ -r /proc/cpuinfo ] ; then |
|
53 | 53 | KERNEL_THREADS=$(grep -c processor /proc/cpuinfo) |
|
54 | 54 | fi |
|
55 | ||
|
56 | if [ "$ENABLE_QEMU" = true ] && [ "$KERNEL_ARCH" = arm64 ]; then | |
|
57 | cp "${KERNEL_DIR}"/arch/arm/configs/vexpress_defconfig "${KERNEL_DIR}"/arch/arm64/configs/ | |
|
58 | fi | |
|
55 | 59 | |
|
56 | 60 | # Configure and build kernel |
|
57 | 61 | if [ "$KERNELSRC_PREBUILT" = false ] ; then |
@@ -98,7 +102,7 if [ "$BUILD_KERNEL" = true ] ; then | |||
|
98 | 102 | #Switch to KERNELSRC_DIR so we can use set_kernel_config |
|
99 | 103 | cd "${KERNEL_DIR}" || exit |
|
100 | 104 | |
|
101 | if [ "$KERNEL_ARCH" = arm64 ] ; then | |
|
105 | if [ "$KERNEL_ARCH" = arm64 ] && [ "$ENABLE_QEMU" = false ]; then | |
|
102 | 106 | #Fix SD_DRIVER upstream and downstream mess in 64bit RPIdeb_config |
|
103 | 107 | # use correct driver MMC_BCM2835_MMC instead of MMC_BCM2835_SDHOST - see https://www.raspberrypi.org/forums/viewtopic.php?t=210225 |
|
104 | 108 | set_kernel_config CONFIG_MMC_BCM2835 n |
@@ -118,13 +122,13 if [ "$BUILD_KERNEL" = true ] ; then | |||
|
118 | 122 | set_kernel_config CONFIG_Z3FOLD y |
|
119 | 123 | set_kernel_config CONFIG_ZSMALLOC y |
|
120 | 124 | set_kernel_config CONFIG_PGTABLE_MAPPING y |
|
121 |
|
|
|
125 | set_kernel_config CONFIG_LZO_COMPRESS y | |
|
122 | 126 | |
|
123 | 127 | fi |
|
124 | 128 | |
|
125 | 129 | # enable basic KVM support; see https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=210546&start=25#p1300453 |
|
126 | 130 | if [ "$KERNEL_VIRT" = true ] && { [ "$RPI_MODEL" = 2 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] || [ "$RPI_MODEL" = 4 ]; } ; then |
|
127 |
|
|
|
131 | set_kernel_config CONFIG_HAVE_KVM_IRQCHIP y | |
|
128 | 132 | set_kernel_config CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL y |
|
129 | 133 | set_kernel_config CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT y |
|
130 | 134 | set_kernel_config CONFIG_HAVE_KVM_EVENTFD y |
@@ -215,8 +219,8 if [ "$BUILD_KERNEL" = true ] ; then | |||
|
215 | 219 | set_kernel_config CONFIG_SYSTEM_EXTRA_CERTIFICATE y |
|
216 | 220 | set_kernel_config CONFIG_SECONDARY_TRUSTED_KEYRING y |
|
217 | 221 | set_kernel_config CONFIG_IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY n |
|
218 |
|
|
|
219 |
|
|
|
222 | set_kernel_config CONFIG_SYSTEM_TRUSTED_KEYS m | |
|
223 | set_kernel_config CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE 4096 | |
|
220 | 224 | |
|
221 | 225 | set_kernel_config CONFIG_ARM64_CRYPTO y |
|
222 | 226 | set_kernel_config CONFIG_CRYPTO_SHA256_ARM64 m |
@@ -233,7 +237,7 if [ "$BUILD_KERNEL" = true ] ; then | |||
|
233 | 237 | set_kernel_config CONFIG_CRYPTO_AES_ARM64_NEON_BLK m |
|
234 | 238 | set_kernel_config CONFIG_CRYPTO_CHACHA20_NEON m |
|
235 | 239 | set_kernel_config CONFIG_CRYPTO_AES_ARM64_BS m |
|
236 |
|
|
|
240 | set_kernel_config SYSTEM_TRUSTED_KEYS | |
|
237 | 241 | fi |
|
238 | 242 | |
|
239 | 243 | # Netfilter kernel support See https://github.com/raspberrypi/linux/issues/2177#issuecomment-354647406 |
@@ -347,9 +351,9 if [ "$BUILD_KERNEL" = true ] ; then | |||
|
347 | 351 | |
|
348 | 352 | # Enables BPF syscall for systemd-journald see https://github.com/torvalds/linux/blob/master/init/Kconfig#L848 or https://groups.google.com/forum/#!topic/linux.gentoo.user/_2aSc_ztGpA |
|
349 | 353 | if [ "$KERNEL_BPF" = true ] ; then |
|
350 | set_kernel_config CONFIG_BPF_SYSCALL y | |
|
351 |
|
|
|
352 |
|
|
|
354 | set_kernel_config CONFIG_BPF_SYSCALL y | |
|
355 | set_kernel_config CONFIG_BPF_EVENTS y | |
|
356 | set_kernel_config CONFIG_BPF_STREAM_PARSER y | |
|
353 | 357 | set_kernel_config CONFIG_CGROUP_BPF y |
|
354 | 358 | fi |
|
355 | 359 | |
@@ -358,10 +362,10 if [ "$BUILD_KERNEL" = true ] ; then | |||
|
358 | 362 | |
|
359 | 363 | case "$KERNEL_DEFAULT_GOV" in |
|
360 | 364 | performance) |
|
361 | set_kernel_config CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE y | |
|
365 | set_kernel_config CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE y | |
|
362 | 366 | ;; |
|
363 | 367 | userspace) |
|
364 | set_kernel_config CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE y | |
|
368 | set_kernel_config CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE y | |
|
365 | 369 | ;; |
|
366 | 370 | ondemand) |
|
367 | 371 | set_kernel_config CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND y |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant