bladeRF/fx3_firmware/make/toolchain.mk.sample
Robert Ghilduta dc187e0640 FX3 Firmware: Supports Command-line build (GNU make, linux)
The build for Windows + Eclipse is likely now broken. Fixing this
is a TODO item on my list...
2013-06-09 22:58:10 -07:00

36 lines
1.1 KiB
Text

# Copy this file to toolchain.mk and fill FX3_ROOT appropriately
################################################################################
# Grab this before CC is defined as the cross toolchain
HOST_CC := $(CC)
# Hack to check if we're in windows, otherwise assume *nix
#
# Note that the ARMGCC_INSTALL_PATH is assumed to be in the environment
# by the toolchain makefiles
ifdef SystemRoot
FX3_ROOT ?= C:/Cypress/EZ-USB\ FX3\ SDK/1.2
export ARMGCC_INSTALL_PATH ?= $(FX3_ROOT)
else
FX3_ROOT ?= /opt/cypress/fx3_sdk
export ARMGCC_INSTALL_PATH ?= $(FX3_ROOT)/arm-2011.03
endif
# This is needed by the FX3 toolchain makefiles to resolve the
# path to libgcc
ARMGCC_VERSION := 4.5.2
#
# Ensure the ARM toolchain is in our path
export PATH := $(PATH):$(ARMGCC_INSTALL_PATH)/bin
# The FX3 toolchain makefiles assume we've defined these variables
FX3FWROOT := $(FX3_ROOT)/cyfx3sdk/firmware
FX3PFWROOT := $(FX3FWROOT)/u3p_firmware
# Path to ELF -> img conversion tool, provided by FX3 toolchain
ELF2IMG_PATH := $(FX3_ROOT)/cyfx3sdk/util/elf2img
# Include build definitions from the toolchain
include $(FX3FWROOT)/common/fx3_build_config.mak