##// END OF EJS Templates
a
burnbabyburn -
r380:7d7d52b83119
parent child
Show More
@@ -97,33 +97,33 if [ "$BUILD_KERNEL" = true ] ; then
97 # requires activation via kernel parameter or sysfs
97 # requires activation via kernel parameter or sysfs
98 # see e.g. https://askubuntu.com/a/472227 for a summary of ZSWAP (vs ZRAM etc.)
98 # see e.g. https://askubuntu.com/a/472227 for a summary of ZSWAP (vs ZRAM etc.)
99 # and e.g. https://wiki.archlinux.org/index.php/zswap for parameters etc.
99 # and e.g. https://wiki.archlinux.org/index.php/zswap for parameters etc.
100 set_kernel_config ZPOOL y
100 set_kernel_config ZPOOL y
101 set_kernel_config ZSWAP y
101 set_kernel_config ZSWAP y
102 set_kernel_config ZBUD y
102 set_kernel_config ZBUD y
103 set_kernel_config Z3FOLD y
103 set_kernel_config Z3FOLD y
104 set_kernel_config ZSMALLOC y
104 set_kernel_config ZSMALLOC y
105 set_kernel_config PGTABLE_MAPPING y
105 set_kernel_config PGTABLE_MAPPING y
106 fi
106 fi
107
107
108 if [ "$KERNEL_VIRT" = true ] && ( [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ) ; then
108 if [ "$KERNEL_VIRT" = true ] && ( [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ) ; then
109 # enable basic KVM support; see e.g.
109 # enable basic KVM support; see e.g.
110 # https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=210546&start=25#p1300453
110 # https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=210546&start=25#p1300453
111 set_kernel_config VIRTUALIZATION y
111 set_kernel_config VIRTUALIZATION y
112 set_kernel_config KVM y
112 set_kernel_config KVM y
113 set_kernel_config VHOST_NET m
113 set_kernel_config VHOST_NET m
114 set_kernel_config VHOST_CROSS_ENDIAN_LEGACY y
114 set_kernel_config VHOST_CROSS_ENDIAN_LEGACY y
115 fi
115 fi
116 #See https://github.com/raspberrypi/linux/issues/2177#issuecomment-354647406
116 #See https://github.com/raspberrypi/linux/issues/2177#issuecomment-354647406
117 # Netfilter kernel support
117 # Netfilter kernel support
118 if [ "$KERNEL_NF" = true ] && ( [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ) ; then
118 if [ "$KERNEL_NF" = true ] && ( [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ) ; then
119 set_kernel_config CONFIG_NETFILTER_XTABLES m
119 set_kernel_config CONFIG_NETFILTER_XTABLES m
120 set_kernel_config CONFIG_NF_DUP_NETDEV m
120 set_kernel_config CONFIG_NF_DUP_NETDEV m
121 set_kernel_config CONFIG_NF_NAT_SIP m
121 set_kernel_config CONFIG_NF_NAT_SIP m
122 set_kernel_config CONFIG_NF_TABLES_ARP m
122 set_kernel_config CONFIG_NF_TABLES_ARP m
123 set_kernel_config CONFIG_NF_TABLES_BRIDGE m
123 set_kernel_config CONFIG_NF_TABLES_BRIDGE m
124 set_kernel_config NF_TABLES m
124 set_kernel_config NF_TABLES m
125 set_kernel_config CONFIG_BRIDGE_EBT_BROUTE m
125 set_kernel_config CONFIG_BRIDGE_EBT_BROUTE m
126 set_kernel_config CONFIG_BRIDGE_EBT_T_FILTER m
126 set_kernel_config CONFIG_BRIDGE_EBT_T_FILTER m
127 set_kernel_config CONFIG_BRIDGE_NF_EBTABLES m
127 set_kernel_config CONFIG_BRIDGE_NF_EBTABLES m
128 set_kernel_config CONFIG_IP6_NF_IPTABLES m
128 set_kernel_config CONFIG_IP6_NF_IPTABLES m
129 set_kernel_config CONFIG_IP6_NF_MATCH_AH m
129 set_kernel_config CONFIG_IP6_NF_MATCH_AH m
@@ -205,15 +205,15 if [ "$BUILD_KERNEL" = true ] ; then
205 set_kernel_config CONFIG_NF_TABLES_NETDEV m
205 set_kernel_config CONFIG_NF_TABLES_NETDEV m
206 set_kernel_config NETFILTER_XTABLES m
206 set_kernel_config NETFILTER_XTABLES m
207 fi
207 fi
208
208
209 #https://groups.google.com/forum/#!topic/linux.gentoo.user/_2aSc_ztGpA
209 #https://groups.google.com/forum/#!topic/linux.gentoo.user/_2aSc_ztGpA
210 #https://github.com/torvalds/linux/blob/master/init/Kconfig#L848
210 #https://github.com/torvalds/linux/blob/master/init/Kconfig#L848
211 # Enables BPF syscall for systemd-journald
211 # Enables BPF syscall for systemd-journald
212 if [ "$KERNEL_BPF" = true ] && ( [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ) ; then
212 if [ "$KERNEL_BPF" = true ] && ( [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ) ; then
213 set_kernel_config CONFIG_BPF_SYSCALL y
213 set_kernel_config CONFIG_BPF_SYSCALL y
214 set_kernel_config CONFIG_CGROUP_BPF y
214 set_kernel_config CONFIG_CGROUP_BPF y
215 fi
215 fi
216
216
217 #Revert to previous directory
217 #Revert to previous directory
218 popd
218 popd
219
219
@@ -387,8 +387,8 if [ "$KERNEL_ARCH" = arm64 ] && ( [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ]
387 rm -fr "${temp_dir}"
387 rm -fr "${temp_dir}"
388
388
389 # Set permissions of the kernel sources
389 # Set permissions of the kernel sources
390 chown -R root:root "${R}/boot/firmware"
390 chown -R root:root "${R}/boot/"
391 chown -R root:root "${R}/lib"
391 chown -R root:root "${R}/lib"
392 fi
392 fi
393
393
394 # Check if kernel installation was successful
394 # Check if kernel installation was successful
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant