Skip to content

hal: renesas: rza: Add support for RZ/A IPL #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/rz/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@
string(SUBSTRING ${CONFIG_SOC_SERIES} 0 3 SOC_SERIES_PREFIX)

add_subdirectory(fsp/src/${SOC_SERIES_PREFIX})
add_subdirectory_ifdef(CONFIG_BUILD_WITH_RZA_IPL ipl/${SOC_SERIES_PREFIX})

set(include_dirs
fsp/inc
File renamed without changes.
33 changes: 33 additions & 0 deletions drivers/rz/ipl/rza/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# SPDX-License-Identifier: Apache-2.0

if(CONFIG_BUILD_WITH_RZA_IPL)
set(rza_ipl_binary_dir ${CMAKE_BINARY_DIR}/rza_ipl)

file(MAKE_DIRECTORY ${rza_ipl_binary_dir})

include(ExternalProject)

set(rza_ipl_image_info MAP "name: rza_ipl, source-dir: ${CMAKE_CURRENT_SOURCE_DIR}")
build_info(images VALUE ${rza_ipl_image_info})

if(CONFIG_RZA_IPL_BUILD_DEBUG)
set(ipl_build_debug "1")
else()
set(ipl_build_debug "0")
endif()

ExternalProject_Add(
rza_ipl
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}
BINARY_DIR ${rza_ipl_binary_dir}
CONFIGURE_COMMAND ""
BUILD_COMMAND make -C ${CMAKE_CURRENT_SOURCE_DIR}
DEBUG=${ipl_build_debug}
CROSS_COMPILE=${CROSS_COMPILE}
BUILD_BASE=${rza_ipl_binary_dir}
PLAT=${RZA_PLAT} BOARD=${RZA_BOARD} all
INSTALL_COMMAND ""
BUILD_ALWAYS True
USES_TERMINAL_BUILD True
)
endif()
Loading