Makefile: Remove loader, fix objcopy
Signed-off-by: Sean Cross <xobs@kosagi.com>
This commit is contained in:
parent
e8a34a9996
commit
efef6b1e14
1 changed files with 2 additions and 5 deletions
7
Makefile
7
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue