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