From bfdf6f09ecebc0d15299f5b34ba00b0eb1a63b52 Mon Sep 17 00:00:00 2001 From: Abbas Bracken Ziad Date: Mon, 21 Jun 2021 12:40:30 +0100 Subject: [PATCH] M2354: inherit PSA_V8_M devices For `MCU_M2354`, the use of `device_has` in `targets.json` overrides the devices present in the base target: `PSA_V8_M`. In particular, `DEVICE_TRNG` is missing in `NU_M2354` builds as `TRNG` is a member of the `PSA_V8_M` `device_has` list. As suggested by @ccli8, to ensure that `PSA_V8_M` devices are inherited by derived targets, such as `MCU_M2354`, the correct syntax to use is `device_has_add`. --- targets/targets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/targets.json b/targets/targets.json index d50114439d..b92dca3488 100644 --- a/targets/targets.json +++ b/targets/targets.json @@ -6994,7 +6994,7 @@ "tickless-from-us-ticker": true, "mpu-rom-end": "0x1fffffff" }, - "device_has": [ + "device_has_add": [ "USTICKER", "LPTICKER", "RTC",