You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PlatformConfig.mk 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # Copyright 2014 The Android Open Source Project
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. # Platform path
  15. PLATFORM_COMMON_PATH := device/sony/loire
  16. PRODUCT_PLATFORM_SOD := true
  17. TARGET_BOARD_PLATFORM := msm8952
  18. KERNEL_PATH := kernel/sony/msm-$(SOMC_KERNEL_VERSION)
  19. TARGET_ARCH := arm64
  20. TARGET_ARCH_VARIANT := armv8-a
  21. TARGET_CPU_ABI := arm64-v8a
  22. TARGET_CPU_ABI2 :=
  23. TARGET_CPU_VARIANT := cortex-a53
  24. TARGET_2ND_ARCH := arm
  25. TARGET_2ND_ARCH_VARIANT := armv8-a
  26. TARGET_2ND_CPU_ABI := armeabi-v7a
  27. TARGET_2ND_CPU_ABI2 := armeabi
  28. TARGET_2ND_CPU_VARIANT := cortex-a53.a57
  29. BOARD_KERNEL_BASE := 0x20000000
  30. BOARD_KERNEL_PAGESIZE := 4096
  31. BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
  32. BOARD_RAMDISK_OFFSET := 0x02000000
  33. BOARD_KERNEL_CMDLINE += androidboot.bootdevice=7824900.sdhci
  34. # Serial console
  35. #BOARD_KERNEL_CMDLINE += earlycon=msm_serial_dm,0x7af0000
  36. TARGET_RECOVERY_FSTAB ?= $(PLATFORM_COMMON_PATH)/rootdir/vendor/etc/fstab.loire
  37. # Wi-Fi definitions for Broadcom solution
  38. BOARD_WLAN_DEVICE := bcmdhd
  39. BOARD_WPA_SUPPLICANT_DRIVER := NL80211
  40. WPA_SUPPLICANT_VERSION := VER_0_8_X
  41. BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
  42. BOARD_HOSTAPD_DRIVER := NL80211
  43. BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
  44. # define firmware paths if not using brcmfmac driver
  45. ifneq ($(WIFI_DRIVER_BUILT),brcmfmac)
  46. WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
  47. WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin"
  48. WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin"
  49. endif
  50. # BT definitions for Broadcom solution
  51. BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(PLATFORM_COMMON_PATH)/bluetooth
  52. BOARD_HAVE_BLUETOOTH := true
  53. BOARD_HAVE_BLUETOOTH_BCM := true
  54. BOARD_CUSTOM_BT_CONFIG := $(PLATFORM_COMMON_PATH)/bluetooth/vnd_generic.txt
  55. # RIL
  56. TARGET_PER_MGR_ENABLED := true
  57. # NFC
  58. NXP_CHIP_FW_TYPE := PN547C2
  59. # SELinux
  60. BOARD_VENDOR_SEPOLICY_DIRS += $(PLATFORM_COMMON_PATH)/sepolicy_platform
  61. # Legacy Keymaster
  62. TARGET_LEGACY_KEYMASTER := true
  63. # Display
  64. TARGET_USES_GRALLOC1 := true
  65. # Cache partititon
  66. BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
  67. BOARD_VNDK_VERSION := current
  68. PRODUCT_SHIPPING_API_LEVEL := 26
  69. PRODUCT_USE_VNDK_OVERRIDE := true
  70. # Include vndk/vndk-sp/ll-ndk modules
  71. PRODUCT_PACKAGES += vndk_package
  72. # Platform uses separate vendor partition
  73. TARGET_COPY_OUT_VENDOR := vendor
  74. BOARD_VENDORIMAGE_PARTITION_SIZE := 419430400
  75. BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
  76. BOARD_VENDORIMAGE_JOURNAL_SIZE := 0
  77. BOARD_VENDORIMAGE_EXTFS_INODE_COUNT := 4096
  78. BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
  79. include device/sony/common/CommonConfig.mk