Commit 02ba723f authored by Adam Wujek's avatar Adam Wujek 💬 Committed by Grzegorz Daniluk

MAKEALL: keep all output files after each config compilation

Use make cleanall to remove files from all compilations.
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 5d784730
......@@ -28,6 +28,9 @@ export size_info_file
rm -rf $size_info_file
# remove files from the previous compilations first
make cleanall -s
for c in $configs; do
echo "##### Building with '$c'"
if ! make -s clean; then
......@@ -44,6 +47,7 @@ for c in $configs; do
export DEFCONFIG_NAME
# Remove "# configuration written to .config" from output
make -s | grep -v '^#'
make makeall_copy
done
make -s clean
......
......@@ -21,6 +21,9 @@ AUTOCONF = $(CURDIR)/include/generated/autoconf.h
PPSI = ppsi
# list of file extensions to be copied for MAKEALL script
MAKEALL_COPY_LIST=.bin .elf
# we miss CONFIG_ARCH_LM32 as we have no other archs by now
obj-$(CONFIG_LM32) = arch/lm32/crt0.o arch/lm32/irq.o
LDS-$(CONFIG_WR_NODE) = arch/lm32/ram.ld
......@@ -196,6 +199,9 @@ clean:
$(MAKE) -C sdb-lib clean
$(MAKE) -C tools clean
cleanall: clean
rm -f $(addprefix *,$(MAKEALL_COPY_LIST))
%.o: %.c
${CC} $(CFLAGS) $(PTPD_CFLAGS) $(INCLUDE_DIR) $(LIB_DIR) -c $*.c -o $@
......@@ -229,3 +235,9 @@ defconfig:
# (we depend on .config and not on include/generated/autoconf.h
# because the latter is touched by silentoldconfig at each build)
$(obj-y): .config $(wildcard include/*.h)
# copy compiled files for MAKEALL script
$(DEFCONFIG_NAME).%:
@cp -f $(OUTPUT)$(suffix $@) $@
makeall_copy: $(addprefix $(DEFCONFIG_NAME),$(MAKEALL_COPY_LIST))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment