Skip to content

Commit

Permalink
raise exception if usb cdc enabled by none-bl706 chips
Browse files Browse the repository at this point in the history
  • Loading branch information
wy-hh committed Feb 23, 2023
1 parent 69628f7 commit f0faf5e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/build/builders/bouffalolab.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,11 @@ def __init__(self,

if bouffalo_chip == "bl702":
self.argsOpt.append('module_type=\"{}\"'.format(module_type))
if enable_cdc:
self.argsOpt.append('enable_cdc_module=true')

if enable_cdc:
if bouffalo_chip != "bl702":
raise Exception('Chip %s does NOT support USB CDC' % bouffalo_chip)
self.argsOpt.append('enable_cdc_module=true')

if enable_rpcs:
self.argsOpt.append('import("//with_pw_rpc.gni")')
Expand Down

0 comments on commit f0faf5e

Please sign in to comment.