| # Copyright 2015 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. |
| # |
| |
| # TODO(leecam): Make this automatic. |
| LOCAL_PATH := hardware/bsp/freescale/soc/imx6ul |
| |
| # Arm32 device. |
| TARGET_ARCH := arm |
| TARGET_ARCH_VARIANT := armv7-a |
| TARGET_CPU_VARIANT := generic |
| TARGET_CPU_ABI := armeabi-v7a |
| TARGET_CPU_ABI2 := armeabi |
| TARGET_KERNEL_ARCH := $(TARGET_ARCH) |
| |
| TARGET_NO_BOOTLOADER := false |
| TARGET_NO_KERNEL := false |
| |
| TARGET_KERNEL_DTB := imx6ul-14x14-evk.dtb |
| BOARD_KERNEL_BASE := 0x82800000 |
| |
| BOARD_KERNEL_CMDLINE := console=ttymxc0,115200 init=/init androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale |
| |
| TARGET_USERIMAGES_USE_EXT4 := true |
| BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
| BOARD_FLASH_BLOCK_SIZE := 131072 |
| |
| PRODUCT_COPY_FILES += \ |
| $(LOCAL_PATH)/init.freescale.rc:root/init.freescale.rc \ |
| $(LOCAL_PATH)/init.freescale.usb.rc:root/init.freescale.usb.rc \ |
| $(LOCAL_PATH)/ueventd.freescale.rc:root/ueventd.freescale.rc \ |
| system/core/rootdir/init.usb.rc:root/init.usb.rc \ |
| system/core/rootdir/ueventd.rc:root/ueventd.rc \ |
| $(LOCAL_PATH)/../../peripheral/bootctl/tool/misc.img:misc.img \ |
| |
| BOARD_SEPOLICY_DIRS += $(LOCAL_PATH)/sepolicy |
| |
| # Set up the local kernel. |
| TARGET_KERNEL_SRC := hardware/bsp/kernel/freescale/picoimx-3.14 |
| TARGET_KERNEL_DEFCONFIG := imx_v7_android_defconfig |
| TARGET_KERNEL_CROSS_COMPILE_PREFIX := $(ANDROID_BUILD_TOP)/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi- |
| |
| # Lights HAL package. |
| DEVICE_PACKAGES += \ |
| lights.$(soc_name) |
| |
| # WiFi HAL package. |
| DEVICE_PACKAGES += \ |
| wifi_driver.$(soc_name) |