diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2016-11-23 21:16:22 +0000 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2016-11-23 21:27:11 +0000 |
commit | 5e7e81535fea702b9194795525453ac0b801ce94 (patch) | |
tree | eab8d1d536f4c77cde2e5ea48d2bbcf49f259d38 /Makefile | |
parent | 426cb9bd4b5e9e73c074830f48f77977ebb53c98 (diff) | |
download | fmk-5e7e81535fea702b9194795525453ac0b801ce94.tar.gz fmk-5e7e81535fea702b9194795525453ac0b801ce94.tar.xz fmk-5e7e81535fea702b9194795525453ac0b801ce94.zip |
Got rid of silly xxd mess
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -5,7 +5,6 @@ TARGET_ARCH = -mcpu=$(CPU) -mthumb AS = arm-none-eabi-as CC = arm-none-eabi-gcc OBJCOPY = arm-none-eabi-objcopy -XXD = xxd HKTOOL = hktool $(MCU) @@ -21,10 +20,6 @@ OBJ := crt0.o vectors.o flashconf.o setup.o fmk.o lib/string.o lib/le.o usb/usb. %.bin: % $(OBJCOPY) -O binary $< $@ -%.xxo: %.xxd - awk '{print $$1}' $< | $(XXD) -r -p -c1 >$@ -%.xxh: %.xxo - $(XXD) -i $< | sed -e 's/_xxo//' >$@ all: fmk.bin fmk: $(OBJ) @@ -34,9 +29,8 @@ flash: fmk.bin hktool -r clean: - $(RM) $(OBJ) $(OBJ:.o=.d) $(wildcard usb/*.xxh) fmk fmk.bin + $(RM) $(OBJ) $(OBJ:.o=.d) fmk fmk.bin -include $(OBJ:.o=.d) -usb/endpt0.o: usb/ds_dev.xxh usb/ds_conf.xxh usb/ds_lang.xxh usb/ds_str1.xxh .PHONY: all flash clean |