target: zephyr: Cause pristine to remove entire build directory (#1418)

For a normal zephyr application the pristine target simply runs
"rm -rf outdir". However the JerryScript build overrides the output
directory [O=$(OUTPUT)] so Zephyr's implementation pristine is not able
to to a full aggressive clean up for all boards.

For this reason it is better for the JerryScript build wrapper to have
its own implementation of pristine.

JerryScript-DCO-1.0-Signed-off-by: Daniel Thompson daniel.thompson@linaro.org
This commit is contained in:
Daniel Thompson 2016-11-01 14:29:20 +00:00 committed by Akos Kiss
parent e65a69b7c0
commit 36edae3257

View File

@ -120,7 +120,7 @@ KCONFIG_TARGETS = \
oldconfig silentoldconfig defconfig savedefconfig \
allnoconfig allyesconfig alldefconfig randconfig \
listnewconfig olddefconfig
CLEAN_TARGETS = pristine mrproper
CLEAN_TARGETS = mrproper
$(GENERIC_TARGETS): jerry
$(CLEAN_TARGETS): clean
@ -166,3 +166,9 @@ ifdef V
@echo "- CLEANING ZEPHYR ----------------------------------------------"
endif
make -f $(TARGET_ZEPHYR)/Makefile $(BUILD_CONFIG) clean
pristine: clean
ifdef V
@echo "- CLEANING BUILD DIRECTORY -------------------------------------"
endif
rm -rf build/