ANDROID: kbuild: Makefile.clean: make Kbuild and Makefile optional
authorAmit Pundir <amit.pundir@linaro.org>
Tue, 5 Jan 2016 12:06:31 +0000 (17:36 +0530)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 18 Dec 2017 15:41:22 +0000 (21:11 +0530)
commit44ffc07716e586bb5d812ea1f65822c9215d7bfa
tree7c1b48e58f2b66b8190632a8a77930d18e1c12e2
parentef1b6e4e1e04f0f474aea00d2b9f51a8391001fc
ANDROID: 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>
scripts/Makefile.clean