-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.external
58 lines (47 loc) · 1.5 KB
/
Makefile.external
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
# 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. If your DVSDK does include DMAI, then delete the line
# setting the DMAI_INSTALL_DIR variable below.
#
# Copyright (C) 2009 Ridgerun
#
.PHONY: default dm6446 omap3530 dm355 dm6467
DVSDK_PATH=undefined
DMAI_INSTALL_DIR=undefined
ifeq ($(DVSDK_PATH),undefined)
$(error You need to define the environment variable DVSDK_PATH)
endif
ifeq ($(DMAI_INSTALL_DIR),undefined)
$(error You need to define the environment variable DMAI_INSTALL_DIR)
endif
default:
@echo "Please specify the target: dm6446, omap35x, dm355, dm6467, dm357, dm37x"
include $(DVSDK_PATH)/Rules.make
export 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 LINUXKERNEL_INSTALL_DIR
export LPM_INSTALL_DIR
export MVTOOL_DIR
export MVTOOL_PREFIX
export XDAIS_INSTALL_DIR
export XDC_INSTALL_DIR
PRESET=--with-preset=$(PLATFORM)
ifeq ($(PLATFORM), omap3530)
export MVTOOL_PREFIX = $(CSTOOL_PREFIX)
export MVTOOL_DIR = $(CSTOOL_DIR)
endif
configure:
./autogen.sh --noconfigure
Makefile: configure
./configure --host=arm-none-linux-gnueabi $(PRESET)
omap35x dm6446 dm6467 dm355 dm357 dm373x: Makefile
$(MAKE) -f Makefile