Skip to content

Commit

Permalink
AP_HAL_ChibiOS: allow including bootloader file from root periph project
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator committed Oct 23, 2023
1 parent 6988298 commit 4643feb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -2427,6 +2427,12 @@ def bootloader_path(self):
"Tools",
"bootloaders",
bootloader_filename)
if not os.path.exists(bootloader_path):
# GNSSPeriph location
rootdir = os.path.relpath(os.path.join(this_dir, "../../../../../.."))
bootloader_path = os.path.join(rootdir,
"bootloaders",
bootloader_filename)
return bootloader_path

def embed_bootloader(self, f):
Expand Down

0 comments on commit 4643feb

Please sign in to comment.