• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright 2015 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
17LOCAL_PATH := hardware/bsp/intel/soc/edison
18
19# x86 device.
20TARGET_ARCH := x86
21TARGET_ARCH_VARIANT := silvermont
22TARGET_CPU_VARIANT :=
23TARGET_CPU_ABI :=  x86
24TARGET_CPU_ABI2 :=
25TARGET_KERNEL_ARCH := i386
26
27USE_CLANG_PLATFORM_BUILD := true
28
29# Disable building kernel and bootloader until we really support them.
30TARGET_NO_BOOTLOADER := false
31TARGET_NO_KERNEL := false
32
33# FIXME: Need to dynamically grab the serial number of the device from the hardware.
34BOARD_KERNEL_CMDLINE := console=ttyMFD2 earlyprintk=ttyMFD2,keep androidboot.hardware=edison androidboot.selinux=enforcing
35
36TARGET_USERIMAGES_USE_EXT4 := true
37BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
38BOARD_FLASH_BLOCK_SIZE := 131072
39
40PRODUCT_COPY_FILES += \
41  $(LOCAL_PATH)/init.edison.rc:root/init.edison.rc \
42  system/core/rootdir/init.usb.rc:root/init.usb.rc \
43  system/core/rootdir/ueventd.rc:root/ueventd.rc \
44  $(LOCAL_PATH)/ueventd.edison.rc:root/ueventd.edison.rc \
45
46BOARD_SEPOLICY_DIRS += \
47	$(LOCAL_PATH)/sepolicy \
48
49TARGET_KERNEL_SRC := hardware/bsp/kernel/intel/edison-3.10
50TARGET_KERNEL_DEFCONFIG := i386_brillo_edison_defconfig
51TARGET_KERNEL_CONFIGS := $(realpath $(LOCAL_PATH)/soc.kconf)
52
53TARGET_BOOTCTRL_HAL := intel
54
55# Bluetooth product packages.
56DEVICE_PACKAGES += \
57    bt_bcm
58
59DEVICE_PACKAGES += \
60    keystore.default
61
62# Boot control HAL package.
63DEVICE_PACKAGES += \
64    bootctrl.$(TARGET_DEVICE)
65
66# Lights HAL package.
67DEVICE_PACKAGES += \
68    lights.edison
69
70# Audio utilities. You may not need these for a product.
71DEVICE_PACKAGES += \
72    tinyplay tinypcminfo tinymix tinycap
73
74# Device partition table.
75DEVICE_PACKAGES += \
76    gpt.bin
77
78# Sensor HAL package.
79DEVICE_PACKAGES += \
80    sensors.edison
81