From fd54e52a743025b47db56f2f07d441060331a940 Mon Sep 17 00:00:00 2001 From: YuzukiTsuru Date: Wed, 10 Jan 2024 19:19:12 +0800 Subject: [PATCH] [board] fix config mis match --- cmake/board/100ask-ros.cmake | 4 ++-- cmake/board/longanpi-3h.cmake | 4 ++-- cmake/board/longanpi-4b.cmake | 4 ++-- cmake/board/yuzukicivi.cmake | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cmake/board/100ask-ros.cmake b/cmake/board/100ask-ros.cmake index 851505ae..15918422 100644 --- a/cmake/board/100ask-ros.cmake +++ b/cmake/board/100ask-ros.cmake @@ -10,7 +10,7 @@ set(CONFIG_BOARD_100ASK_ROS True) add_definitions(-DCONFIG_CHIP_SUN50IW10 -DCONFIG_CHIP_GPIO_V1) set(CONFIG_USE_DRAM_PAYLOAD True) -set(CONFIG_USE_PREBUILT_DRAM_PAYLOAD False) +set(CONFIG_USE_PREBUILT_DRAM_PAYLOAD True) set(CONFIG_USE_DRAM_PAYLOAD_SOURCE_PATH "${CMAKE_SOURCE_DIR}/payloads/sun50iw10_libdram") set(CONFIG_USE_DRAM_PAYLOAD_BIN_PATH "${CONFIG_USE_DRAM_PAYLOAD_SOURCE_PATH}/output/ddr.bin") set(CONFIG_USE_DRAM_PAYLOAD_FILE_PATH "${CMAKE_SOURCE_DIR}/board/100ask-ros/payloads/init_dram_bin.c") @@ -36,7 +36,7 @@ set(ARCH_BIN_SRAM_LENGTH "128K") set(ARCH_FEL_START_ADDRESS "0x00028000") set(ARCH_FEL_SRAM_LENGTH "128K") -if(CONFIG_USE_PREBUILT_DRAM_PAYLOAD) +if(NOT CONFIG_USE_PREBUILT_DRAM_PAYLOAD) # Create an external project and build it ExternalProject_Add( init_dram diff --git a/cmake/board/longanpi-3h.cmake b/cmake/board/longanpi-3h.cmake index e6f86d8d..590867b0 100644 --- a/cmake/board/longanpi-3h.cmake +++ b/cmake/board/longanpi-3h.cmake @@ -10,7 +10,7 @@ set(CONFIG_BOARD_LONGANPI-3H True) add_definitions(-DCONFIG_CHIP_SUN50IW9 -DCONFIG_CHIP_GPIO_V1) set(CONFIG_USE_DRAM_PAYLOAD True) -set(CONFIG_USE_PREBUILT_DRAM_PAYLOAD False) +set(CONFIG_USE_PREBUILT_DRAM_PAYLOAD True) set(CONFIG_USE_DRAM_PAYLOAD_SOURCE_PATH "${CMAKE_SOURCE_DIR}/payloads/sun50iw9_libdram") set(CONFIG_USE_DRAM_PAYLOAD_BIN_PATH "${CONFIG_USE_DRAM_PAYLOAD_SOURCE_PATH}/output/ddr.bin") set(CONFIG_USE_DRAM_PAYLOAD_FILE_PATH "${CMAKE_SOURCE_DIR}/board/longanpi-3h/payloads/init_dram_bin.c") @@ -36,7 +36,7 @@ set(ARCH_BIN_SRAM_LENGTH "128K") set(ARCH_FEL_START_ADDRESS "0x00028000") set(ARCH_FEL_SRAM_LENGTH "128K") -if(CONFIG_USE_PREBUILT_DRAM_PAYLOAD) +if(NOT CONFIG_USE_PREBUILT_DRAM_PAYLOAD) # Create an external project and build it ExternalProject_Add( init_dram diff --git a/cmake/board/longanpi-4b.cmake b/cmake/board/longanpi-4b.cmake index 12597533..1bd5351a 100644 --- a/cmake/board/longanpi-4b.cmake +++ b/cmake/board/longanpi-4b.cmake @@ -10,7 +10,7 @@ set(CONFIG_CHIP_DCACHE True) add_definitions(-DCONFIG_CHIP_SUN55IW3 -DCONFIG_CHIP_DCACHE) set(CONFIG_USE_DRAM_PAYLOAD True) -set(CONFIG_USE_PREBUILT_DRAM_PAYLOAD False) +set(CONFIG_USE_PREBUILT_DRAM_PAYLOAD True) set(CONFIG_USE_DRAM_PAYLOAD_SOURCE_PATH "${CMAKE_SOURCE_DIR}/payloads/sun55iw3_libdram") set(CONFIG_USE_DRAM_PAYLOAD_BIN_PATH "${CONFIG_USE_DRAM_PAYLOAD_SOURCE_PATH}/output/ddr.bin") set(CONFIG_USE_DRAM_PAYLOAD_FILE_PATH "${CMAKE_SOURCE_DIR}/board/longanpi-4b/payloads/init_dram_bin.c") @@ -36,7 +36,7 @@ set(ARCH_BIN_SRAM_LENGTH "128K") set(ARCH_FEL_START_ADDRESS "0x00020000") set(ARCH_FEL_SRAM_LENGTH "128K") -if(CONFIG_USE_PREBUILT_DRAM_PAYLOAD) +if(NOT CONFIG_USE_PREBUILT_DRAM_PAYLOAD) # Create an external project and build it ExternalProject_Add( init_dram diff --git a/cmake/board/yuzukicivi.cmake b/cmake/board/yuzukicivi.cmake index d9143c62..424a1d62 100644 --- a/cmake/board/yuzukicivi.cmake +++ b/cmake/board/yuzukicivi.cmake @@ -10,7 +10,7 @@ set(CONFIG_BOARD_YUZUKICIVI True) add_definitions(-DCONFIG_CHIP_SUN50IW10 -DCONFIG_CHIP_GPIO_V1) set(CONFIG_USE_DRAM_PAYLOAD True) -set(CONFIG_USE_PREBUILT_DRAM_PAYLOAD False) +set(CONFIG_USE_PREBUILT_DRAM_PAYLOAD True) set(CONFIG_USE_DRAM_PAYLOAD_SOURCE_PATH "${CMAKE_SOURCE_DIR}/payloads/sun50iw10_libdram") set(CONFIG_USE_DRAM_PAYLOAD_BIN_PATH "${CONFIG_USE_DRAM_PAYLOAD_SOURCE_PATH}/output/ddr.bin") set(CONFIG_USE_DRAM_PAYLOAD_FILE_PATH "${CMAKE_SOURCE_DIR}/board/yuzukicivi/payloads/init_dram_bin.c") @@ -36,7 +36,7 @@ set(ARCH_BIN_SRAM_LENGTH "128K") set(ARCH_FEL_START_ADDRESS "0x00028000") set(ARCH_FEL_SRAM_LENGTH "128K") -if(CONFIG_USE_PREBUILT_DRAM_PAYLOAD) +if(NOT CONFIG_USE_PREBUILT_DRAM_PAYLOAD) # Create an external project and build it ExternalProject_Add( init_dram