waf: fixed leading slashes in root of ROMFS

This commit is contained in:
Andrew Tridgell 2024-02-21 12:57:45 +11:00
parent a9eadd9f01
commit c7a729b7f6
1 changed files with 2 additions and 0 deletions

View File

@ -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):