From 642f3fb5823f292ae29cc38c8897327dfbdc3c15 Mon Sep 17 00:00:00 2001 From: Ben Hilburn Date: Mon, 7 Apr 2014 14:58:25 -0700 Subject: b2xx: Pulling FX3 and AD9361 source code into master. --- firmware/fx3/b200/makefile | 55 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 firmware/fx3/b200/makefile (limited to 'firmware/fx3/b200/makefile') diff --git a/firmware/fx3/b200/makefile b/firmware/fx3/b200/makefile new file mode 100644 index 000000000..d693db076 --- /dev/null +++ b/firmware/fx3/b200/makefile @@ -0,0 +1,55 @@ +# +# Copyright 2013-2014 Ettus Research LLC +# + +HEX_OUT = usrp_b200_fw.hex + +all:$(HEX_OUT) + +# Pull in the Cypress SDK files to build the firmware +FX3FWROOT=.. +FX3PFWROOT=../u3p_firmware +include $(FX3FWROOT)/common/fx3_build_config.mak + +ifndef OC + OC = arm-none-eabi-objcopy +endif + +MODULE = b200_main + +SOURCE += $(MODULE).c +SOURCE += b200_usb_descriptors.c +SOURCE += b200_ad9361.c +SOURCE += b200_i2c.c + +INCLUDES = b200_main.h b200_vrq.h b200_gpifconfig.h b200_i2c.h +INCLUDES += ../ad9361/include/ad9361_transaction.h + +INCFLAGS = -I ../ad9361/include + +LDLIBS += \ + "$$ARMGCC_INSTALL_PATH"/arm-none-eabi/lib/libm.a + +C_OBJECT=$(SOURCE:%.c=./%.o) +A_OBJECT=$(SOURCE_ASM:%.S=./%.o) + +EXES = $(MODULE).$(EXEEXT) + +$(MODULE).$(EXEEXT): $(A_OBJECT) $(C_OBJECT) + $(LINK) $(LINKFLAGS) + +$(C_OBJECT) : %.o : %.c $(INCLUDES) + $(COMPILE) $(INCFLAGS) + +$(A_OBJECT) : %.o : %.S + $(ASSEMBLE) + +clean: + rm -f ./$(MODULE).$(EXEEXT) + rm -f ./$(MODULE).map + rm -f ./*.o + +$(HEX_OUT): $(C_OBJECT) $(A_OBJECT) $(EXES) + $(OC) -O ihex $(EXES) $@ + +#[]# -- cgit v1.2.3