Unverified Commit 72868dd9 authored by Alexander Koskovich's avatar Alexander Koskovich
Browse files

common: Move TARGET_BOARD_PLATFORM check to common makefile.

 * We need the board platform for various makefiles we include
   and for kernel version guards, just require it outright in
   top level.

Change-Id: I1100b2c731e4d5cc8f522641b6ea60e83ec29908
parent 09e52842
......@@ -14,12 +14,7 @@
# Inherit from QSSI audio makefile.
include $(TOPDIR)vendor/qcom/opensource/commonsys/audio/configs/qssi/qssi.mk
ifneq ($(TARGET_BOARD_PLATFORM),)
-include $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/$(TARGET_BOARD_PLATFORM)/$(TARGET_BOARD_PLATFORM).mk
else
$(error "TARGET_BOARD_PLATFORM is not defined yet. Please define in your device Makefile if you wish to use this component")
endif
# Override proprietary definitions from SoC audio makefile.
AUDIO_FEATURE_ENABLED_AHAL_EXT := false
......
......@@ -14,6 +14,10 @@
DEVICE_PATH := device/qcom/common
ifeq ($(TARGET_BOARD_PLATFORM),)
$(error "TARGET_BOARD_PLATFORM is not defined yet, please define in your device makefile so it's accessible to QCOM common.")
endif
# List of QCOM targets.
MSMSTEPPE := sm6150
TRINKET := trinket
......
# Copyright (C) 2020 Paranoid Android
# Copyright (C) 2021 Paranoid Android
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
......@@ -12,11 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# Error if TARGET_BOARD_PLATFORM is not set because otherwise the modules with the board in the name cannot be built.
ifeq ($(TARGET_BOARD_PLATFORM),)
$(error "TARGET_BOARD_PLATFORM is not defined yet. Please define in your device Makefile if you wish to use this component")
endif
# Include display HAL makefiles.
-include hardware/qcom/display/config/display-board.mk
-include hardware/qcom/display/config/display-product.mk
......
# Copyright (C) 2020 Paranoid Android
# Copyright (C) 2021 Paranoid Android
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
......@@ -12,10 +12,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# Error if TARGET_BOARD_PLATFORM is not set because otherwise the modules with the board in the name cannot be built.
ifeq ($(TARGET_BOARD_PLATFORM),)
$(error "TARGET_BOARD_PLATFORM is not defined yet. Please define in your device Makefile if you wish to use this component")
endif
# Vibrator
$(call inherit-product, vendor/qcom/opensource/vibrator/vibrator-vendor-product.mk)
......@@ -12,11 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# Error if TARGET_BOARD_PLATFORM is not set because otherwise the modules with the board in the name cannot be built.
ifeq ($(TARGET_BOARD_PLATFORM),)
$(error "TARGET_BOARD_PLATFORM is not defined yet. Please define in your device Makefile if you wish to use this component")
endif
BOARD_WLAN_DEVICE := qcwcn
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment