From efef6b1e14dc64a559a54dc144e9e010e39d417e Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Tue, 30 Dec 2014 16:21:18 +0800 Subject: [PATCH] Makefile: Remove loader, fix objcopy Signed-off-by: Sean Cross --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 59222a0..6c93dd4 100644 --- a/Makefile +++ b/Makefile @@ -53,14 +53,11 @@ $(BUILD)/fernly-usb-loader: fernly-usb-loader.c sha1.c sha1.h $(CC_NATIVE) fernly-usb-loader.c sha1.c -o $@ $(BUILD)/usb-loader.bin: $(BUILD)/usb-loader.o - objcopy -S -O binary $(BUILD)/usb-loader.o $@ - -$(BUILD)/loader.o: loader.S - as loader.S -o $@ + $(OBJCOPY) -S -O binary $(BUILD)/usb-loader.o $@ HEADER_BUILD = $(BUILD)/genhdr $(BUILD)/firmware.bin: $(BUILD)/firmware.elf - objcopy -S -O binary $(BUILD)/firmware.elf $@ + $(OBJCOPY) -S -O binary $(BUILD)/firmware.elf $@ $(BUILD)/firmware.elf: $(OBJ) $(LD) $(LDFLAGS) --entry=reset_handler -o $@ $(OBJ) $(LIBS)