BeagleBoard_CodecEngine_Updated: Rules.mk

File Rules.mk, 4.7 KB (added by rthandee, 3 years ago)
Line 
1#   ============================================================================
2#   @file   Rules.mk
3#
4#   @path   $(DSPLINK)/gpp/src/
5#
6#   @desc   This file contains the configurable items for the kbuild based
7#           makefile.
8#
9#   @ver    1.65.00.03
10#   ============================================================================
11#   Copyright (C) 2002-2009, Texas Instruments Incorporated -
12#   http://www.ti.com/
13#
14#   Redistribution and use in source and binary forms, with or without
15#   modification, are permitted provided that the following conditions
16#   are met:
17#   
18#   *  Redistributions of source code must retain the above copyright
19#      notice, this list of conditions and the following disclaimer.
20#   
21#   *  Redistributions in binary form must reproduce the above copyright
22#      notice, this list of conditions and the following disclaimer in the
23#      documentation and/or other materials provided with the distribution.
24#   
25#   *  Neither the name of Texas Instruments Incorporated nor the names of
26#      its contributors may be used to endorse or promote products derived
27#      from this software without specific prior written permission.
28#   
29#   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
30#   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
31#   THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
32#   PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
33#   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
34#   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
35#   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
36#   OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
37#   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
38#   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
39#   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40#   ============================================================================
41
42# Update these macros to reflect your environment.
43#
44# KERNEL_DIR   = The Linux kernel source directory
45# TOOL_PATH    = Path to the toolchain
46# MAKE_OPTS    = Architecture-specific Make options
47#
48
49ifeq ("$(TI_DSPLINK_GPPOS)", "Linux")
50
51ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAP3530")
52#KERNEL_DIR    := ${HOME}/omap3530/AM35x-OMAP35x-PSP-SDK-03.00.00.05/src/kernel/linux-03.00.00.05
53#TOOL_PATH     := ${HOME}/toolchains/git/arm-2009q1-203/bin
54KERNEL_DIR    := ${HOME}/oe/tmp/sysroots/beagleboard-angstrom-linux-gnueabi/kernel
55TOOL_PATH     := ${HOME}/oe/tmp/sysroots/i686-linux/usr/armv7a
56endif #ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAP3530")
57
58ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL138")
59KERNEL_DIR    := ${HOME}/DaVinci-PSP-SDK-03.20.00.11/src/kernel/linux-03.20.00.11
60TOOL_PATH     := ${HOME}/toolchains/git/arm-2009q1-203/bin
61endif #ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL138")
62
63ifeq ("$(TI_DSPLINK_PLATFORM)", "DA850")
64KERNEL_DIR    := ${HOME}/DaVinci-PSP-SDK-03.20.00.11/src/kernel/linux-03.20.00.11
65TOOL_PATH     := ${HOME}/toolchains/git/arm-2009q1-203/bin
66endif #ifeq ("$(TI_DSPLINK_PLATFORM)", "DA850")
67
68ifeq ("$(TI_DSPLINK_PLATFORM)", "DA8XX")
69KERNEL_DIR    := ${HOME}/DaVinci-PSP-SDK-03.20.00.11/src/kernel/linux-03.20.00.11
70TOOL_PATH     := ${HOME}/toolchains/git/arm-2009q1-203/bin
71endif #ifeq ("$(TI_DSPLINK_PLATFORM)", "DA8XX")
72
73ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL1XX")
74KERNEL_DIR    := ${HOME}/DaVinci-PSP-SDK-03.20.00.11/src/kernel/linux-03.20.00.11
75TOOL_PATH     := ${HOME}/toolchains/git/arm-2009q1-203/bin
76endif #ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL1XX")
77
78ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCIHD")
79KERNEL_DIR    := ${HOME}/linux-davinci/git
80TOOL_PATH     := ${HOME}/toolchains/git/arm-2009q1-203/bin
81endif #ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCIHD")
82
83ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
84KERNEL_DIR    := ${HOME}/linux-davinci/git
85TOOL_PATH     := ${HOME}/toolchains/git/arm-2009q1-203/bin
86endif #ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
87
88saved_cross := $(shell cat $(KERNEL_DIR)/include/generated/kernel.cross 2> /dev/null)
89CROSS_COMPILE := $(saved_cross)
90export CROSS_COMPILE
91
92PATH  := $(TOOL_PATH):$(PATH)
93export PATH
94
95ifeq ("$(TI_DSPLINK_GPPOSPREFIX)", "uc")
96CG_PREFIX = arm-linux-uclibcgnueabi-
97ifneq ($(CROSS_COMPILE),)
98MAKE_OPTS = ARCH=arm
99else
100MAKE_OPTS = ARCH=arm CROSS_COMPILE=$(TOOL_PATH)/arm-linux-uclibcgnueabi-
101endif
102else
103#CG_PREFIX = arm-none-linux-gnueabi-
104CG_PREFIX = arm-angstrom-linux-gnueabi-
105ifneq ($(CROSS_COMPILE),)
106MAKE_OPTS = ARCH=arm
107else
108#MAKE_OPTS = ARCH=arm CROSS_COMPILE=$(TOOL_PATH)/arm-none-linux-gnueabi-
109MAKE_OPTS = ARCH=arm CROSS_COMPILE=$(TOOL_PATH)/bin/arm-angstrom-linux-gnueabi-
110endif
111endif # ifeq ("$(TI_DSPLINK_GPPOSPREFIX)", "uc")
112
113endif # ifeq ("$(TI_DSPLINK_GPPOS)", "Linux")