mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #4494 from theotherjimmy/absolute-bootloader-paths
Use absolute paths for bootloader binariespull/4478/head^2
commit
ea7561ddbb
|
@ -17,7 +17,7 @@ limitations under the License.
|
|||
|
||||
from copy import deepcopy
|
||||
import os
|
||||
from os.path import dirname, abspath, exists
|
||||
from os.path import dirname, abspath, exists, join
|
||||
import sys
|
||||
from collections import namedtuple
|
||||
from os.path import splitext, relpath
|
||||
|
@ -526,11 +526,11 @@ class Config(object):
|
|||
raise ConfigException(
|
||||
"Bootloader build requested but no bootlader configuration")
|
||||
|
||||
@staticmethod
|
||||
def _generate_booloader_build(target_overrides, rom_start, rom_size):
|
||||
def _generate_booloader_build(self, target_overrides, rom_start, rom_size):
|
||||
start = 0
|
||||
if 'target.bootloader_img' in target_overrides:
|
||||
filename = target_overrides['target.bootloader_img']
|
||||
basedir = abspath(dirname(self.app_config_location))
|
||||
filename = join(basedir, target_overrides['target.bootloader_img'])
|
||||
if not exists(filename):
|
||||
raise ConfigException("Bootloader %s not found" % filename)
|
||||
part = intelhex_offset(filename, offset=rom_start)
|
||||
|
|
Loading…
Reference in New Issue