From 3eaf25876b78bd08538d345bb0f94fa5cde41666 Mon Sep 17 00:00:00 2001 From: wyhong Date: Tue, 21 Nov 2023 16:18:27 +0800 Subject: [PATCH] add option to use easyflash for persisent storage access --- scripts/build/build/targets.py | 1 + scripts/build/builders/bouffalolab.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index bb9f174f80f4d8..12df8747a1be49 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -615,6 +615,7 @@ def BuildBouffalolabTarget(): target.AppendModifier('wifi', enable_wifi="test") target.AppendModifier('thread', enable_thread="test") target.AppendModifier('fp', enable_frame_ptr=True) + target.AppendModifier('easyflash', use_component_easyflash=True) return target diff --git a/scripts/build/builders/bouffalolab.py b/scripts/build/builders/bouffalolab.py index cb0aa528f16dc7..afc7afd8656793 100644 --- a/scripts/build/builders/bouffalolab.py +++ b/scripts/build/builders/bouffalolab.py @@ -94,7 +94,8 @@ def __init__(self, enable_ethernet: bool = False, enable_wifi: bool = False, enable_thread: bool = False, - enable_frame_ptr: bool = False + enable_frame_ptr: bool = False, + use_component_easyflash: bool = False ): if 'BL602' == module_type: @@ -193,6 +194,9 @@ def __init__(self, if enable_frame_ptr: self.argsOpt.append("enable_debug_frame_ptr=true") + if use_component_easyflash: + self.argsOpt.append("bouffalo_sdk_component_easyflash_enabled=true") + try: self.argsOpt.append('bouffalolab_sdk_root="%s"' % os.environ['BOUFFALOLAB_SDK_ROOT']) except KeyError as err: