mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Also consider targets that include a '-' (#24087)
This commit is contained in:
@@ -73,7 +73,7 @@ def process_target(px4board_file, target_name):
|
|||||||
px4board_file.endswith("bootloader.px4board"):
|
px4board_file.endswith("bootloader.px4board"):
|
||||||
kconf.load_config(px4board_file, replace=True)
|
kconf.load_config(px4board_file, replace=True)
|
||||||
else: # Merge config with default.px4board
|
else: # Merge config with default.px4board
|
||||||
default_kconfig = re.sub(r'[a-zA-Z\d_]+\.px4board', 'default.px4board', px4board_file)
|
default_kconfig = re.sub(r'[a-zA-Z\d_-]+\.px4board', 'default.px4board', px4board_file)
|
||||||
kconf.load_config(default_kconfig, replace=True)
|
kconf.load_config(default_kconfig, replace=True)
|
||||||
kconf.load_config(px4board_file, replace=False)
|
kconf.load_config(px4board_file, replace=False)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user