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