File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 17
17
18
18
from copy import deepcopy
19
19
import os
20
- from os .path import dirname , abspath , exists
20
+ from os .path import dirname , abspath , exists , join
21
21
import sys
22
22
from collections import namedtuple
23
23
from os .path import splitext , relpath
@@ -526,11 +526,11 @@ def regions(self):
526
526
raise ConfigException (
527
527
"Bootloader build requested but no bootlader configuration" )
528
528
529
- @staticmethod
530
- def _generate_booloader_build (target_overrides , rom_start , rom_size ):
529
+ def _generate_booloader_build (self , target_overrides , rom_start , rom_size ):
531
530
start = 0
532
531
if 'target.bootloader_img' in target_overrides :
533
- filename = target_overrides ['target.bootloader_img' ]
532
+ basedir = abspath (dirname (self .app_config_location ))
533
+ filename = join (basedir , target_overrides ['target.bootloader_img' ])
534
534
if not exists (filename ):
535
535
raise ConfigException ("Bootloader %s not found" % filename )
536
536
part = intelhex_offset (filename , offset = rom_start )
You can’t perform that action at this time.
0 commit comments