xtensa/CMakeLists.txt: simplify CONFIG_RENOIR/REMBRANDT logic

Use get_filename_component() to get the basename and remove the
$platform_folder special case for CONFIG_RENOIR and
CONFIG_REMBRANDT. Zero change, binaries are identical.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2023-06-08 23:05:57 +00:00 committed by Kai Vehmanen
parent 0e75d84b49
commit 820fadae39
1 changed files with 7 additions and 10 deletions

View File

@ -12,6 +12,10 @@ elseif(CONFIG_IMX8M)
set(platform_folder imx8m)
elseif(CONFIG_IMX8ULP)
set(platform_folder imx8ulp)
elseif(CONFIG_RENOIR)
set(platform_folder amd/renoir)
elseif(CONFIG_REMBRANDT)
set(platform_folder amd/rembrandt)
elseif(CONFIG_MT8186)
set(platform_folder mt8186)
elseif(CONFIG_MT8188)
@ -22,18 +26,11 @@ endif()
set(fw_name ${CONFIG_RIMAGE_SIGNING_SCHEMA})
set(platform_ld_script ${platform_folder}.x)
# File name without directory
get_filename_component(_plf_ld_script ${platform_folder} NAME)
set(platform_ld_script ${_plf_ld_script}.x)
set(platform_rom_ld_script rom.x)
if(CONFIG_RENOIR)
set(platform_folder amd/renoir)
set(platform_ld_script renoir.x)
endif()
if(CONFIG_REMBRANDT)
set(platform_folder amd/rembrandt)
set(platform_ld_script rembrandt.x)
endif()
# includes
# None of these should be included if Zephyr strict headers are used.