Skip to content

Commit 17a5a6e

Browse files
committed
hal: renesas: rza: Add support for RZ/A IPL
Add source code for RZ/A IPL Signed-off-by: Nhut Nguyen <[email protected]>
1 parent 69a713b commit 17a5a6e

File tree

579 files changed

+100780
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

579 files changed

+100780
-1
lines changed

drivers/rz/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
string(SUBSTRING ${CONFIG_SOC_SERIES} 0 3 SOC_SERIES_PREFIX)
55

66
add_subdirectory(fsp/src/${SOC_SERIES_PREFIX})
7+
add_subdirectory(ipl/${SOC_SERIES_PREFIX})
78

89
set(include_dirs
910
fsp/inc

drivers/rz/README renamed to drivers/rz/fsp/README

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ URL:
4242
https://github.com/renesas/rzt-fsp
4343
Commit: e66ab13216949c9ce5a09555171c422d5a323f1b
4444

45-
4645
Maintained-by:
4746
Renesas Electronics Corporation
4847

drivers/rz/ipl/rza/CMakeLists.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
if(CONFIG_BUILD_WITH_RZA_IPL)
4+
set(rza_ipl_binary_dir ${CMAKE_BINARY_DIR}/rza_ipl)
5+
6+
file(MAKE_DIRECTORY ${rza_ipl_binary_dir})
7+
8+
include(ExternalProject)
9+
10+
set(rza_ipl_image_info MAP "name: rza_ipl, source-dir: ${CMAKE_CURRENT_SOURCE_DIR}")
11+
build_info(images VALUE ${rza_ipl_image_info})
12+
13+
if(CONFIG_RZA_IPL_BUILD_DEBUG)
14+
set(ipl_build_debug "1")
15+
else()
16+
set(ipl_build_debug "0")
17+
endif()
18+
19+
ExternalProject_Add(
20+
rza_ipl
21+
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}
22+
BINARY_DIR ${rza_ipl_binary_dir}
23+
CONFIGURE_COMMAND ""
24+
BUILD_COMMAND make -C ${CMAKE_CURRENT_SOURCE_DIR}
25+
DEBUG=${ipl_build_debug}
26+
CROSS_COMPILE=${CROSS_COMPILE}
27+
BUILD_BASE=${rza_ipl_binary_dir}
28+
PLAT=${RZA_PLAT} BOARD=${RZA_BOARD} all
29+
INSTALL_COMMAND ""
30+
BUILD_ALWAYS True
31+
USES_TERMINAL_BUILD True
32+
)
33+
endif()

0 commit comments

Comments
 (0)