From 233173e5699ac3447d7b64928992d92a96f4f7e4 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 7 Jan 2025 10:45:39 +0100 Subject: [PATCH] [ottf,test_rom] Add special linker configuration for Darjeeling Signed-off-by: Amaury Pouly --- sw/device/lib/testing/test_framework/BUILD | 1 + sw/device/lib/testing/test_rom/BUILD | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/sw/device/lib/testing/test_framework/BUILD b/sw/device/lib/testing/test_framework/BUILD index 0b098b92b6b85..f95855df841ce 100644 --- a/sw/device/lib/testing/test_framework/BUILD +++ b/sw/device/lib/testing/test_framework/BUILD @@ -84,6 +84,7 @@ cc_library( OTTF_REGION_ALIAS = opentitan_select_top( { + "darjeeling": {"@@OTTF_REGION_ALIAS@@": "ctn"}, }, # Default configuration: {"@@OTTF_REGION_ALIAS@@": "eflash"}, diff --git a/sw/device/lib/testing/test_rom/BUILD b/sw/device/lib/testing/test_rom/BUILD index bb59b1ead1b81..e818082a900ab 100644 --- a/sw/device/lib/testing/test_rom/BUILD +++ b/sw/device/lib/testing/test_rom/BUILD @@ -23,6 +23,10 @@ ld_library( "@@TOP_MEMORY_LD@@": "$(location //hw/top:top_ld)", } | opentitan_select_top( { + "darjeeling": { + "@@TEST_ROM_REGION@@": "rom0", + "@@TEST_CODE_REGION@@": "ctn", + }, }, # Default configuration: {