Skip to content

Commit

Permalink
add option to use easyflash for persisent storage access
Browse files Browse the repository at this point in the history
  • Loading branch information
wy-hh committed Nov 21, 2023
1 parent fbde939 commit 3eaf258
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 5 additions & 1 deletion scripts/build/builders/bouffalolab.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3eaf258

Please sign in to comment.