1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
# Example makefile showing how to provide all the required environment
# variables for building the TI GStreamer plug-ins.
#
# The only customization required below is defining the DVSDK_PATH
# and, if your DVSDK doesn't include DMAI, the set DMAI_INSTALL_DIR variable
# appropriately.
#
# Copyright (C) 2009 Ridgerun
#
.PHONY: default configure dm6446 omap3530 dm355 dm6467 dm365 omapl138 dm3730
DVSDK_PATH=undefined
DMAI_INSTALL_DIR=undefined
ifeq ($(DVSDK_PATH),undefined)
$(error You need to define the environment variable DVSDK_PATH)
endif
include $(DVSDK_PATH)/Rules.make
ifeq ($(DMAI_INSTALL_DIR),undefined)
$(error You need to define the environment variable DMAI_INSTALL_DIR)
endif
default:
@echo "Please specify the target: dm6446, omap3530, dm355, dm6467, dm6467t, dm365 omapl138"
export GST_TI_PLATFORM=$(MAKECMDGOALS)
export BIOS_INSTALL_DIR
export CE_INSTALL_DIR
export CMEM_INSTALL_DIR
export CODEC_INSTALL_DIR
export DMAI_INSTALL_DIR
export FC_INSTALL_DIR
export LINK_INSTALL_DIR
export LINK_XDC_ROOT = $(LINK_INSTALL_DIR)/packages
export LINUXKERNEL_INSTALL_DIR
export LPM_INSTALL_DIR
export MVTOOL_DIR
export MVTOOL_PREFIX
export XDAIS_INSTALL_DIR
export XDC_INSTALL_DIR
export EDMA3_LLD_INSTALL_DIR
ifeq ($(GST_TI_PLATFORM), dm355)
export XDC_TARGET = gnu.targets.arm.GCArmv5T
export XDC_PLATFORM = ti.platforms.evmDM355
export MVTOOL_PREFIX = $(CSTOOL_PREFIX)
export MVTOOL_DIR = $(CSTOOL_DIR)
export PLATFORM_XDC = ${XDC_PLATFORM}
export CROSS_COMPILE = ${CSTOOL_PREFIX}
endif
ifeq ($(GST_TI_PLATFORM), dm6446)
export XDC_TARGET = gnu.targets.MVArm9
export XDC_PLATFORM = ti.platforms.evmDM6446
endif
ifeq ($(GST_TI_PLATFORM), dm6467)
export XDC_TARGET = gnu.targets.MVArm9
export XDC_PLATFORM = ti.platforms.evmDM6467
endif
ifeq ($(GST_TI_PLATFORM), dm6467t)
export XDC_TARGET = gnu.targets.arm.GCArmv5T
export XDC_PLATFORM = ti.platforms.evmDM6467
export LINK_XDC_ROOT = $(LINK_INSTALL_DIR)
export MVTOOL_PREFIX = $(CSTOOL_PREFIX)
export MVTOOL_DIR = $(CSTOOL_DIR)
export PLATFORM_XDC = ${XDC_PLATFORM}
export CROSS_COMPILE = ${CSTOOL_PREFIX}
endif
ifeq ($(GST_TI_PLATFORM), dm365)
export XDC_TARGET = gnu.targets.arm.GCArmv5T
export XDC_PLATFORM = ti.platforms.evmDM365
export MVTOOL_PREFIX = $(CSTOOL_PREFIX)
export MVTOOL_DIR = $(CSTOOL_DIR)
export PLATFORM_XDC = ${XDC_PLATFORM}
export CROSS_COMPILE = ${CSTOOL_PREFIX}
endif
ifeq ($(GST_TI_PLATFORM), omapl138)
export XDC_TARGET = gnu.targets.arm.GCArmv5T
export XDC_PLATFORM = ti.platforms.evmOMAPL138
export MVTOOL_PREFIX = $(CSTOOL_PREFIX)
export MVTOOL_DIR = $(CSTOOL_DIR)
export PLATFORM_XDC = ${XDC_PLATFORM}
export CROSS_COMPILE = ${CSTOOL_PREFIX}
export LINK_XDC_ROOT = $(LINK_INSTALL_DIR)
export C6ACCEL_INSTALL_DIR
export C6ACCEL_PLATFORM = $(GST_TI_PLATFORM)
export ENABLE_C6ACCEL ="--enable-c6accel"
endif
ifeq ($(GST_TI_PLATFORM), omap3530)
export XDC_TARGET = gnu.targets.arm.GCArmv5T
export XDC_PLATFORM = ti.platforms.evm3530
export MVTOOL_PREFIX = $(CSTOOL_PREFIX)
export MVTOOL_DIR = $(CSTOOL_DIR)
export PLATFORM_XDC = ${XDC_PLATFORM}
export CROSS_COMPILE = ${CSTOOL_PREFIX}
export LINK_XDC_ROOT = $(LINK_INSTALL_DIR)
export C6ACCEL_INSTALL_DIR
export C6ACCEL_PLATFORM = $(GST_TI_PLATFORM)
export ENABLE_C6ACCEL ="--enable-c6accel"
endif
ifeq ($(GST_TI_PLATFORM), dm3730)
export XDC_TARGET = gnu.targets.arm.GCArmv5T
export XDC_PLATFORM = ti.platforms.evm3530
export MVTOOL_PREFIX = $(CSTOOL_PREFIX)
export MVTOOL_DIR = $(CSTOOL_DIR)
export PLATFORM_XDC = ${XDC_PLATFORM}
export CROSS_COMPILE = ${CSTOOL_PREFIX}
export LINK_XDC_ROOT = $(LINK_INSTALL_DIR)
export C6ACCEL_INSTALL_DIR
export C6ACCEL_PLATFORM = omap3530
export ENABLE_C6ACCEL ="--enable-c6accel"
endif
CPPFLAGS=-DPlatform_$(GST_TI_PLATFORM)
HOST=arm-none-linux-gnueabi
configure:
./autogen.sh --noconfigure
Makefile: configure
./configure CPPFLAGS="$(CPPFLAGS)" --host=$(HOST) $(ENABLE_C6ACCEL)
omap3530: Makefile
$(MAKE) -f Makefile
dm6446: Makefile
$(MAKE) -f Makefile
dm6467: Makefile
$(MAKE) -f Makefile
dm6467t: Makefile
$(MAKE) -f Makefile
dm355: Makefile
$(MAKE) -f Makefile
dm365: Makefile
$(MAKE) -f Makefile
omapl138: Makefile
$(MAKE) -f Makefile
dm3730: Makefile
$(MAKE) -f Makefile
|