diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2016-01-05 17:36:31 +0530 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2016-02-10 22:09:08 +0530 |
commit | 12ef60e6494d2234ac60cc23fa4e1f35666a96f2 (patch) | |
tree | 3c2db357ea0c7c38576627f7a2c8f4cc157cbe8c /scripts | |
parent | cfb08e512901b688dd3315a7016b8bc212edee39 (diff) |
kbuild: Makefile.clean: make Kbuild and Makefile optional
AOSP commit b13ce9f4aa6f "ARM64: add option to build
Image.gz/dtb combo" broke archclean / mrproper build
targets and we run into:
----------
./scripts/Makefile.clean:14: arch/arm64/boot/amd/Makefile: No such file or directory
make[2]: *** No rule to make target `arch/arm64/boot/amd/Makefile'. Stop.
make[1]: *** [arch/arm64/boot/amd] Error 2
make: *** [archclean] Error 2
----------
This patch skip the missing Kbuild/Makefile reporting
error. It does the job (i.e cleanup dts/*/*.dtb and
do not spit out missing file error messages as well).
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.clean | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean index a609552a86dc..cec78c48e1cf 100644 --- a/scripts/Makefile.clean +++ b/scripts/Makefile.clean @@ -14,7 +14,7 @@ clean := -f $(srctree)/scripts/Makefile.clean obj # The filename Kbuild has precedence over Makefile kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src)) -include $(if $(wildcard $(kbuild-dir)/Kbuild), $(kbuild-dir)/Kbuild, $(kbuild-dir)/Makefile) +-include $(if $(wildcard $(kbuild-dir)/Kbuild), $(kbuild-dir)/Kbuild, $(kbuild-dir)/Makefile) # Figure out what we need to build from the various variables # ========================================================================== |