mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 13:41:31 +00:00
tools: buildman: Honor output directory when generating boards.cfg
buildman always generates boards.cfg in the U-Boot source tree. When '-o' is given, we should generate boards.cfg to the given output directory. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
d2e680fa55
commit
bc750bca12
1 changed files with 5 additions and 5 deletions
|
@ -201,14 +201,14 @@ def DoBuildman(options, args, toolchains=None, make_func=None, boards=None,
|
||||||
|
|
||||||
# Work out what subset of the boards we are building
|
# Work out what subset of the boards we are building
|
||||||
if not boards:
|
if not boards:
|
||||||
board_file = os.path.join(options.git, 'boards.cfg')
|
board_file = os.path.join(options.output_dir, 'boards.cfg')
|
||||||
status = subprocess.call([os.path.join(options.git,
|
genboardscfg = os.path.join(options.git, 'tools/genboardscfg.py')
|
||||||
'tools/genboardscfg.py')])
|
status = subprocess.call([genboardscfg, '-o', board_file])
|
||||||
if status != 0:
|
if status != 0:
|
||||||
sys.exit("Failed to generate boards.cfg")
|
sys.exit("Failed to generate boards.cfg")
|
||||||
|
|
||||||
boards = board.Boards()
|
boards = board.Boards()
|
||||||
boards.ReadBoards(os.path.join(options.git, 'boards.cfg'))
|
boards.ReadBoards(board_file)
|
||||||
|
|
||||||
exclude = []
|
exclude = []
|
||||||
if options.exclude:
|
if options.exclude:
|
||||||
|
|
Loading…
Add table
Reference in a new issue