Merge branch 'release/v01.05.06.00'
[openmp/ti-openmpacc.git] / Makefile.inc
1 ##
2 ##  Copyright (c) 2014-2017, Texas Instruments Incorporated
3 ##
4 ##  Redistribution and use in source and binary forms, with or without
5 ##  modification, are permitted provided that the following conditions
6 ##  are met:
7 ##
8 ##  *  Redistributions of source code must retain the above copyright
9 ##     notice, this list of conditions and the following disclaimer.
10 ##
11 ##  *  Redistributions in binary form must reproduce the above copyright
12 ##     notice, this list of conditions and the following disclaimer in the
13 ##     documentation and/or other materials provided with the distribution.
14 ##
15 ##  *  Neither the name of Texas Instruments Incorporated nor the names of
16 ##     its contributors may be used to endorse or promote products derived
17 ##     from this software without specific prior written permission.
18 ##
19 ##  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 ##  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21 ##  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 ##  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
23 ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 ##  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 ##  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 ##  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 ##  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 ##  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
29 ##  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 ##
31 ##  ======== Makefile.inc ========
32 ##
34 UNAME_M:=$(shell uname -m)
36 SDOMC_SHARED ?= /cgnas
37 CORESDK_VERSION ?= 06.00.00.07-release
39 # SOC PSDK
40 ifeq ($(BUILD_K2H),1)
41         TARGET=k2h
42         CORE_SDK?=$(SDOMC_SHARED)/ti-processor-sdk-linux-k2hk-evm-$(CORESDK_VERSION)
43 else ifeq ($(BUILD_K2L),1)
44         TARGET=k2l
45         CORE_SDK?=$(SDOMC_SHARED)/ti-processor-sdk-linux-k2l-evm-$(CORESDK_VERSION)
46 else ifeq ($(BUILD_K2E),1)
47         TARGET=k2e
48         CORE_SDK?=$(SDOMC_SHARED)/ti-processor-sdk-linux-k2e-evm-$(CORESDK_VERSION)
49 else ifeq ($(BUILD_K2G),1)
50         TARGET=k2g
51         CORE_SDK?=$(SDOMC_SHARED)/ti-processor-sdk-linux-k2g-evm-$(CORESDK_VERSION)
52 else ifeq ($(BUILD_AM57),1)
53         TARGET=am57
54         CORE_SDK?=$(SDOMC_SHARED)/ti-processor-sdk-linux-am57xx-evm-$(CORESDK_VERSION)
55 else
56     ifeq ($(MAKECMDGOALS),clean)
57     else ifeq ($(MAKECMDGOALS),realclean)
58     else ifeq ($(MAKECMDGOALS),version)
59     else
60         $(error must specify one of: \
61             BUILD_AM57=1 \
62             BUILD_K2H=1 \
63             BUILD_K2L=1 \
64             BUILD_K2E=1)
65     endif
66 endif
68 ifeq (,$(findstring arm, $(UNAME_M)))
69     LINUX_DEVKIT_ROOT?=$(CORE_SDK)/linux-devkit/sysroots/armv7at2hf-neon-linux-gnueabi
70 else
71     LINUX_DEVKIT_ROOT?=/
72 endif
74 ifeq (,$(findstring arm, $(UNAME_M)))
75     ARM_GCC_DIR?=$(SDOMC_SHARED)/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf
76 endif