From fbf86fd64b48fd5e63c0091d5beafe51d12300dd Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Wed, 8 Feb 2023 21:28:16 +0100 Subject: [PATCH] Update app filter to prevent building host binaries with target toolchain when building all projects Also remove non ASCII characters from Makefile --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ff76888..f81bb81 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ LDFLAGS = -static $(LD_DEBUG) -nostartfiles -nostdlib -Tlpc_link_$(LPC).ld \ -Wl,-Map=$(TARGET_DIR)/lpc_map_$(LPC).map -APPS = $(subst apps/,,$(wildcard apps/*/*/))) +APPS = $(subst apps/,,$(wildcard apps/*/[!host]*/)) .PHONY: all $(APPS) all: $(APPS) @@ -60,7 +60,7 @@ NAME_DEPS = ${NAME_OBJS:%.o=$(OBJDIR)/%.d} @$(CC) $(LDFLAGS) $(OBJS) $(NAME_OBJS) -o $@ %.bin: %.elf - @echo "Creating image : $@" + @echo "Creating image : \e[32m$@\e[39m" @$(CROSS_COMPILE)objcopy -R .stack -R .bss -O binary $^ $@ @ls -l $@ @$(CROSS_COMPILE)size $^ -- 2.43.0