Commit 1601428e3360cb6d7e19e9a354b18382c129a6a2
1 parent
48b5251849
Exists in
smarc-n7.1.2_2.0.0-ga
Add solo core 1GB DDR3 support
Showing 1 changed file with 1 additions and 1 deletions Inline Diff
smarc_mx6/BoardConfig.mk
1 | # | 1 | # |
2 | # Product-specific compile-time definitions. | 2 | # Product-specific compile-time definitions. |
3 | # | 3 | # |
4 | 4 | ||
5 | include device/fsl/imx6/soc/imx6dq.mk | 5 | include device/fsl/imx6/soc/imx6dq.mk |
6 | include device/embedian/smarc_mx6/build_id.mk | 6 | include device/embedian/smarc_mx6/build_id.mk |
7 | include device/fsl/imx6/BoardConfigCommon.mk | 7 | include device/fsl/imx6/BoardConfigCommon.mk |
8 | # sabresd_6dq default target for EXT4 | 8 | # sabresd_6dq default target for EXT4 |
9 | BUILD_TARGET_FS ?= ext4 | 9 | BUILD_TARGET_FS ?= ext4 |
10 | include device/fsl/imx6/imx6_target_fs.mk | 10 | include device/fsl/imx6/imx6_target_fs.mk |
11 | 11 | ||
12 | ADDITIONAL_BUILD_PROPERTIES += \ | 12 | ADDITIONAL_BUILD_PROPERTIES += \ |
13 | ro.internel.storage_size=/sys/block/bootdev_size | 13 | ro.internel.storage_size=/sys/block/bootdev_size |
14 | ifneq ($(BUILD_TARGET_FS),f2fs) | 14 | ifneq ($(BUILD_TARGET_FS),f2fs) |
15 | TARGET_RECOVERY_FSTAB = device/embedian/smarc_mx6/fstab.freescale | 15 | TARGET_RECOVERY_FSTAB = device/embedian/smarc_mx6/fstab.freescale |
16 | # build for ext4 | 16 | # build for ext4 |
17 | PRODUCT_COPY_FILES += \ | 17 | PRODUCT_COPY_FILES += \ |
18 | device/embedian/smarc_mx6/fstab.freescale:root/fstab.freescale | 18 | device/embedian/smarc_mx6/fstab.freescale:root/fstab.freescale |
19 | else | 19 | else |
20 | TARGET_RECOVERY_FSTAB = device/embedian/smarc_mx6/fstab-f2fs.freescale | 20 | TARGET_RECOVERY_FSTAB = device/embedian/smarc_mx6/fstab-f2fs.freescale |
21 | # build for f2fs | 21 | # build for f2fs |
22 | PRODUCT_COPY_FILES += \ | 22 | PRODUCT_COPY_FILES += \ |
23 | device/embedian/smarc_mx6/fstab-f2fs.freescale:root/fstab.freescale | 23 | device/embedian/smarc_mx6/fstab-f2fs.freescale:root/fstab.freescale |
24 | endif # BUILD_TARGET_FS | 24 | endif # BUILD_TARGET_FS |
25 | ADDITIONAL_BUILD_PROPERTIES += ro.frp.pst=/dev/block/by-name/presistdata | 25 | ADDITIONAL_BUILD_PROPERTIES += ro.frp.pst=/dev/block/by-name/presistdata |
26 | 26 | ||
27 | TARGET_BOOTLOADER_BOARD_NAME := smarc_ma6 | 27 | TARGET_BOOTLOADER_BOARD_NAME := smarc_ma6 |
28 | PRODUCT_MODEL := smarc_fimx6 | 28 | PRODUCT_MODEL := smarc_fimx6 |
29 | 29 | ||
30 | TARGET_BOOTLOADER_POSTFIX := imx | 30 | TARGET_BOOTLOADER_POSTFIX := imx |
31 | TARGET_DTB_POSTFIX := -dtb | 31 | TARGET_DTB_POSTFIX := -dtb |
32 | 32 | ||
33 | TARGET_RELEASETOOLS_EXTENSIONS := device/fsl/imx6 | 33 | TARGET_RELEASETOOLS_EXTENSIONS := device/fsl/imx6 |
34 | 34 | ||
35 | # TI WILINK WIFI | 35 | # TI WILINK WIFI |
36 | USES_TI_MAC80211 := true | 36 | USES_TI_MAC80211 := true |
37 | ifeq ($(USES_TI_MAC80211),true) | 37 | ifeq ($(USES_TI_MAC80211),true) |
38 | WPA_SUPPLICANT_VERSION := VER_0_8_X | 38 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
39 | 39 | ||
40 | BOARD_WLAN_DEVICE := wl12xx_mac80211 | 40 | BOARD_WLAN_DEVICE := wl12xx_mac80211 |
41 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 | 41 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
42 | BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_wl12xx | 42 | BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_wl12xx |
43 | 43 | ||
44 | BOARD_SOFTAP_DEVICE := wl12xx_mac80211 | 44 | BOARD_SOFTAP_DEVICE := wl12xx_mac80211 |
45 | BOARD_HOSTAPD_DRIVER := NL80211 | 45 | BOARD_HOSTAPD_DRIVER := NL80211 |
46 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_wl12xx | 46 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_wl12xx |
47 | endif | 47 | endif |
48 | 48 | ||
49 | USE_ATHR_GPS_HARDWARE := false | 49 | USE_ATHR_GPS_HARDWARE := false |
50 | USE_QEMU_GPS_HARDWARE := false | 50 | USE_QEMU_GPS_HARDWARE := false |
51 | 51 | ||
52 | #for accelerator sensor, need to define sensor type here | 52 | #for accelerator sensor, need to define sensor type here |
53 | BOARD_HAS_SENSOR := false | 53 | BOARD_HAS_SENSOR := false |
54 | SENSOR_MMA8451 := false | 54 | SENSOR_MMA8451 := false |
55 | 55 | ||
56 | # for recovery service | 56 | # for recovery service |
57 | TARGET_SELECT_KEY := 158 | 57 | TARGET_SELECT_KEY := 158 |
58 | 58 | ||
59 | # we don't support sparse image. | 59 | # we don't support sparse image. |
60 | TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false | 60 | TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false |
61 | DM_VERITY_RUNTIME_CONFIG := true | 61 | DM_VERITY_RUNTIME_CONFIG := true |
62 | # uncomment below lins if use NAND | 62 | # uncomment below lins if use NAND |
63 | #TARGET_USERIMAGES_USE_UBIFS = true | 63 | #TARGET_USERIMAGES_USE_UBIFS = true |
64 | 64 | ||
65 | 65 | ||
66 | ifeq ($(TARGET_USERIMAGES_USE_UBIFS),true) | 66 | ifeq ($(TARGET_USERIMAGES_USE_UBIFS),true) |
67 | UBI_ROOT_INI := device/embedian/smarc_mx6/ubi/ubinize.ini | 67 | UBI_ROOT_INI := device/embedian/smarc_mx6/ubi/ubinize.ini |
68 | TARGET_MKUBIFS_ARGS := -m 4096 -e 516096 -c 4096 -x none | 68 | TARGET_MKUBIFS_ARGS := -m 4096 -e 516096 -c 4096 -x none |
69 | TARGET_UBIRAW_ARGS := -m 4096 -p 512KiB $(UBI_ROOT_INI) | 69 | TARGET_UBIRAW_ARGS := -m 4096 -p 512KiB $(UBI_ROOT_INI) |
70 | endif | 70 | endif |
71 | 71 | ||
72 | ifeq ($(TARGET_USERIMAGES_USE_UBIFS),true) | 72 | ifeq ($(TARGET_USERIMAGES_USE_UBIFS),true) |
73 | ifeq ($(TARGET_USERIMAGES_USE_EXT4),true) | 73 | ifeq ($(TARGET_USERIMAGES_USE_EXT4),true) |
74 | $(error "TARGET_USERIMAGES_USE_UBIFS and TARGET_USERIMAGES_USE_EXT4 config open in same time, please only choose one target file system image") | 74 | $(error "TARGET_USERIMAGES_USE_UBIFS and TARGET_USERIMAGES_USE_EXT4 config open in same time, please only choose one target file system image") |
75 | endif | 75 | endif |
76 | endif | 76 | endif |
77 | 77 | ||
78 | BOARD_KERNEL_CMDLINE := console=ttymxc4,115200 init=/init video=mxcfb0:dev=ldb,if=RGB24,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=400M androidboot.console=ttymxc4 consoleblank=0 androidboot.hardware=freescale cma=448M androidboot.selinux=permissive androidboot.dm_verity=disabled | 78 | BOARD_KERNEL_CMDLINE := console=ttymxc4,115200 init=/init video=mxcfb0:dev=ldb,if=RGB24,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=400M androidboot.console=ttymxc4 consoleblank=0 androidboot.hardware=freescale cma=448M androidboot.selinux=permissive androidboot.dm_verity=disabled |
79 | 79 | ||
80 | ifeq ($(TARGET_USERIMAGES_USE_UBIFS),true) | 80 | ifeq ($(TARGET_USERIMAGES_USE_UBIFS),true) |
81 | #UBI boot command line. | 81 | #UBI boot command line. |
82 | # Note: this NAND partition table must align with MFGTool's config. | 82 | # Note: this NAND partition table must align with MFGTool's config. |
83 | BOARD_KERNEL_CMDLINE += mtdparts=gpmi-nand:16m(bootloader),16m(bootimg),128m(recovery),-(root) gpmi_debug_init ubi.mtd=3 | 83 | BOARD_KERNEL_CMDLINE += mtdparts=gpmi-nand:16m(bootloader),16m(bootimg),128m(recovery),-(root) gpmi_debug_init ubi.mtd=3 |
84 | endif | 84 | endif |
85 | 85 | ||
86 | # WL12xx/WL18xx BT | 86 | # WL12xx/WL18xx BT |
87 | BOARD_HAVE_BLUETOOTH_TI := true | 87 | BOARD_HAVE_BLUETOOTH_TI := true |
88 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/embedian/smarc_mx6/bluetooth | 88 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/embedian/smarc_mx6/bluetooth |
89 | 89 | ||
90 | USE_ION_ALLOCATOR := false | 90 | USE_ION_ALLOCATOR := false |
91 | USE_GPU_ALLOCATOR := true | 91 | USE_GPU_ALLOCATOR := true |
92 | 92 | ||
93 | # define frame buffer count | 93 | # define frame buffer count |
94 | NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 | 94 | NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 |
95 | 95 | ||
96 | PHONE_MODULE_INCLUDE := true | 96 | PHONE_MODULE_INCLUDE := true |
97 | # camera hal v3 | 97 | # camera hal v3 |
98 | IMX_CAMERA_HAL_V3 := true | 98 | IMX_CAMERA_HAL_V3 := true |
99 | 99 | ||
100 | 100 | ||
101 | #define consumer IR HAL support | 101 | #define consumer IR HAL support |
102 | IMX6_CONSUMER_IR_HAL := false | 102 | IMX6_CONSUMER_IR_HAL := false |
103 | 103 | ||
104 | TARGET_KERNEL_DEFCONF := smarcfimx6_android_defconfig | 104 | TARGET_KERNEL_DEFCONF := smarcfimx6_android_defconfig |
105 | 105 | ||
106 | TARGET_BOOTLOADER_CONFIG := smarcfimx6_quad_1g_ser3_android_defconfig smarcfimx6_quad_2g_ser3_android_defconfig smarcfimx6_dl_1g_ser3_android_defconfig smarcfimx6_solo_ser3_android_defconfig | 106 | TARGET_BOOTLOADER_CONFIG := smarcfimx6_quad_1g_ser3_android_defconfig smarcfimx6_quad_2g_ser3_android_defconfig smarcfimx6_dl_1g_ser3_android_defconfig smarcfimx6_solo_ser3_android_defconfig smarcfimx6_solo_1g_ser3_android_defconfig |
107 | TARGET_BOARD_DTS_CONFIG := smarcfimx6dq:imx6q-smarcfimx6.dtb smarcfimx6dl:imx6dl-smarcfimx6.dtb smarcfimx6dq-wvga:imx6q-smarcfimx6-wvga.dtb smarcfimx6dl-wvga:imx6dl-smarcfimx6-wvga.dtb smarcfimx6dq-xga:imx6q-smarcfimx6-xga.dtb smarcfimx6dl-xga:imx6dl-smarcfimx6-xga.dtb smarcfimx6dq-wxga:imx6q-smarcfimx6-wxga.dtb smarcfimx6dl-wxga:imx6dl-smarcfimx6-wxga.dtb smarcfimx6dq-1080p:imx6q-smarcfimx6-1080p.dtb smarcfimx6dl-1080p:imx6dl-smarcfimx6-1080p.dtb | 107 | TARGET_BOARD_DTS_CONFIG := smarcfimx6dq:imx6q-smarcfimx6.dtb smarcfimx6dl:imx6dl-smarcfimx6.dtb smarcfimx6dq-wvga:imx6q-smarcfimx6-wvga.dtb smarcfimx6dl-wvga:imx6dl-smarcfimx6-wvga.dtb smarcfimx6dq-xga:imx6q-smarcfimx6-xga.dtb smarcfimx6dl-xga:imx6dl-smarcfimx6-xga.dtb smarcfimx6dq-wxga:imx6q-smarcfimx6-wxga.dtb smarcfimx6dl-wxga:imx6dl-smarcfimx6-wxga.dtb smarcfimx6dq-1080p:imx6q-smarcfimx6-1080p.dtb smarcfimx6dl-1080p:imx6dl-smarcfimx6-1080p.dtb |
108 | 108 | ||
109 | BOARD_SEPOLICY_DIRS := \ | 109 | BOARD_SEPOLICY_DIRS := \ |
110 | device/fsl/imx6/sepolicy \ | 110 | device/fsl/imx6/sepolicy \ |
111 | device/embedian/imx6/sepolicy | 111 | device/embedian/imx6/sepolicy |
112 | # Support gpt | 112 | # Support gpt |
113 | BOARD_BPT_INPUT_FILES += device/embedian/common/partition/device-partitions.bpt | 113 | BOARD_BPT_INPUT_FILES += device/embedian/common/partition/device-partitions.bpt |
114 | 114 | ||
115 | BOARD_SECCOMP_POLICY += device/embedian/smarc_mx6/seccomp | 115 | BOARD_SECCOMP_POLICY += device/embedian/smarc_mx6/seccomp |
116 | 116 | ||
117 | TARGET_BOARD_KERNEL_HEADERS := device/fsl/common/kernel-headers | 117 | TARGET_BOARD_KERNEL_HEADERS := device/fsl/common/kernel-headers |
118 | 118 |