summaryrefslogtreecommitdiff
path: root/BoardConfig.mk
blob: 6fa83a152feabd7471c3632ffcad9cd39f527846 (plain)
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
#
# Copyright 2016 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Select the SoC
$(call set_soc, intel, baytrail)

# Select the kernel config
# This should be after the call to set_soc
$(call add_kernel_configs, $(realpath device/intel/minnowboard/minnowboard.kconf))

# Add wifi controller
$(call add_peripheral, intel, wifi/rtl8192cu)
# Add Broadcom USB BT controller
$(call add_peripheral, intel, bluetooth/btusbbcm)
# Add lights HAL
$(call add_peripheral, intel, light/mraa)
# Add audio support
$(call add_peripheral, intel, audio/generic/usb)
# Add sensor support
$(call add_peripheral, intel, sensors/mraa)
# Add framebuffer console support
$(call add_peripheral, intel, console/framebuffer)
# Add serial console support
$(call add_peripheral, intel, console/serial)
# Enable ADB-over-TCP on port 5555, started at boot
$(call enable_adb_over_tcp, 5555, true)
# Bootctrl HAL
$(call add_peripheral, intel, bootctrl)

BOARD_HAVE_BLUETOOTH_LINUX := true

# NOTE: These values must be kept in sync with BOARD_GPT_INI
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 268435456
BOARD_BOOTLOADER_PARTITION_SIZE := 20971520
BOARD_USERDATAIMAGE_PARTITION_SIZE := 536870912
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_FLASH_BLOCK_SIZE := 512
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false

# Specific sensors to be built into the sensors HAL
PLATFORM_SENSOR_LIST += MPU9150Accelerometer
PLATFORM_SENSOR_LIST += MMA7660Accelerometer
PLATFORM_SENSOR_LIST += LSM303dAccelerometer

TARGET_BOOTLOADER_BOARD_NAME := $(TARGET_DEVICE)

#
# KERNELFLINGER Configuration
#
TARGET_UEFI_ARCH := x86_64
# Kernelflinger won't check the ACPI table oem_id, oem_table_id and
# revision fields
KERNELFLINGER_ALLOW_UNSUPPORTED_ACPI_TABLE := true
# Allow Kernelflinger to start watchdog prior to boot the kernel
KERNELFLINGER_USE_WATCHDOG := true
# Tell Kernelflinger to use pre-generated graphics resources
KERNELFLINGER_GEN_GRAPHICS := false
# Specify system verity partition
PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/by-name/system

BOOTLOADER_USE_PREBUILT := $(shell echo $${BOOTLOADER_USE_PREBUILT:-true})

# Note: We use := here to force the policy directory to be added
# on the first pass for make and to thus get around a build system bug.
BOARD_SEPOLICY_DIRS := $(BOARD_SEPOLICY_DIRS) device/intel/minnowboard/sepolicy

vendor_partition_directory := vendor/bsp/intel/minnowboard

PRODUCT_COPY_FILES += \
    device/intel/minnowboard/flash_tools/brillo-flashall.sh:provision-device \
    device/intel/minnowboard/fstab:root/fstab.$(TARGET_DEVICE)

ifeq ($(BOOTLOADER_USE_PREBUILT),false)
PRODUCT_COPY_FILES += \
    $(vendor_partition_directory)/boot_binaries/gpt.bin:gpt.bin \
    $(vendor_partition_directory)/boot_binaries/oemvars.txt:oemvars.txt
endif

BRILLO_VENDOR_PARTITIONS := \
    $(vendor_partition_directory)/boot_binaries:bootloader \
    $(vendor_partition_directory)/boot_binaries:fastboot-usb.img \
    $(vendor_partition_directory)/boot_binaries:oemvars.txt \
    $(vendor_partition_directory)/boot_binaries:gpt.bin \
    $(vendor_partition_directory)/boot_binaries:README

# Must defined at the end of the file
$(call add_device_packages)