Tools: define obal board

This commit is contained in:
Andrew Tridgell 2021-11-01 07:18:20 +11:00 committed by Randy Mackay
parent 34df214cae
commit 5f7f47d2b1
2 changed files with 11 additions and 1 deletions

View File

@ -1036,6 +1036,16 @@ class rst_zynq(linux):
CONFIG_HAL_BOARD_SUBTYPE = 'HAL_BOARD_SUBTYPE_LINUX_RST_ZYNQ', CONFIG_HAL_BOARD_SUBTYPE = 'HAL_BOARD_SUBTYPE_LINUX_RST_ZYNQ',
) )
class obal(linux):
toolchain = 'arm-linux-gnueabihf'
def configure_env(self, cfg, env):
super(obal, self).configure_env(cfg, env)
env.DEFINES.update(
CONFIG_HAL_BOARD_SUBTYPE = 'HAL_BOARD_SUBTYPE_LINUX_OBAL_V1',
)
class SITL_static(sitl): class SITL_static(sitl):
def configure_env(self, cfg, env): def configure_env(self, cfg, env):
super(SITL_static, self).configure_env(cfg, env) super(SITL_static, self).configure_env(cfg, env)

View File

@ -65,7 +65,7 @@ class BoardSubType(enum.Enum):
LINUX_POCKET = 1022 LINUX_POCKET = 1022
LINUX_NAVIGATOR = 1023 LINUX_NAVIGATOR = 1023
LINUX_VNAV = 1024 LINUX_VNAV = 1024
LINUX_OBAL = 1025
CHIBIOS_SKYVIPER_F412 = 5000 CHIBIOS_SKYVIPER_F412 = 5000
CHIBIOS_FMUV3 = 5001 CHIBIOS_FMUV3 = 5001
CHIBIOS_FMUV4 = 5002 CHIBIOS_FMUV4 = 5002