Skip to content

Commit

Permalink
fix compile error and lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
wy-hh committed Sep 13, 2023
1 parent 735afdf commit 6133784
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build/builders/bouffalolab.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ def __init__(self,
self.chip_name = bouffalo_chip
self.enable_frame_ptr = enable_frame_ptr

openthread_project_core_config_file = None
toolchain = os.path.join(root, os.path.split(os.path.realpath(__file__))[0], '../../../config/bouffalolab/toolchain')
toolchain = 'custom_toolchain="{}:riscv_gcc"'.format(toolchain)
if toolchain:
Expand All @@ -125,7 +124,7 @@ def __init__(self,
self.argsOpt.append('baudrate=\"{}\"'.format(baudrate))

if not (enable_wifi or enable_thread or enable_ethernet):
# decide default connectivity for each chip
# decide default connectivity for each chip
if bouffalo_chip == "bl602":
enable_wifi, enable_thread, enable_ethernet = True, False, False
elif bouffalo_chip == "bl702":
Expand Down Expand Up @@ -173,6 +172,7 @@ def __init__(self,
if enable_thread:
self.argsOpt.append('chip_enable_openthread=true')
self.argsOpt.append('chip_mdns="platform"')
self.argsOpt.append('chip_inet_config_enable_ipv4=false')
self.argsOpt.append('openthread_project_core_config_file="{}-openthread-core-bl-config.h"'.format(bouffalo_chip))
else:
self.argsOpt.append('chip_enable_openthread=false')
Expand Down

0 comments on commit 6133784

Please sign in to comment.