##// END OF EJS Templates
code position corrected so it gets executed
Unknown -
r358:8742a7c8d9bb
parent child
Show More
@@ -83,6 +83,10 if [ "$BUILD_KERNEL" = true ] ; then
83 83 "${KERNEL_DIR}/.config"
84 84 fi
85 85
86 if [ "$KERNELSRC_CONFIG" = true ] ; then
87 # Load default raspberry kernel configuration
88 make -C "${KERNEL_DIR}" ARCH="${KERNEL_ARCH}" CROSS_COMPILE="${CROSS_COMPILE}" "${KERNEL_DEFCONFIG}"
89
86 90 #Switch to KERNELSRC_DIR
87 91 pushd "${KERNEL_DIR}"
88 92
@@ -93,7 +97,6 if [ "$BUILD_KERNEL" = true ] ; then
93 97 # requires activation via kernel parameter or sysfs
94 98 # see e.g. https://askubuntu.com/a/472227 for a summary of ZSWAP (vs ZRAM etc.)
95 99 # and e.g. https://wiki.archlinux.org/index.php/zswap for parameters etc.
96
97 100 set_kernel_config ZPOOL y
98 101 set_kernel_config ZSWAP y
99 102 set_kernel_config ZBUD y
@@ -105,7 +108,6 if [ "$BUILD_KERNEL" = true ] ; then
105 108 if [ "$KERNEL_VIRT" = true ] && ( [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ) ; then
106 109 # enable basic KVM support; see e.g.
107 110 # https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=210546&start=25#p1300453
108
109 111 set_kernel_config VIRTUALIZATION y
110 112 set_kernel_config KVM y
111 113 set_kernel_config VHOST_NET m
@@ -220,12 +222,9 if [ "$BUILD_KERNEL" = true ] ; then
220 222 set_kernel_config CONFIG_CGROUP_BPF y
221 223 fi
222 224
225 #Revert to previous directory
223 226 popd
224 227
225 if [ "$KERNELSRC_CONFIG" = true ] ; then
226 # Load default raspberry kernel configuration
227 make -C "${KERNEL_DIR}" ARCH="${KERNEL_ARCH}" CROSS_COMPILE="${CROSS_COMPILE}" "${KERNEL_DEFCONFIG}"
228
229 228 # Set kernel configuration parameters to enable qemu emulation
230 229 if [ "$ENABLE_QEMU" = true ] ; then
231 230 echo "CONFIG_FHANDLE=y" >> "${KERNEL_DIR}"/.config
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant