1#
2# Copyright (C) 2016 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# only locally defined variables can be used at this time
18
19my_variant := linux
20
21AUX_OS_$(my_variant)             := nanohub
22AUX_ARCH_$(my_variant)           := native
23AUX_SUBARCH_$(my_variant)        := native
24AUX_CPU_$(my_variant)            := x86
25
26# variant supports building OS bootloader, main OS image and application as targets
27# target should one of the following:
28#   "" (empty) -- applies to all (OS, BL, APP)
29#  _BL -- applies to OS bootloader target build only
30#  _OS -- applies to OS image target build only
31# _APP -- applies to application target build only
32#
33# the following variables may be defined in variant script for any target:
34# NANO_VARIANT<target>_CFLAGS_<variant>
35# NANO_VARIANT<target>_C_INCLUDES_<variant>
36# NANO_VARIANT<target>_STATIC_LIBRARIRES_<variant>
37# NANO_VARIANT<target>_WHOLE_STATIC_LIBRARIRES_<variant>
38#
39# the following may be defined for _OS and _BL only, to control
40# what additional source files need to be included in the build;
41# the file paths in this list are relative to the target (_OS or _BL) LOCAL_PATH;
42# NANO_VARIANT<target>_SRC_FILES_<variant>
43
44# 100K heap
45NANO_VARIANT_CFLAGS_$(my_variant)  := -DHEAP_SIZE=102400
46
47NANO_VARIANT_C_INCLUDES_$(my_variant) := device/google/contexthub/firmware/variant/linux/inc
48
49NANO_VARIANT_NO_BOOTLOADER_$(my_variant) := true
50