Commit b22ddec542a16930cea22c02403ea0fed0fca19a

Authored by Eric Lee
1 parent 02f55036e5

Fix the name typo

Showing 1 changed file with 1 additions and 1 deletions Inline Diff

imx8m/smarc_mx8mq/BoardConfig.mk
1 # 1 #
2 # SoC-specific compile-time definitions. 2 # SoC-specific compile-time definitions.
3 # 3 #
4 4
5 BOARD_SOC_TYPE := IMX8MQ 5 BOARD_SOC_TYPE := IMX8MQ
6 BOARD_TYPE := SMARC-IMX8MQ 6 BOARD_TYPE := SMARC-IMX8MQ
7 BOARD_HAVE_VPU := true 7 BOARD_HAVE_VPU := true
8 BOARD_VPU_TYPE := hantro 8 BOARD_VPU_TYPE := hantro
9 HAVE_FSL_IMX_GPU2D := false 9 HAVE_FSL_IMX_GPU2D := false
10 HAVE_FSL_IMX_GPU3D := true 10 HAVE_FSL_IMX_GPU3D := true
11 HAVE_FSL_IMX_IPU := false 11 HAVE_FSL_IMX_IPU := false
12 HAVE_FSL_IMX_PXP := false 12 HAVE_FSL_IMX_PXP := false
13 BOARD_KERNEL_BASE := 0x40400000 13 BOARD_KERNEL_BASE := 0x40400000
14 TARGET_GRALLOC_VERSION := v3 14 TARGET_GRALLOC_VERSION := v3
15 TARGET_HIGH_PERFORMANCE := true 15 TARGET_HIGH_PERFORMANCE := true
16 TARGET_USES_HWC2 := true 16 TARGET_USES_HWC2 := true
17 TARGET_HWCOMPOSER_VERSION := v2.0 17 TARGET_HWCOMPOSER_VERSION := v2.0
18 USE_OPENGL_RENDERER := true 18 USE_OPENGL_RENDERER := true
19 TARGET_HAVE_VULKAN := true 19 TARGET_HAVE_VULKAN := true
20 ENABLE_CFI=false 20 ENABLE_CFI=false
21 21
22 SOONG_CONFIG_IMXPLUGIN += \ 22 SOONG_CONFIG_IMXPLUGIN += \
23 BOARD_HAVE_VPU \ 23 BOARD_HAVE_VPU \
24 BOARD_VPU_TYPE 24 BOARD_VPU_TYPE
25 25
26 SOONG_CONFIG_IMXPLUGIN_BOARD_SOC_TYPE = IMX8MQ 26 SOONG_CONFIG_IMXPLUGIN_BOARD_SOC_TYPE = IMX8MQ
27 SOONG_CONFIG_IMXPLUGIN_BOARD_HAVE_VPU = true 27 SOONG_CONFIG_IMXPLUGIN_BOARD_HAVE_VPU = true
28 SOONG_CONFIG_IMXPLUGIN_BOARD_VPU_TYPE = hantro 28 SOONG_CONFIG_IMXPLUGIN_BOARD_VPU_TYPE = hantro
29 SOONG_CONFIG_IMXPLUGIN_BOARD_VPU_ONLY = false 29 SOONG_CONFIG_IMXPLUGIN_BOARD_VPU_ONLY = false
30 30
31 # 31 #
32 # Product-specific compile-time definitions. 32 # Product-specific compile-time definitions.
33 # 33 #
34 34
35 IMX_DEVICE_PATH := device/embedian/imx8m/smarc_mx8mq 35 IMX_DEVICE_PATH := device/embedian/imx8m/smarc_mx8mq
36 36
37 include device/fsl/imx8m/BoardConfigCommon.mk 37 include device/fsl/imx8m/BoardConfigCommon.mk
38 38
39 BUILD_TARGET_FS ?= ext4 39 BUILD_TARGET_FS ?= ext4
40 TARGET_USERIMAGES_USE_EXT4 := true 40 TARGET_USERIMAGES_USE_EXT4 := true
41 41
42 TARGET_RECOVERY_FSTAB = $(IMX_DEVICE_PATH)/fstab.freescale 42 TARGET_RECOVERY_FSTAB = $(IMX_DEVICE_PATH)/fstab.freescale
43 43
44 # Support gpt 44 # Support gpt
45 ifeq ($(TARGET_USE_DYNAMIC_PARTITIONS),true) 45 ifeq ($(TARGET_USE_DYNAMIC_PARTITIONS),true)
46 BOARD_BPT_INPUT_FILES += device/fsl/common/partition/device-partitions-13GB-ab_super.bpt 46 BOARD_BPT_INPUT_FILES += device/fsl/common/partition/device-partitions-13GB-ab_super.bpt
47 ADDITION_BPT_PARTITION = partition-table-28GB:device/fsl/common/partition/device-partitions-28GB-ab_super.bpt \ 47 ADDITION_BPT_PARTITION = partition-table-28GB:device/fsl/common/partition/device-partitions-28GB-ab_super.bpt \
48 partition-table-dual:device/fsl/common/partition/device-partitions-13GB-ab-dual-bootloader_super.bpt \ 48 partition-table-dual:device/fsl/common/partition/device-partitions-13GB-ab-dual-bootloader_super.bpt \
49 partition-table-28GB-dual:device/fsl/common/partition/device-partitions-28GB-ab-dual-bootloader_super.bpt 49 partition-table-28GB-dual:device/fsl/common/partition/device-partitions-28GB-ab-dual-bootloader_super.bpt
50 else 50 else
51 ifeq ($(IMX_NO_PRODUCT_PARTITION),true) 51 ifeq ($(IMX_NO_PRODUCT_PARTITION),true)
52 BOARD_BPT_INPUT_FILES += device/fsl/common/partition/device-partitions-13GB-ab-no-product.bpt 52 BOARD_BPT_INPUT_FILES += device/fsl/common/partition/device-partitions-13GB-ab-no-product.bpt
53 ADDITION_BPT_PARTITION = partition-table-28GB:device/fsl/common/partition/device-partitions-28GB-ab-no-product.bpt \ 53 ADDITION_BPT_PARTITION = partition-table-28GB:device/fsl/common/partition/device-partitions-28GB-ab-no-product.bpt \
54 partition-table-dual:device/fsl/common/partition/device-partitions-13GB-ab-dual-bootloader-no-product.bpt \ 54 partition-table-dual:device/fsl/common/partition/device-partitions-13GB-ab-dual-bootloader-no-product.bpt \
55 partition-table-28GB-dual:device/fsl/common/partition/device-partitions-28GB-ab-dual-bootloader-no-product.bpt 55 partition-table-28GB-dual:device/fsl/common/partition/device-partitions-28GB-ab-dual-bootloader-no-product.bpt
56 else 56 else
57 BOARD_BPT_INPUT_FILES += device/fsl/common/partition/device-partitions-13GB-ab.bpt 57 BOARD_BPT_INPUT_FILES += device/fsl/common/partition/device-partitions-13GB-ab.bpt
58 ADDITION_BPT_PARTITION = partition-table-28GB:device/fsl/common/partition/device-partitions-28GB-ab.bpt \ 58 ADDITION_BPT_PARTITION = partition-table-28GB:device/fsl/common/partition/device-partitions-28GB-ab.bpt \
59 partition-table-dual:device/fsl/common/partition/device-partitions-13GB-ab-dual-bootloader.bpt \ 59 partition-table-dual:device/fsl/common/partition/device-partitions-13GB-ab-dual-bootloader.bpt \
60 partition-table-28GB-dual:device/fsl/common/partition/device-partitions-28GB-ab-dual-bootloader.bpt 60 partition-table-28GB-dual:device/fsl/common/partition/device-partitions-28GB-ab-dual-bootloader.bpt
61 endif 61 endif
62 endif 62 endif
63 63
64 # Vendor Interface manifest and compatibility 64 # Vendor Interface manifest and compatibility
65 DEVICE_MANIFEST_FILE := $(IMX_DEVICE_PATH)/manifest.xml 65 DEVICE_MANIFEST_FILE := $(IMX_DEVICE_PATH)/manifest.xml
66 DEVICE_MATRIX_FILE := $(IMX_DEVICE_PATH)/compatibility_matrix.xml 66 DEVICE_MATRIX_FILE := $(IMX_DEVICE_PATH)/compatibility_matrix.xml
67 67
68 TARGET_BOOTLOADER_BOARD_NAME := SMARC 68 TARGET_BOOTLOADER_BOARD_NAME := SMARC
69 69
70 USE_OPENGL_RENDERER := true 70 USE_OPENGL_RENDERER := true
71 71
72 BOARD_WLAN_DEVICE := nxp 72 BOARD_WLAN_DEVICE := nxp
73 WPA_SUPPLICANT_VERSION := VER_0_8_X 73 WPA_SUPPLICANT_VERSION := VER_0_8_X
74 BOARD_WPA_SUPPLICANT_DRIVER := NL80211 74 BOARD_WPA_SUPPLICANT_DRIVER := NL80211
75 BOARD_HOSTAPD_DRIVER := NL80211 75 BOARD_HOSTAPD_DRIVER := NL80211
76 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) 76 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
77 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) 77 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
78 78
79 WIFI_HIDL_FEATURE_DUAL_INTERFACE := true 79 WIFI_HIDL_FEATURE_DUAL_INTERFACE := true
80 80
81 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(IMX_DEVICE_PATH)/bluetooth 81 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(IMX_DEVICE_PATH)/bluetooth
82 82
83 # NXP 8997 BT 83 # NXP 8997 BT
84 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(IMX_DEVICE_PATH)/bluetooth 84 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(IMX_DEVICE_PATH)/bluetooth
85 BOARD_CUSTOM_BT_CONFIG := $(BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR)/vnd_config.txt 85 BOARD_CUSTOM_BT_CONFIG := $(BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR)/vnd_config.txt
86 BOARD_HAVE_BLUETOOTH_NXP := true 86 BOARD_HAVE_BLUETOOTH_NXP := true
87 87
88 BOARD_USE_SENSOR_FUSION := true 88 BOARD_USE_SENSOR_FUSION := true
89 89
90 # we don't support sparse image. 90 # we don't support sparse image.
91 TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false 91 TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
92 92
93 BOARD_HAVE_USB_CAMERA := true 93 BOARD_HAVE_USB_CAMERA := true
94 BOARD_HAVE_USB_MJPEG_CAMERA := false 94 BOARD_HAVE_USB_MJPEG_CAMERA := false
95 95
96 USE_ION_ALLOCATOR := true 96 USE_ION_ALLOCATOR := true
97 USE_GPU_ALLOCATOR := false 97 USE_GPU_ALLOCATOR := false
98 98
99 BOARD_AVB_ENABLE := true 99 BOARD_AVB_ENABLE := true
100 TARGET_USES_MKE2FS := true 100 TARGET_USES_MKE2FS := true
101 BOARD_AVB_ALGORITHM := SHA256_RSA4096 101 BOARD_AVB_ALGORITHM := SHA256_RSA4096
102 # The testkey_rsa4096.pem is copied from external/avb/test/data/testkey_rsa4096.pem 102 # The testkey_rsa4096.pem is copied from external/avb/test/data/testkey_rsa4096.pem
103 BOARD_AVB_KEY_PATH := device/fsl/common/security/testkey_rsa4096.pem 103 BOARD_AVB_KEY_PATH := device/fsl/common/security/testkey_rsa4096.pem
104 104
105 # define frame buffer count 105 # define frame buffer count
106 NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 106 NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
107 107
108 ifeq ($(PRODUCT_IMX_DRM),true) 108 ifeq ($(PRODUCT_IMX_DRM),true)
109 CMASIZE=736M 109 CMASIZE=736M
110 else 110 else
111 CMASIZE=1280M 111 CMASIZE=1280M
112 endif 112 endif
113 113
114 # NXP default config 114 # NXP default config
115 BOARD_KERNEL_CMDLINE := console=ttymxc0,115200 earlycon=imxuart,0x30880000,115200 init=/init androidboot.console=ttymxc0 androidboot.hardware=freescale firmware_class.path=/vendor/firmware loop.max_part=7 115 BOARD_KERNEL_CMDLINE := console=ttymxc0,115200 earlycon=imxuart,0x30880000,115200 init=/init androidboot.console=ttymxc0 androidboot.hardware=freescale firmware_class.path=/vendor/firmware loop.max_part=7
116 116
117 # framebuffer config 117 # framebuffer config
118 BOARD_KERNEL_CMDLINE += androidboot.fbTileSupport=enable 118 BOARD_KERNEL_CMDLINE += androidboot.fbTileSupport=enable
119 119
120 # memory config 120 # memory config
121 BOARD_KERNEL_CMDLINE += transparent_hugepage=never cma=$(CMASIZE) 121 BOARD_KERNEL_CMDLINE += transparent_hugepage=never cma=$(CMASIZE)
122 122
123 # display config 123 # display config
124 BOARD_KERNEL_CMDLINE += androidboot.lcd_density=240 androidboot.primary_display=imx-dcss androidboot.gui_resolution=1080p 124 BOARD_KERNEL_CMDLINE += androidboot.lcd_density=240 androidboot.primary_display=imx-dcss androidboot.gui_resolution=1080p
125 125
126 # wifi config 126 # wifi config
127 BOARD_KERNEL_CMDLINE += androidboot.wificountrycode=CN 127 BOARD_KERNEL_CMDLINE += androidboot.wificountrycode=CN
128 128
129 ifeq ($(TARGET_USERIMAGES_USE_UBIFS),true) 129 ifeq ($(TARGET_USERIMAGES_USE_UBIFS),true)
130 ifeq ($(TARGET_USERIMAGES_USE_EXT4),true) 130 ifeq ($(TARGET_USERIMAGES_USE_EXT4),true)
131 $(error "TARGET_USERIMAGES_USE_UBIFS and TARGET_USERIMAGES_USE_EXT4 config open in same time, please only choose one target file system image") 131 $(error "TARGET_USERIMAGES_USE_UBIFS and TARGET_USERIMAGES_USE_EXT4 config open in same time, please only choose one target file system image")
132 endif 132 endif
133 endif 133 endif
134 134
135 BOARD_PREBUILT_DTBOIMAGE := out/target/product/smarc_mx8mq/dtbo-smarcimx8mq-hdmi.img 135 BOARD_PREBUILT_DTBOIMAGE := out/target/product/smarc_mx8mq/dtbo-imx8mq-smarc-hdmi.img
136 136
137 TARGET_BOARD_DTS_CONFIG := \ 137 TARGET_BOARD_DTS_CONFIG := \
138 imx8mq-smarc-dcss-lvds:imx8mq-smarc-dcss-lvds.dtb \ 138 imx8mq-smarc-dcss-lvds:imx8mq-smarc-dcss-lvds.dtb \
139 imx8mq-smarc-dp:imx8mq-smarc-dp.dtb \ 139 imx8mq-smarc-dp:imx8mq-smarc-dp.dtb \
140 imx8mq-smarc:imx8mq-smarc.dtb \ 140 imx8mq-smarc:imx8mq-smarc.dtb \
141 imx8mq-smarc-dual-display:imx8mq-smarc-dual-display.dtb \ 141 imx8mq-smarc-dual-display:imx8mq-smarc-dual-display.dtb \
142 imx8mq-smarc-hdmi:imx8mq-smarc-hdmi.dtb \ 142 imx8mq-smarc-hdmi:imx8mq-smarc-hdmi.dtb \
143 imx8mq-smarc-lcdif-lvds:imx8mq-smarc-lcdif-lvds.dtb 143 imx8mq-smarc-lcdif-lvds:imx8mq-smarc-lcdif-lvds.dtb
144 144
145 BOARD_SEPOLICY_DIRS := \ 145 BOARD_SEPOLICY_DIRS := \
146 device/fsl/imx8m/sepolicy \ 146 device/fsl/imx8m/sepolicy \
147 $(IMX_DEVICE_PATH)/sepolicy 147 $(IMX_DEVICE_PATH)/sepolicy
148 148
149 ifeq ($(PRODUCT_IMX_DRM),true) 149 ifeq ($(PRODUCT_IMX_DRM),true)
150 BOARD_SEPOLICY_DIRS += \ 150 BOARD_SEPOLICY_DIRS += \
151 $(IMX_DEVICE_PATH)/sepolicy_drm 151 $(IMX_DEVICE_PATH)/sepolicy_drm
152 endif 152 endif
153 153
154 TARGET_BOARD_KERNEL_HEADERS := device/fsl/common/kernel-headers 154 TARGET_BOARD_KERNEL_HEADERS := device/fsl/common/kernel-headers
155 155
156 ALL_DEFAULT_INSTALLED_MODULES += $(BOARD_VENDOR_KERNEL_MODULES) 156 ALL_DEFAULT_INSTALLED_MODULES += $(BOARD_VENDOR_KERNEL_MODULES)
157 157
158 BOARD_USES_METADATA_PARTITION := true 158 BOARD_USES_METADATA_PARTITION := true
159 BOARD_ROOT_EXTRA_FOLDERS += metadata 159 BOARD_ROOT_EXTRA_FOLDERS += metadata
160 160
161 PRODUCT_COPY_FILES += \ 161 PRODUCT_COPY_FILES += \
162 $(IMX_DEVICE_PATH)/init.recovery.freescale.rc:root/init.recovery.freescale.rc 162 $(IMX_DEVICE_PATH)/init.recovery.freescale.rc:root/init.recovery.freescale.rc
163 163