mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
buildman: Add an option to flatten output directory trees
When building current source for a single board, buildman puts the output in <output_dir>/current/current/<board>. Add an option to make it use <output_dir>/<board> instead. This removes the unnecessary directories in that case, controlled by the --no-subdirs/-N option. Suggested-by: Tom Rini <trini@ti.com> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
2a9e2c6a09
commit
5971ab5c44
4 changed files with 24 additions and 6 deletions
|
@ -373,5 +373,13 @@ class TestBuild(unittest.TestCase):
|
|||
build.commit_count = 0
|
||||
self.CheckDirs(build, '/current')
|
||||
|
||||
def testOutputDirNoSubdirs(self):
|
||||
build = builder.Builder(self.toolchains, BASE_DIR, None, 1, 2,
|
||||
checkout=False, show_unknown=False,
|
||||
no_subdirs=True)
|
||||
build.commits = None
|
||||
build.commit_count = 0
|
||||
self.CheckDirs(build, '')
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue