##// END OF EJS Templates
a
Unknown -
r456:d48b32e1c181
parent child
Show More
@@ -92,30 +92,38 if [ "$BUILD_KERNEL" = true ] ; then
92 92
93 93 # enable ZSWAP see https://askubuntu.com/a/472227 or https://wiki.archlinux.org/index.php/zswap
94 94 if [ "$KERNEL_ZSWAP" = true ] && { [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; } ; then
95 set_kernel_config ZPOOL y
96 set_kernel_config ZSWAP y
97 set_kernel_config ZBUD y
98 set_kernel_config Z3FOLD y
99 set_kernel_config ZSMALLOC y
100 set_kernel_config PGTABLE_MAPPING y
95 set_kernel_config CONFIG_ZPOOL y
96 set_kernel_config CONFIG_ZSWAP y
97 set_kernel_config CONFIG_ZBUD y
98 set_kernel_config CONFIG_Z3FOLD y
99 set_kernel_config CONFIG_ZSMALLOC y
100 set_kernel_config CONFIG_PGTABLE_MAPPING y
101 101 fi
102 102
103 103 # enable basic KVM support; see https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=210546&start=25#p1300453
104 if [ "$KERNEL_VIRT" = true ] && { [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; } ; then
105 set_kernel_config VIRTUALIZATION y
106 set_kernel_config KVM y
107 set_kernel_config VHOST_NET m
108 set_kernel_config VHOST_CROSS_ENDIAN_LEGACY y
104 if [ "$KERNEL_VIRT" = true ] && { [ "$RPI_MODEL" = 2 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; } ; then
105 set_kernel_config CONFIG_VIRTUALIZATION y
106 set_kernel_config CONFIG_KVM y
107 set_kernel_config CONFIG_VHOST_NET m
108 set_kernel_config CONFIG_VHOST_CROSS_ENDIAN_LEGACY y
109 109 fi
110 110
111 111 # Netfilter kernel support See https://github.com/raspberrypi/linux/issues/2177#issuecomment-354647406
112 112 if [ "$KERNEL_NF" = true ] && { [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; } ; then
113 set_kernel_config CONFIG_NETFILTER_XTABLES m
114 set_kernel_config CONFIG_NF_DUP_NETDEV m
115 set_kernel_config CONFIG_NF_NAT_SIP m
116 set_kernel_config CONFIG_NF_TABLES_ARP m
117 set_kernel_config CONFIG_NF_TABLES_BRIDGE m
118 set_kernel_config NF_TABLES m
113 set_kernel_config CONFIG_IP_NF_TARGET_SYNPROXY m
114 set_kernel_config CONFIG_NETFILTER_XT_MATCH_CGROUP m
115 set_kernel_config CONFIG_NETFILTER_XT_MATCH_IPCOMP m
116 set_kernel_config CONFIG_NFT_FIB_INET m
117 set_kernel_config CONFIG_NFT_FIB_IPV4 m
118 set_kernel_config CONFIG_NFT_FIB_IPV6 m
119 set_kernel_config CONFIG_NFT_FIB_NETDEV m
120 set_kernel_config CONFIG_NFT_OBJREF m
121 set_kernel_config CONFIG_NFT_RT m
122 set_kernel_config CONFIG_NFT_SET_BITMAP m
123 set_kernel_config CONFIG_NF_CONNTRACK_TIMEOUT m
124 set_kernel_config CONFIG_NF_LOG_ARP m
125 set_kernel_config CONFIG_NF_SOCKET_IPV4 m
126 set_kernel_config CONFIG_NF_SOCKET_IPV6 m
119 127 set_kernel_config CONFIG_BRIDGE_EBT_BROUTE m
120 128 set_kernel_config CONFIG_BRIDGE_EBT_T_FILTER m
121 129 set_kernel_config CONFIG_BRIDGE_NF_EBTABLES m
@@ -139,6 +147,8 if [ "$BUILD_KERNEL" = true ] ; then
139 147 set_kernel_config CONFIG_IP_SET_HASH_NETPORT m
140 148 set_kernel_config CONFIG_IP_SET_HASH_NETPORTNET m
141 149 set_kernel_config CONFIG_IP_SET_LIST_SET m
150 set_kernel_config CONFIG_NETFILTER_XTABLES m
151 set_kernel_config CONFIG_NETFILTER_XTABLES m
142 152 set_kernel_config CONFIG_NFT_BRIDGE_META m
143 153 set_kernel_config CONFIG_NFT_BRIDGE_REJECT m
144 154 set_kernel_config CONFIG_NFT_CHAIN_NAT_IPV4 m
@@ -179,6 +189,7 if [ "$BUILD_KERNEL" = true ] ; then
179 189 set_kernel_config CONFIG_NF_DEFRAG_IPV6 m
180 190 set_kernel_config CONFIG_NF_DUP_IPV4 m
181 191 set_kernel_config CONFIG_NF_DUP_IPV6 m
192 set_kernel_config CONFIG_NF_DUP_NETDEV m
182 193 set_kernel_config CONFIG_NF_LOG_BRIDGE m
183 194 set_kernel_config CONFIG_NF_LOG_IPV4 m
184 195 set_kernel_config CONFIG_NF_LOG_IPV6 m
@@ -189,21 +200,25 if [ "$BUILD_KERNEL" = true ] ; then
189 200 set_kernel_config CONFIG_NF_NAT_PPTP m
190 201 set_kernel_config CONFIG_NF_NAT_PROTO_GRE m
191 202 set_kernel_config CONFIG_NF_NAT_REDIRECT m
203 set_kernel_config CONFIG_NF_NAT_SIP m
192 204 set_kernel_config CONFIG_NF_NAT_SNMP_BASIC m
193 205 set_kernel_config CONFIG_NF_NAT_TFTP m
194 206 set_kernel_config CONFIG_NF_REJECT_IPV4 m
195 207 set_kernel_config CONFIG_NF_REJECT_IPV6 m
208 set_kernel_config CONFIG_NF_TABLES m
209 set_kernel_config CONFIG_NF_TABLES_ARP m
210 set_kernel_config CONFIG_NF_TABLES_BRIDGE m
196 211 set_kernel_config CONFIG_NF_TABLES_INET m
197 212 set_kernel_config CONFIG_NF_TABLES_IPV4 m
198 213 set_kernel_config CONFIG_NF_TABLES_IPV6 m
199 214 set_kernel_config CONFIG_NF_TABLES_NETDEV m
200 set_kernel_config NETFILTER_XTABLES m
201 215 fi
202 216
203 217 # 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
204 218 if [ "$KERNEL_BPF" = true ] && { [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; } ; then
205 219 set_kernel_config CONFIG_BPF_SYSCALL y
206 220 set_kernel_config CONFIG_BPF_EVENTS y
221 set_kernel_config CONFIG_BPF_STREAM_PARSER y
207 222 set_kernel_config CONFIG_CGROUP_BPF y
208 223 fi
209 224
@@ -80,7 +80,7 chroot_remove_cc() {
80 80 #https://github.com/sakaki-/bcmrpi3-kernel-bis/blob/master/conform_config.sh
81 81 set_kernel_config() {
82 82 # flag as $1, value to set as $2, config must exist at "./.config"
83 TGT="CONFIG_${1#CONFIG_}"
83 TGT="${1}"
84 84 REP="${2}"
85 85 if grep -q "^${TGT}[^_]" .config; then
86 86 sed -i "s/^\(${TGT}=.*\|# ${TGT} is not set\)/${TGT}=${REP}/" .config
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant