From 2d1fbe645104529517ad6e2a40750d11aafa7f0c Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Tue, 11 Mar 2025 09:23:02 +0100 Subject: [PATCH 1/2] toolkit/build/config: Add minimal config files for AE3 and AE7. Signed-off-by: iabdalkader --- .../build/config/app-device-config-ae3.json | 25 +++++++++++++++++++ .../build/config/app-device-config-ae7.json | 25 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 toolkit/build/config/app-device-config-ae3.json create mode 100644 toolkit/build/config/app-device-config-ae7.json diff --git a/toolkit/build/config/app-device-config-ae3.json b/toolkit/build/config/app-device-config-ae3.json new file mode 100644 index 0000000..2ba5a1f --- /dev/null +++ b/toolkit/build/config/app-device-config-ae3.json @@ -0,0 +1,25 @@ +{ + "metadata": { + "device": "AE302F80F55D5AE", + "project": "", + "external_clock_sources": [ + { + "id": "OSC_HFXO", + "enabled": true, + "frequency": 38400000 + }, + { + "id": "OSC_LFXO", + "enabled": true, + "frequency": 32768 + } + ] + }, + "firewall": { + "firewall_components": [], + "region_stitching": false + }, + "pinmux": [], + "clocks": {}, + "miscellaneous": [] +} diff --git a/toolkit/build/config/app-device-config-ae7.json b/toolkit/build/config/app-device-config-ae7.json new file mode 100644 index 0000000..1742384 --- /dev/null +++ b/toolkit/build/config/app-device-config-ae7.json @@ -0,0 +1,25 @@ +{ + "metadata": { + "device": "AE722F80F55D5AS", + "project": "", + "external_clock_sources": [ + { + "id": "OSC_HFXO", + "enabled": true, + "frequency": 38400000 + }, + { + "id": "OSC_LFXO", + "enabled": true, + "frequency": 32768 + } + ] + }, + "firewall": { + "firewall_components": [], + "region_stitching": false + }, + "pinmux": [], + "clocks": {}, + "miscellaneous": [] +} From 23f0c5a9ca996d734a1e4725b490ca811a18a550 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Tue, 11 Mar 2025 09:23:32 +0100 Subject: [PATCH 2/2] toolkit/app-gen-toc.py: Use toolkit's config dir by default. This change allows AToC config to use a default config file from the toolkit's config dir, if custom one is not required (which is true for most use cases). A custom config file can still be used and customized by boards, by passing a different `--config-dir`. Signed-off-by: iabdalkader --- toolkit/app-gen-toc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/app-gen-toc.py b/toolkit/app-gen-toc.py index 9f8d895..f750cde 100755 --- a/toolkit/app-gen-toc.py +++ b/toolkit/app-gen-toc.py @@ -685,7 +685,7 @@ def main(): parser.add_argument( "--config-dir", type=str, - default="", + default=Path(os.path.dirname(__file__)) / "build/config", help="directory with configuration files", ) parser.add_argument(