Update app filter to prevent building host binaries with target toolchain when buildi...
authorNathael Pajani <nathael.pajani@ed3l.fr>
Wed, 8 Feb 2023 20:28:16 +0000 (21:28 +0100)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Wed, 8 Feb 2023 20:28:16 +0000 (21:28 +0100)
Also remove non ASCII characters from Makefile

Makefile

index ff76888..f81bb81 100644 (file)
--- 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 : \e[32m$@\e[39m"
+       @echo "Creating image : \e[32m$@\e[39m"
        @$(CROSS_COMPILE)objcopy -R .stack -R .bss -O binary $^ $@
        @ls -l $@
        @$(CROSS_COMPILE)size $^