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 # Select the SoC 18 $(call set_soc, intel, edison) 19 20 # Add wifi controller 21 $(call add_peripheral, intel, wifi/bcm43340) 22 # Add bt controller 23 $(call add_peripheral, intel, bluetooth/bcm43340) 24 # Add lights HAL 25 $(call add_peripheral, intel, light/mraa) 26 # Add audio support 27 $(call add_peripheral, intel, audio/generic/usb) 28 # Add sensor support 29 $(call add_peripheral, intel, sensors/mraa) 30 31 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 268435456 32 BOARD_USERDATAIMAGE_PARTITION_SIZE := 134217728 33 BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 34 BOARD_U_BOOT_ENV_SIZE := 0x10000 35 BOARD_GPT_INI := device/intel/edison/gpt.ini 36 37 # Specific sensors to be built into the sensors HAL 38 PLATFORM_SENSOR_LIST += GroveLight 39 PLATFORM_SENSOR_LIST += GroveTemperature 40 PLATFORM_SENSOR_LIST += MMA7660Accelerometer 41 PLATFORM_SENSOR_LIST += MPU9150Accelerometer 42 PLATFORM_SENSOR_LIST += LSM303dAccelerometer 43 PLATFORM_SENSOR_LIST += LSM303dOrientation 44 PLATFORM_SENSOR_LIST += ProximityGPIO 45 46 PRODUCT_COPY_FILES += \ 47 device/intel/edison/flash_tools/brillo-flashall-edison.sh:provision-device \ 48 device/intel/edison/fstab.device:root/fstab.${soc_name} 49 50 WIFI_DRIVER_NVRAM_PATH_PARAM := "/sys/module/bcm4334x/parameters/nvram_path" 51 WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcm4334x/parameters/firmware_path" 52 53 WIFI_DRIVER_NVRAM_PATH := "/vendor/firmware/bcm43340/bcmdhd.cal" 54 WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/bcm43340/fw_bcmdhd_sta.bin" 55 WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/bcm43340/fw_bcmdhd_apsta.bin" 56 WIFI_DRIVER_FW_PATH_P2P := "/vendor/firmware/bcm43340/fw_bcmdhd_p2p.bin" 57 58 BOARD_SEPOLICY_DIRS += \ 59 device/intel/edison/sepolicy 60 61 vendor_partition_directory := vendor/bsp/intel/edison 62 BRILLO_VENDOR_PARTITIONS := \ 63 $(vendor_partition_directory)/uboot_firmware:u-boot-edison.bin \ 64 $(vendor_partition_directory)/uboot_firmware:gpt.bin 65 66 # Must defined at the end of the file 67 $(call add_device_packages) 68