configs: remove unused qemu-riscv64 uboot target 05/318305/4
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 26 Sep 2024 13:19:11 +0000 (15:19 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 2 Oct 2024 00:15:00 +0000 (00:15 +0000)
u-boot built from the tizen_qemu-riscv64_defconfig is not used in any
of the possible QEMU use-case scenarios, so remove it to avoid possible
confusion. Keep only the tizen_qemu-riscv64_smode_defconfig based one,
which is used as target for starting Tizen in QEMU/RISCV64 environment.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Id5ca1947b0394ab544ed8a9b98c503cc3fd8fb0f

configs/tizen_qemu-riscv64_defconfig [deleted file]
packaging/u-boot-qemu-riscv64.spec

diff --git a/configs/tizen_qemu-riscv64_defconfig b/configs/tizen_qemu-riscv64_defconfig
deleted file mode 100644 (file)
index d5eae95..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-CONFIG_RISCV=y
-CONFIG_SYS_MALLOC_LEN=0x800000
-CONFIG_NR_DRAM_BANKS=1
-CONFIG_ENV_SIZE=0x20000
-CONFIG_DEFAULT_DEVICE_TREE="qemu-virt64"
-CONFIG_SYS_LOAD_ADDR=0x80200000
-CONFIG_TARGET_QEMU_VIRT=y
-CONFIG_ARCH_RV64I=y
-CONFIG_DISTRO_DEFAULTS=y
-CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
-CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80200000
-CONFIG_FIT=y
-CONFIG_DISPLAY_CPUINFO=y
-CONFIG_DISPLAY_BOARDINFO=y
-CONFIG_SYS_CBSIZE=256
-CONFIG_SYS_PBSIZE=276
-CONFIG_SYS_BOOTM_LEN=0x4000000
-CONFIG_CMD_BOOTEFI_SELFTEST=y
-CONFIG_CMD_NVEDIT_EFI=y
-# CONFIG_CMD_MII is not set
-CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_DM_MTD=y
-CONFIG_SYS_MAX_FLASH_BANKS=2
index cb27f91dfa3e779280f46758ce5ca101ba1b0de1..d515336def0d025f50bcfec4e845dc7744a87c9e 100644 (file)
@@ -30,22 +30,20 @@ Tizen bootloader for QEMU emulating RISC-V
 %{?asan:/usr/bin/gcc-unforce-options}
 cp %{SOURCE1001} .
 
-for c in riscv64 riscv64_smode; do
-       CONFIG=tizen_qemu-${c}_defconfig
+CONFIG=tizen_qemu-riscv64_smode_defconfig
 
-       # Set configuration
-       make O=./build/${c} $CONFIG
+# Set configuration
+make $CONFIG
 
-       make O=./build/${c} %{?_smp_mflags} HOSTCC="gcc $RPM_OPT_FLAGS" \
-               DTC=/usr/bin/dtc \
-               OPENSBI=/platform/generic/firmware/fw_dynamic.bin \
-               EXTRAVERSION=`echo %{vcs} | sed 's/.*u-boot.*#\(.\{9\}\).*/-g\1-TIZEN.org/'` \
-               u-boot.bin
-done
+make %{?_smp_mflags} HOSTCC="gcc $RPM_OPT_FLAGS" \
+       DTC=/usr/bin/dtc \
+       OPENSBI=/platform/generic/firmware/fw_dynamic.bin \
+       EXTRAVERSION=`echo %{vcs} | sed 's/.*u-boot.*#\(.\{9\}\).*/-g\1-TIZEN.org/'` \
+       u-boot.bin
 
 ## Generate uboot.env
-./scripts/get_default_envs.sh build/riscv64 > default_envs.txt
-./build/riscv64/tools/mkenvimage -s 16384 -o uboot.env default_envs.txt
+./scripts/get_default_envs.sh > default_envs.txt
+./tools/mkenvimage -s 16384 -o uboot.env default_envs.txt
 rm default_envs.txt
 
 # Build boot.scr
@@ -57,10 +55,8 @@ rm -rf %{buildroot}
 # u-boot installation
 install -m 644 -D uboot.env %{buildroot}/boot/uboot.env
 install -m 644 -D boot.scr.uimg %{buildroot}/boot/boot.scr.uimg
-install -m 644 -D build/riscv64/u-boot %{buildroot}/%{_libdir}/u-boot/qemu-riscv64/uboot.elf
-install -m 644 -D build/riscv64/u-boot.bin %{buildroot}/%{_libdir}/u-boot/qemu-riscv64/u-boot.bin
-install -m 644 -D build/riscv64_smode/u-boot %{buildroot}/%{_libdir}/u-boot/qemu-riscv64_smode/uboot.elf
-install -m 644 -D build/riscv64_smode/u-boot.bin %{buildroot}/%{_libdir}/u-boot/qemu-riscv64_smode/u-boot.bin
+install -m 644 -D u-boot %{buildroot}/%{_libdir}/u-boot/qemu-riscv64_smode/uboot.elf
+install -m 644 -D u-boot.bin %{buildroot}/%{_libdir}/u-boot/qemu-riscv64_smode/u-boot.bin
 
 %clean
 
@@ -69,7 +65,5 @@ install -m 644 -D build/riscv64_smode/u-boot.bin %{buildroot}/%{_libdir}/u-boot/
 %defattr(-,root,root,-)
 /boot/uboot.env
 /boot/boot.scr.uimg
-%{_libdir}/u-boot/qemu-riscv64/u-boot.bin
-%{_libdir}/u-boot/qemu-riscv64/uboot.elf
 %{_libdir}/u-boot/qemu-riscv64_smode/u-boot.bin
 %{_libdir}/u-boot/qemu-riscv64_smode/uboot.elf