waf: enable sim on hw for esp32 empty builds
This commit is contained in:
parent
40e9b94f58
commit
c7c0680352
@ -917,7 +917,6 @@ class esp32(Board):
|
||||
cfg.load('esp32')
|
||||
env.DEFINES.update(
|
||||
CONFIG_HAL_BOARD = 'HAL_BOARD_ESP32',
|
||||
AP_SIM_ENABLED = 0,
|
||||
)
|
||||
|
||||
tt = self.name[5:] #leave off 'esp32' so we just get 'buzz','diy','icarus, etc
|
||||
@ -929,6 +928,15 @@ class esp32(Board):
|
||||
HAL_HAVE_HARDWARE_DOUBLE = '1',
|
||||
)
|
||||
|
||||
if self.name.endswith("empty"):
|
||||
# for empty targets build as SIM-on-HW
|
||||
env.DEFINES.update(AP_SIM_ENABLED = 1)
|
||||
env.AP_LIBRARIES += [
|
||||
'SITL',
|
||||
]
|
||||
else:
|
||||
env.DEFINES.update(AP_SIM_ENABLED = 0)
|
||||
|
||||
env.AP_LIBRARIES += [
|
||||
'AP_HAL_ESP32',
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user