mirror of https://github.com/ArduPilot/ardupilot
waf: fixed leading slashes in root of ROMFS
This commit is contained in:
parent
a9eadd9f01
commit
c7a729b7f6
|
@ -510,6 +510,8 @@ class Board:
|
||||||
# exclude emacs tmp files
|
# exclude emacs tmp files
|
||||||
continue
|
continue
|
||||||
fname = root[len(custom_dir)+1:]+"/"+f
|
fname = root[len(custom_dir)+1:]+"/"+f
|
||||||
|
if fname.startswith("/"):
|
||||||
|
fname = fname[1:]
|
||||||
env.ROMFS_FILES += [(fname,root+"/"+f)]
|
env.ROMFS_FILES += [(fname,root+"/"+f)]
|
||||||
|
|
||||||
def pre_build(self, bld):
|
def pre_build(self, bld):
|
||||||
|
|
Loading…
Reference in New Issue