##// 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 "${KERNEL_DIR}/.config"
83 "${KERNEL_DIR}/.config"
84 fi
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 #Switch to KERNELSRC_DIR
90 #Switch to KERNELSRC_DIR
87 pushd "${KERNEL_DIR}"
91 pushd "${KERNEL_DIR}"
88
92
@@ -93,7 +97,6 if [ "$BUILD_KERNEL" = true ] ; then
93 # requires activation via kernel parameter or sysfs
97 # requires activation via kernel parameter or sysfs
94 # 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.)
95 # 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.
96
97 set_kernel_config ZPOOL y
100 set_kernel_config ZPOOL y
98 set_kernel_config ZSWAP y
101 set_kernel_config ZSWAP y
99 set_kernel_config ZBUD y
102 set_kernel_config ZBUD y
@@ -105,7 +108,6 if [ "$BUILD_KERNEL" = true ] ; then
105 if [ "$KERNEL_VIRT" = true ] && ( [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ) ; then
108 if [ "$KERNEL_VIRT" = true ] && ( [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ) ; then
106 # enable basic KVM support; see e.g.
109 # enable basic KVM support; see e.g.
107 # 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
108
109 set_kernel_config VIRTUALIZATION y
111 set_kernel_config VIRTUALIZATION y
110 set_kernel_config KVM y
112 set_kernel_config KVM y
111 set_kernel_config VHOST_NET m
113 set_kernel_config VHOST_NET m
@@ -220,12 +222,9 if [ "$BUILD_KERNEL" = true ] ; then
220 set_kernel_config CONFIG_CGROUP_BPF y
222 set_kernel_config CONFIG_CGROUP_BPF y
221 fi
223 fi
222
224
225 #Revert to previous directory
223 popd
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 # Set kernel configuration parameters to enable qemu emulation
228 # Set kernel configuration parameters to enable qemu emulation
230 if [ "$ENABLE_QEMU" = true ] ; then
229 if [ "$ENABLE_QEMU" = true ] ; then
231 echo "CONFIG_FHANDLE=y" >> "${KERNEL_DIR}"/.config
230 echo "CONFIG_FHANDLE=y" >> "${KERNEL_DIR}"/.config
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant