apps:generic:zynqmp_r5: Add Makefile.include
authorWendy Liang <jliang@xilinx.com>
Sat, 9 Jan 2016 01:06:11 +0000 (17:06 -0800)
committerWendy Liang <jliang@xilinx.com>
Tue, 9 Feb 2016 19:55:43 +0000 (11:55 -0800)
Add zynqmp_r5 generic Makefile.include for common
compilation settings for zynqmp_r5 generic applications.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
apps/system/generic/machine/zynqmp_r5/Makefile.include [new file with mode: 0644]

diff --git a/apps/system/generic/machine/zynqmp_r5/Makefile.include b/apps/system/generic/machine/zynqmp_r5/Makefile.include
new file mode 100644 (file)
index 0000000..8854d8f
--- /dev/null
@@ -0,0 +1,20 @@
+CFLAGS += $(ARCH_CFLAGS)
+CFLAGS += -DZYNQMP_R5
+CFLAGS += -I"$(call local_dir,.)"
+DEPS := -lxil -lc -lm
+
+ifeq ($(REMOTEPROC_MASTER),y)
+$(error "Remoteproc master is not supported for this ARCH yet.")
+else
+LINKERSCRIPT := $(call local_dir,linker_remote.ld)
+endif
+
+C_COMMON_SRCS := $(wildcard $(call local_dir,)*.c)
+
+ifeq ($(EXTRA_INCLUDES),)
+EXTRA_INCLUDES += -I"$(OHOME)/obsolete/system/$(SYSTEM)/machine/$(MACHINE)/xil_standalone_lib"
+endif
+
+ifneq ($(EXTRA_INCLUDES),)
+CFLAGS += $(EXTRA_INCLUDES)
+endif