Skip to contentSkip to conversation

configs/stm32f469_disco_xip: remove BR2_LINUX_KERNEL_XZ

PATCH In review Dario Binacchi via buildroot 2 participants 3 messages Jan 2, 2022 – Jan 4, 2022 Arm STM32

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 configs/stm32f469_disco_xip: remove BR2_LINUX_KERNEL_XZ

This is a XIP kernel, so it shouldn't be compressed.

---
 configs/stm32f469_disco_xip_defconfig | 1 -
 1 file changed, 1 deletion(-)
configs/stm32f469_disco_xip_defconfig +0 -1
index f3d333278a53..6c4f227f582d 100644
@@ -7,7 +7,6 @@ BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
 BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/stmicroelectronics/stm32f469-disco/linux-xip.config"
 BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y
-BR2_LINUX_KERNEL_XZ=y
 BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="xipImage"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="stm32f469-disco"
Signature · 6 lines
2.32.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 configs/stm32f469_disco_xip: explicitly set the kernel version

The version of the kernel and its headers must be explicitly set because if you keep the default setting, the kernel is continuously updated in buildroot with the risk that its image + dtb grow so much that it again exceeds the 2 MByte of the flash module.

---
 configs/stm32f469_disco_xip_defconfig | 3 +++
 1 file changed, 3 insertions(+)
configs/stm32f469_disco_xip_defconfig +3 -0
index 6c4f227f582d..d95b7759f31a 100644
@@ -1,9 +1,12 @@
 BR2_arm=y
 BR2_cortex_m4=y
+BR2_KERNEL_HEADERS_5_15=y
 # BR2_UCLIBC_INSTALL_UTILS is not set
 BR2_GCC_ENABLE_LTO=y
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/stmicroelectronics/common/stm32f4xx/stm32-post-build.sh"
 BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.6"
 BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
 BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/stmicroelectronics/stm32f469-disco/linux-xip.config"
 BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y
Signature · 6 lines
2.32.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Dario Binacchi via buildroot
Quoted 3 lines · Dario Binacchi

This is a XIP kernel, so it shouldn't be compressed.

Both applied to master, thanks.

Regards,
Arnout

Quoted 10 lines
---
  configs/stm32f469_disco_xip_defconfig | 1 -
  1 file changed, 1 deletion(-)
configs/stm32f469_disco_xip_defconfig +0 -0
index f3d333278a53..6c4f227f582d 100644

configs/stm32f469_disco_xip_defconfig BR2_LINUX_KERNEL=y · line 12

Quoted 7 lines
configs/stm32f469_disco_xip_defconfig +0 -1
@@ -7,7 +7,6 @@ BR2_LINUX_KERNEL=y
  BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
  BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/stmicroelectronics/stm32f469-disco/linux-xip.config"
  BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y
-BR2_LINUX_KERNEL_XZ=y
  BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="xipImage"
  BR2_LINUX_KERNEL_DTS_SUPPORT=y
  BR2_LINUX_KERNEL_INTREE_DTS_NAME="stm32f469-disco"

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot