cleanup makefiles

pull/126/head
Elms 2021-05-04 11:49:21 -07:00 committed by Daniele Lacamera
parent 4d20c34332
commit 4c63cfd974
4 changed files with 8 additions and 8 deletions

View File

@ -47,7 +47,7 @@ all: $(MAIN_TARGET)
wolfboot.bin: wolfboot.elf
@echo "\t[BIN] $@"
$(Q)$(OBJCOPY) -O binary --gap-fill=255 $^ $@
$(Q)$(OBJCOPY) -O binary $^ $@
align: wolfboot-align.bin
@ -55,7 +55,7 @@ BOOTLOADER_PARTITION_SIZE=$$(( $(WOLFBOOT_PARTITION_BOOT_ADDRESS) - $(ARCH_FLASH
BOOT_PAD_TO_ADDR=$$(($(WOLFBOOT_START) + $(BOOTLOADER_PARTITION_SIZE)))
wolfboot-align.bin: wolfboot.elf
$(Q)$(OBJCOPY) -O binary --gap-fill=255 --pad-to=$(BOOT_PAD_TO_ADDR) wolfboot.elf $@
$(Q)$(OBJCOPY) -O binary wolfboot.elf $@
@echo
@echo "\t[SIZE]"
$(Q)$(SIZE) wolfboot.elf
@ -127,7 +127,7 @@ keys: $(PRIVATE_KEY)
clean:
@find . -type f -name "*.o" | xargs rm -f
@rm -f *.bin *.elf wolfboot.map *.bin *.hex config/target.ld
@rm -f *.bin *.elf wolfboot.map test-update.rom *.hex config/target.ld
@make -C test-app clean
@make -C tools/check_config clean

View File

@ -180,7 +180,7 @@ standalone:LDFLAGS:=$(CFLAGS) -T standalone.ld -Wl,-gc-sections -Wl,-Map=image.m
image.bin: image.elf
@echo "\t[BIN] $@"
$(Q)$(OBJCOPY) --gap-fill=255 --pad-to $$(( $(WOLFBOOT_PARTITION_BOOT_ADDRESS) + $(WOLFBOOT_PARTITION_SIZE) )) -O binary $^ $@
$(Q)$(OBJCOPY) -O binary $^ $@
image.elf: $(APP_OBJS) $(LSCRIPT)
@echo "\t[LD] $@"

View File

@ -1,8 +1,8 @@
CC=gcc
CFLAGS=-Wall -DWOLFSSL_DTLS -DWOLFSSL_DEBUG -DTFM_TIMING_RESISTANT -g -ggdb
CFLAGS=-Wall -g -ggdb
EXE=test-expect-version
LIBS=-lwolfssl -lpthread
LIBS=
$(EXE): $(EXE).o
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)

View File

@ -1,8 +1,8 @@
CC=gcc
CFLAGS=-Wall -DWOLFSSL_DEBUG -DTFM_TIMING_RESISTANT -g -ggdb
CFLAGS=-Wall -g -ggdb
EXE=server
LIBS=-lwolfssl -lpthread
LIBS=-lpthread
$(EXE): $(EXE).o
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)