diff options
| author | Keith Packard <keithp@keithp.com> | 2015-01-25 16:43:48 -0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2015-01-25 16:43:48 -0800 |
| commit | 02e1058fa52ee7c867ea6c9031ebb9e21d14889c (patch) | |
| tree | 0761d520d03c899b4e166e1902452c14d787fcd3 /src/usbtrng-v2.0/Makefile | |
| parent | 02f03df6d089cafae99f8ce15dcbd87f6e78d749 (diff) | |
altos: USBtrng v2.0 hardware bringup
Gets the USB connection running and blinks the LEDs.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/usbtrng-v2.0/Makefile')
| -rw-r--r-- | src/usbtrng-v2.0/Makefile | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/src/usbtrng-v2.0/Makefile b/src/usbtrng-v2.0/Makefile new file mode 100644 index 00000000..0d237630 --- /dev/null +++ b/src/usbtrng-v2.0/Makefile @@ -0,0 +1,64 @@ +# +# AltOS build +# +# + +include ../stmf0/Makefile.defs + +INC = \ + ao.h \ + ao_arch.h \ + ao_arch_funcs.h \ + ao_pins.h \ + ao_product.h \ + ao_task.h \ + stm32f0.h + +# +# Common AltOS sources +# +ALTOS_SRC = \ + ao_interrupt.c \ + ao_timer.c \ + ao_panic.c \ + ao_stdio.c \ + ao_led.c \ + ao_romconfig.c \ + ao_boot_chain.c \ + ao_cmd.c \ + ao_usb_stm.c \ + ao_task.c \ + ao_product.c + +PRODUCT=usbtrng-v2.0 +PRODUCT_DEF=-DUSBTRNG_V_2_0 +IDPRODUCT=0x0028 + +CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS) -g -Os + +PROGNAME=usbtrng-v2.0 +PROG=$(PROGNAME)-$(VERSION).elf +HEX=$(PROGNAME)-$(VERSION).ihx + +SRC=$(ALTOS_SRC) ao_usbtrng.c +OBJ=$(SRC:.c=.o) + +all: $(PROG) $(HEX) + +$(PROG): Makefile $(OBJ) altos.ld + $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS) + +ao_product.h: ao-make-product.5c ../Version + $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@ + +$(OBJ): $(INC) + +distclean: clean + +clean: + rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx + rm -f ao_product.h + +install: + +uninstall: |
