mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
Makefile: remove generated boards.cfg within make distclean
Signed-off-by: Roger Meier <roger@bufferoverflow.ch> Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Tested-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Tom Rini <trini@ti.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
92ac8acc01
commit
fd18a89e7f
4 changed files with 6 additions and 5 deletions
2
MAKEALL
2
MAKEALL
|
@ -658,7 +658,7 @@ build_target() {
|
||||||
MAKE="${MAKE} O=${output_dir}"
|
MAKE="${MAKE} O=${output_dir}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${MAKE} distclean >/dev/null
|
${MAKE} mrproper >/dev/null
|
||||||
|
|
||||||
echo "Building ${target} board..."
|
echo "Building ${target} board..."
|
||||||
${MAKE} -s ${target}_defconfig >/dev/null
|
${MAKE} -s ${target}_defconfig >/dev/null
|
||||||
|
|
1
Makefile
1
Makefile
|
@ -1289,6 +1289,7 @@ distclean: mrproper
|
||||||
-o -name '.*.rej' -o -name '*%' -o -name 'core' \
|
-o -name '.*.rej' -o -name '*%' -o -name 'core' \
|
||||||
-o -name '*.pyc' \) \
|
-o -name '*.pyc' \) \
|
||||||
-type f -print | xargs rm -f
|
-type f -print | xargs rm -f
|
||||||
|
@rm -f boards.cfg
|
||||||
|
|
||||||
backup:
|
backup:
|
||||||
F=`basename $(srctree)` ; cd .. ; \
|
F=`basename $(srctree)` ; cd .. ; \
|
||||||
|
|
|
@ -308,7 +308,7 @@ class Builder:
|
||||||
Args:
|
Args:
|
||||||
commit: Commit object that is being built
|
commit: Commit object that is being built
|
||||||
brd: Board object that is being built
|
brd: Board object that is being built
|
||||||
stage: Stage that we are at (distclean, config, build)
|
stage: Stage that we are at (mrproper, config, build)
|
||||||
cwd: Directory where make should be run
|
cwd: Directory where make should be run
|
||||||
args: Arguments to pass to make
|
args: Arguments to pass to make
|
||||||
kwargs: Arguments to pass to command.RunPipe()
|
kwargs: Arguments to pass to command.RunPipe()
|
||||||
|
|
|
@ -91,7 +91,7 @@ class BuilderThread(threading.Thread):
|
||||||
commit: Commit object that is being built
|
commit: Commit object that is being built
|
||||||
brd: Board object that is being built
|
brd: Board object that is being built
|
||||||
stage: Stage of the build. Valid stages are:
|
stage: Stage of the build. Valid stages are:
|
||||||
distclean - can be called to clean source
|
mrproper - can be called to clean source
|
||||||
config - called to configure for a board
|
config - called to configure for a board
|
||||||
build - the main make invocation - it does the build
|
build - the main make invocation - it does the build
|
||||||
args: A list of arguments to pass to 'make'
|
args: A list of arguments to pass to 'make'
|
||||||
|
@ -200,8 +200,8 @@ class BuilderThread(threading.Thread):
|
||||||
|
|
||||||
# If we need to reconfigure, do that now
|
# If we need to reconfigure, do that now
|
||||||
if do_config:
|
if do_config:
|
||||||
result = self.Make(commit, brd, 'distclean', cwd,
|
result = self.Make(commit, brd, 'mrproper', cwd,
|
||||||
'distclean', *args, env=env)
|
'mrproper', *args, env=env)
|
||||||
result = self.Make(commit, brd, 'config', cwd,
|
result = self.Make(commit, brd, 'config', cwd,
|
||||||
*(args + config_args), env=env)
|
*(args + config_args), env=env)
|
||||||
config_out = result.combined
|
config_out = result.combined
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue