Tools: waf: don't do uavcan build config for AP_Periph
This commit is contained in:
parent
b6f92989a7
commit
b27092c651
@ -237,9 +237,9 @@ def chibios_firmware(self):
|
|||||||
_upload_task = self.create_task('upload_fw', src=apj_target)
|
_upload_task = self.create_task('upload_fw', src=apj_target)
|
||||||
_upload_task.set_run_after(generate_apj_task)
|
_upload_task.set_run_after(generate_apj_task)
|
||||||
|
|
||||||
def setup_can_build(cfg):
|
def setup_canmgr_build(cfg):
|
||||||
'''enable CAN build. By doing this here we can auto-enable CAN in
|
'''enable CANManager build. By doing this here we can auto-enable CAN in
|
||||||
the build based on the presence of CAN pins in hwdef.dat'''
|
the build based on the presence of CAN pins in hwdef.dat except for AP_Periph builds'''
|
||||||
env = cfg.env
|
env = cfg.env
|
||||||
env.AP_LIBRARIES += [
|
env.AP_LIBRARIES += [
|
||||||
'AP_UAVCAN',
|
'AP_UAVCAN',
|
||||||
@ -358,8 +358,8 @@ def configure(cfg):
|
|||||||
if ret != 0:
|
if ret != 0:
|
||||||
cfg.fatal("Failed to process hwdef.dat ret=%d" % ret)
|
cfg.fatal("Failed to process hwdef.dat ret=%d" % ret)
|
||||||
load_env_vars(cfg.env)
|
load_env_vars(cfg.env)
|
||||||
if env.HAL_NUM_CAN_IFACES:
|
if env.HAL_NUM_CAN_IFACES and not env.AP_PERIPH:
|
||||||
setup_can_build(cfg)
|
setup_canmgr_build(cfg)
|
||||||
setup_optimization(cfg.env)
|
setup_optimization(cfg.env)
|
||||||
|
|
||||||
def generate_hwdef_h(env):
|
def generate_hwdef_h(env):
|
||||||
|
Loading…
Reference in New Issue
Block a user