# Copyright (C) 2012 The CyanogenMod 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. BOARD_VENDOR := samsung # Platform TARGET_BOARD_PLATFORM := msm8974 TARGET_BOARD_PLATFORM_GPU := qcom-adreno330 # inherit from qcom-common -include device/samsung/qcom-common/BoardConfigCommon.mk # Architecture TARGET_CPU_SMP := true TARGET_GLOBAL_CFLAGS += -mfpu=neon-vfpv4 -mfloat-abi=softfp TARGET_GLOBAL_CPPFLAGS += -mfpu=neon-vfpv4 -mfloat-abi=softfp TARGET_CPU_VARIANT := krait # Wifi related defines WIFI_BAND := 802_11_ABG WPA_SUPPLICANT_VERSION := VER_0_8_X BOARD_WPA_SUPPLICANT_DRIVER := NL80211 BOARD_HOSTAPD_DRIVER := NL80211 BOARD_HAVE_SAMSUNG_WIFI := true ifeq ($(TARGET_MSM8974_COMMON_WLAN_VARIANT),prima) BOARD_WLAN_DEVICE := qcwcn BOARD_HAS_QCOM_WLAN := true TARGET_USES_WCNSS_CTRL := true WIFI_DRIVER_FW_PATH_STA := "sta" WIFI_DRIVER_FW_PATH_AP := "ap" else BOARD_WLAN_DEVICE := bcmdhd WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/wifi/bcmdhd_sta.bin nvram_path=/system/etc/wifi/nvram_net.txt" WIFI_DRIVER_MODULE_AP_ARG := "firmware_path=/system/etc/wifi/bcmdhd_apsta.bin nvram_path=/system/etc/wifi/nvram_net.txt" WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/dhd/parameters/firmware_path" WIFI_DRIVER_FW_PATH_STA := "/system/etc/wifi/bcmdhd_sta.bin" WIFI_DRIVER_FW_PATH_AP := "/system/etc/wifi/bcmdhd_apsta.bin" endif BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) # Bluetooth BOARD_HAVE_BLUETOOTH := true ifeq ($(TARGET_MSM8974_COMMON_WLAN_VARIANT),prima) BOARD_HAVE_BLUETOOTH_QCOM := true else BOARD_HAVE_BLUETOOTH_BCM := true endif # NFC BOARD_HAVE_NFC := true # Vold BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true BOARD_VOLD_MAX_PARTITIONS := 28 TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/msm_hsusb/gadget/lun%d/file # Camera TARGET_PROVIDES_CAMERA_HAL := true USE_DEVICE_SPECIFIC_CAMERA := true COMMON_GLOBAL_CFLAGS += -DSAMSUNG_CAMERA_HARDWARE # Workaround to avoid issues with legacy liblights on QCOM platforms TARGET_PROVIDES_LIBLIGHT := true # Audio BOARD_HAVE_SAMSUNG_AUDIO := true BOARD_USES_ALSA_AUDIO := true BOARD_USES_FLUENCE_INCALL := true BOARD_USES_FLUENCE_FOR_VOIP := true BOARD_USES_SEPERATED_AUDIO_INPUT := true TARGET_USES_QCOM_COMPRESSED_AUDIO := true # QCOM support BOARD_USES_QCOM_HARDWARE := true TARGET_QCOM_MEDIA_VARIANT := caf-new TARGET_QCOM_DISPLAY_VARIANT := caf-new BOARD_USES_LEGACY_ALSA_AUDIO := TARGET_QCOM_AUDIO_VARIANT := caf TARGET_USES_QCOM_BSP := true TARGET_ENABLE_QC_AV_ENHANCEMENTS := true # Use retire fence from MDP driver TARGET_DISPLAY_USE_RETIRE_FENCE := true # SELinux BOARD_SEPOLICY_DIRS += \ device/samsung/msm8974-common/sepolicy BOARD_SEPOLICY_UNION += \ file_contexts \ app.te \ bluetooth.te \ device.te \ domain.te \ drmserver.te \ file.te \ hci_init.te \ healthd.te \ init.te \ init_shell.te \ keystore.te \ kickstart.te \ mediaserver.te \ nfc.te \ rild.te \ surfaceflinger.te \ system.te \ ueventd.te \ wpa.te \ wpa_socket.te