blob: 50b61da5b94926aecc1851d82e467f2995251ff2 [file] [log] [blame]
#
# 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)
# Add wifi controller
$(call add_peripheral, intel, wifi/rtl8192cu)
# 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 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)
# NOTE: These values must be kept in sync with BOARD_GPT_INI
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 268435456
BOARD_BOOTLOADER_PARTITION_SIZE := 62914560
BOARD_USERDATAIMAGE_PARTITION_SIZE := 134217728
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)
#
# USERFASTBOOT Configuration
#
TARGET_STAGE_USERFASTBOOT := true
TARGET_USE_USERFASTBOOT := true
USERFASTBOOT_NO_GUI := true
#
# 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})
BOOTLOADER_ADDITIONAL_DEPS += $(PRODUCT_OUT)/fastboot.img
BOOTLOADER_ADDITIONAL_ARGS += --fastboot $(PRODUCT_OUT)/fastboot.img
# 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) \
$(vendor_partition_directory)/boot_binaries/gpt.ini:gpt.ini \
$(vendor_partition_directory)/boot_binaries/oemvars.txt:oemvars.txt
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.ini \
$(vendor_partition_directory)/boot_binaries:README
# Must defined at the end of the file
$(call add_device_packages)