From ec8120af81aa62e9ffd4e43867974ca7f60c37db Mon Sep 17 00:00:00 2001 From: Francois Dugast Date: Fri, 28 Mar 2025 20:57:39 +0100 Subject: [PATCH] configs/hifive_unleashed: extract common configuration Move the generic part of the configuration into a new "common" directory so that it is easier to add similar boards without duplicating the files. Signed-off-by: Francois Dugast Signed-off-by: Julien Olivain --- .../sifive/{hifive-unleashed => common}/genimage_sdcard.cfg | 0 .../{hifive-unleashed => common}/genimage_spi-nor.cfg | 0 .../{hifive-unleashed => common}/linux.config.fragment | 0 board/sifive/{hifive-unleashed => common}/post-build.sh | 0 board/sifive/hifive-unleashed/readme.txt | 2 +- configs/hifive_unleashed_defconfig | 6 +++--- 6 files changed, 4 insertions(+), 4 deletions(-) rename board/sifive/{hifive-unleashed => common}/genimage_sdcard.cfg (100%) rename board/sifive/{hifive-unleashed => common}/genimage_spi-nor.cfg (100%) rename board/sifive/{hifive-unleashed => common}/linux.config.fragment (100%) rename board/sifive/{hifive-unleashed => common}/post-build.sh (100%) diff --git a/board/sifive/hifive-unleashed/genimage_sdcard.cfg b/board/sifive/common/genimage_sdcard.cfg similarity index 100% rename from board/sifive/hifive-unleashed/genimage_sdcard.cfg rename to board/sifive/common/genimage_sdcard.cfg diff --git a/board/sifive/hifive-unleashed/genimage_spi-nor.cfg b/board/sifive/common/genimage_spi-nor.cfg similarity index 100% rename from board/sifive/hifive-unleashed/genimage_spi-nor.cfg rename to board/sifive/common/genimage_spi-nor.cfg diff --git a/board/sifive/hifive-unleashed/linux.config.fragment b/board/sifive/common/linux.config.fragment similarity index 100% rename from board/sifive/hifive-unleashed/linux.config.fragment rename to board/sifive/common/linux.config.fragment diff --git a/board/sifive/hifive-unleashed/post-build.sh b/board/sifive/common/post-build.sh similarity index 100% rename from board/sifive/hifive-unleashed/post-build.sh rename to board/sifive/common/post-build.sh diff --git a/board/sifive/hifive-unleashed/readme.txt b/board/sifive/hifive-unleashed/readme.txt index e9ccb26fa6..45cb8ece55 100644 --- a/board/sifive/hifive-unleashed/readme.txt +++ b/board/sifive/hifive-unleashed/readme.txt @@ -97,7 +97,7 @@ Adjust Buildroot configuration by: $ make menuconfig Change "System configuration" -> "Extra arguments passed to custom scripts" -value to "-c board/sifive/hifive-unleashed/genimage_spi-nor.cfg", save the +value to "-c board/sifive/common/genimage_spi-nor.cfg", save the configuration and build. This creates a output/images/spi-nor.img that can be programmed to the on-board SPI flash. diff --git a/configs/hifive_unleashed_defconfig b/configs/hifive_unleashed_defconfig index cb217a5af1..f96e171e43 100644 --- a/configs/hifive_unleashed_defconfig +++ b/configs/hifive_unleashed_defconfig @@ -8,14 +8,14 @@ BR2_RISCV_ISA_RVC=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y BR2_TARGET_GENERIC_GETTY_PORT="ttySIF0" BR2_SYSTEM_DHCP="eth0" -BR2_ROOTFS_POST_BUILD_SCRIPT="board/sifive/hifive-unleashed/post-build.sh" +BR2_ROOTFS_POST_BUILD_SCRIPT="board/sifive/common/post-build.sh" BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" -BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/sifive/hifive-unleashed/genimage_sdcard.cfg" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/sifive/common/genimage_sdcard.cfg" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.190" BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y -BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/sifive/hifive-unleashed/linux.config.fragment" +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/sifive/common/linux.config.fragment" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="sifive/hifive-unleashed-a00" BR2_LINUX_KERNEL_INSTALL_TARGET=y