Build: added zynq make target

This commit is contained in:
John Williams 2014-11-14 10:18:14 +11:00 committed by Andrew Tridgell
parent ae87399919
commit b1c6931ade
3 changed files with 20 additions and 0 deletions

View File

@ -145,6 +145,11 @@ HAL_BOARD = HAL_BOARD_LINUX
HAL_BOARD_SUBTYPE = HAL_BOARD_SUBTYPE_LINUX_ERLE HAL_BOARD_SUBTYPE = HAL_BOARD_SUBTYPE_LINUX_ERLE
endif endif
ifneq ($(findstring zynq, $(MAKECMDGOALS)),)
HAL_BOARD = HAL_BOARD_LINUX
HAL_BOARD_SUBTYPE = HAL_BOARD_SUBTYPE_LINUX_ZYNQ
endif
ifneq ($(findstring pxf, $(MAKECMDGOALS)),) ifneq ($(findstring pxf, $(MAKECMDGOALS)),)
HAL_BOARD = HAL_BOARD_LINUX HAL_BOARD = HAL_BOARD_LINUX
HAL_BOARD_SUBTYPE = HAL_BOARD_SUBTYPE_LINUX_PXF HAL_BOARD_SUBTYPE = HAL_BOARD_SUBTYPE_LINUX_PXF

View File

@ -73,6 +73,15 @@ RPI_LD := arm-linux-gnueabihf-g++
RPI_GDB := arm-linux-gnueabihf-gdb RPI_GDB := arm-linux-gnueabihf-gdb
RPI_OBJCOPY := arm-linux-gnueabihf-obj RPI_OBJCOPY := arm-linux-gnueabihf-obj
# toolchains for zynq
ZYNQ_CXX := arm-xilinx-linux-gnueabi-g++
ZYNQ_CC := arm-xilinx-linux-gnueabi-gcc
ZYNQ_AS := arm-xilinx-linux-gnueabi-gcc
ZYNQ_AR := arm-xilinx-linux-gnueabi-ar
ZYNQ_LD := arm-xilinx-linux-gnueabi-g++
ZYNQ_GDB := arm-xilinx-linux-gnueabi-gdb
ZYNQ_OBJCOPY := arm-xilinx-linux-gnueabi-objcopy
# enable ccache if installed # enable ccache if installed
CCACHE := $(call FIND_TOOL,ccache) CCACHE := $(call FIND_TOOL,ccache)

View File

@ -31,6 +31,12 @@ erle: HAL_BOARD = HAL_BOARD_LINUX
erle: TOOLCHAIN = BBONE erle: TOOLCHAIN = BBONE
erle: all erle: all
zynq: HAL_BOARD = HAL_BOARD_LINUX
zynq: TOOLCHAIN = ZYNQ
zynq: all
zynq-hil: EXTRAFLAGS += "-DHILMODE=HIL_MODE_ATTITUDE -DHIL_MODE=HIL_MODE_SENSORS "
zynq-hil : zynq
pxf: HAL_BOARD = HAL_BOARD_LINUX pxf: HAL_BOARD = HAL_BOARD_LINUX
pxf: TOOLCHAIN = BBONE pxf: TOOLCHAIN = BBONE
pxf: all pxf: all