Skip to content
Commit 409fc029 authored by Lothar Waßmann's avatar Lothar Waßmann Committed by Simon Glass
Browse files

tools: buildman: Don't use the working dir as build dir



When the U-Boot base directory happens to have the same name as the branch
that buildman is directed to use via the '-b' option and no output
directory is specified with '-o', buildman happily starts removing the
whole U-Boot sources eventually only stopped with the error message:

OSError: [Errno 20] Not a directory: '../<branch-name>/boards.cfg

Add a check to avoid this and also deal with the case where '-o' points
to the source directory, or any subdirectory of it.

Finally, tidy up the confusing logic for removing the old tree when using
-b. This is only done when building a branch.

Signed-off-by: default avatarLothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Tested-by: default avatarLothar Waßmann <LW@KARO-electronics.de>
parent 0315d695
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment