diff options
Diffstat (limited to 'build/core')
-rw-r--r-- | build/core/apicheck_msg_current.txt | 147 | ||||
-rw-r--r-- | build/core/clear_vars.mk | 4 | ||||
-rw-r--r-- | build/core/config.mk | 26 | ||||
-rw-r--r-- | build/core/definitions.mk | 12 | ||||
-rw-r--r-- | build/core/main.mk | 2 | ||||
-rw-r--r-- | build/core/main_version.mk | 19 | ||||
-rw-r--r-- | build/core/pathmap.mk | 29 | ||||
-rw-r--r-- | build/core/qcom_target.mk | 55 | ||||
-rw-r--r-- | build/core/sdllvm-lto-defs.mk | 34 | ||||
-rw-r--r-- | build/core/system_rro.mk | 28 | ||||
-rw-r--r-- | build/core/utils.mk | 203 | ||||
-rw-r--r-- | build/core/vendor/mtk_boards.mk | 5 | ||||
-rw-r--r-- | build/core/vendor/qcom_boards.mk | 54 |
13 files changed, 0 insertions, 618 deletions
diff --git a/build/core/apicheck_msg_current.txt b/build/core/apicheck_msg_current.txt deleted file mode 100644 index b02dd0a4..00000000 --- a/build/core/apicheck_msg_current.txt +++ /dev/null @@ -1,147 +0,0 @@ - -****************************** -You have tried to change the API from what has been previously approved. - -STOP. - Read this: - https://github.com/LineageOS/android_lineage-sdk/wiki/Creating-an-API-for-the-SDK#updating--verifying-the-api - -To make these errors go away, you have two choices: - 1) You can add "@hide" javadoc comments to the methods, etc. listed in the - errors above. - - 2) You can update current.txt (locally) by executing the following command: - make update-lineage-api - - ^^^^^^^^^^^^^^^^^^ - CONGRATS YOU EARNED A STINKEYE FROM CID! - - - . `` - `+++++ ;++++' - +++++++ ;++++++' - ++++++++, ++++++++ - +++++++++ :++++++++` - +++++++++ +++++++++` - ++++++++++ +++++++++ - +++++++++ ++++++++++ - +++++++++: +++++++++ - :+++++++++ ;+++++++++ - +++++++++` +++++++++, - ++++++++++ `+++++++++ - +++++++++ ++++++++++ - +++++++++; +++++++++ - ,+++++++++ '+++++++++ - +++++++++. +++++++++, - '+++++++++ .+++++++++ - +++++++++ +++++++++' - +++++++++' +++++++++ - .+++++++++ '+++++++++ - +++++++++, +++++++++. - ;+++++++++ ,+++++++++ - +++++++++ +++++++++; - ++++++++++ .,;;+++++++++++++++++++++++++++++++++;,,. +++++++++ - `+++++++++ ,;++++++++++++++++++++++++++++++++++++++++++++++++++++++++',` ++++++++++ - +++++++++, :++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++;. +++++++++` - ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++: - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - :+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++; - ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++` - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++` - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - `+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++. - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++. - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++. - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'. ,+++++++++++++++++++++++++++. - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' .++++++++++++++++++++++++. - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' `++++++++++++++++++++++. - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ;++++++++++++++++++++. - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' +++++++++++++++++++. - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++; ++++++++++++++++++. - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++; +++++++++++++++++. - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++. - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ;+++++++++++++++. - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++` +++++++++++++++. - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++. - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++. - ++++++++++++++++++ .,;+++++++++++++++++++++++++++++++++++++++++++++++++++++ .+++++++++++++. - ++++++++++++++++++ .,;++++++++++++++++++++++++++++++++++++++: +++++++++++++. - ++++++++++++++++++ .,+++++++++++++++++++++++++ +++++++++++++. - +++++++++++++++++. +++++++++++++++++++++++++ ,++++++++++++. - +++++++++++++++++ ;++++++++++++++++++++++++ ++++++++++++. - +++++++++++++++++ ,+++++++++++++++++++++++; ++++++++++++. - +++++++++++++++++ .+++++++++++++++++++++++, ++++++++++++. - +++++++++++++++++ .+++++++++++++++++++++++, ++++++++++++. - +++++++++++++++++ .+++++++++++++++++++++++, ++++++++++++. - +++++++++++++++++ :+++++++++++++++++++++++; ++++++++++++. - +++++++++++++++++` +++++++++++++++++++++++++ ++++++++++++. - +++++++++++++++++; +++++++++++++++++++++++++ ++++++++++++. - ++++++++++++++++++ +++++++++++++++++++++++++ ;++++++++++++. - ++++++++++++++++++ ,+++++++++++++++++++++++++ +++++++++++++. - ++++++++++++++++++: ++++++++++++++++++++++++++' +++++++++++++. - +++++++++++++++++++ +++++++++++++++++++++++++++ ;+++++++++++++. - +++++++++++++++++++, ++++++++++++++++++++++++++++, ++++++++++++++. - ++++++++++++++++++++ +++++++++++++++++++++++++++++ ;++++++++++++++. - ++++++++++++++++++++' ++++++++++++++++++++++++++++++' +++++++++++++++. - +++++++++++++++++++++, ++++++++++++++++++++++++++++++++ ++++++++++++++++. - ++++++++++++++++++++++ ;+++++++++++++++++++++++++++++++++ '++++++++++++++++. - +++++++++++++++++++++++ ;+++++++++++++++++++++++++++++++++++ :+++++++++++++++++. - ++++++++++++++++++++++++, '+++++++++++++++++++++++++++++++++++++ ;++++++++++++++++++. - +++++++++++++++++++++++++' ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++. - +++++++++++++++++++++++++++, '++++++++++++++++++++++++++++++++++++++++++' +++++++++++++++++++++. - +++++++++++++++++++++++++++++: '++++++++++++++++++++++++++++++++++++++++++++++, +++++++++++++++++++++++. - ++++++++++++++++++++++++++++++++;` .++++++++++++++++++++++++++++++++++++++++++++++++++++' ,+++++++++++++++++++++++++. - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++',..,;+++++++++++++++++++++++++++++. - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++. - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++. - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++. - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++` - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - .+++++++++++++++++++++++++++++++++++++++++++++++++++++++: .,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++: :+++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++, .++++++++++++++++++++++++++++++++++++++++++++++++++++++' - ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++, - .++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' - ,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - .++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++; - ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++` - :+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++` - ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++, - .;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++, - ,;+++++++++++++++++++++++++++++++++++++++++++++++++++++++:. - ..,;;+++++++++++++++++++++++++++++;:,. - - To submit the revised current.txt to the main LineageOS repository, - you will need approval. -****************************** diff --git a/build/core/clear_vars.mk b/build/core/clear_vars.mk deleted file mode 100644 index 1d8135cb..00000000 --- a/build/core/clear_vars.mk +++ /dev/null @@ -1,4 +0,0 @@ -# -# Lineage-specific variable clears -# -LOCAL_IGNORE_SUBDIR := diff --git a/build/core/config.mk b/build/core/config.mk deleted file mode 100644 index 3bf8e2c0..00000000 --- a/build/core/config.mk +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (C) 2015 The CyanogenMod Project -# (C) 2017-2018 The LineageOS 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. - -LINEAGE_SRC_API_DIR := $(TOPDIR)prebuilts/lineage-sdk/api -INTERNAL_LINEAGE_PLATFORM_API_FILE := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/lineage_public_api.txt -INTERNAL_LINEAGE_PLATFORM_REMOVED_API_FILE := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/lineage_removed.txt -FRAMEWORK_LINEAGE_PLATFORM_API_FILE := $(TOPDIR)lineage-sdk/api/lineage_current.txt -FRAMEWORK_LINEAGE_PLATFORM_REMOVED_API_FILE := $(TOPDIR)lineage-sdk/api/lineage_removed.txt -FRAMEWORK_LINEAGE_API_NEEDS_UPDATE_TEXT := $(TOPDIR)vendor/lineage/build/core/apicheck_msg_current.txt - -BUILD_RRO_SYSTEM_PACKAGE := $(TOPDIR)vendor/lineage/build/core/system_rro.mk - -# Rules for QCOM targets -include $(TOPDIR)vendor/lineage/build/core/qcom_target.mk diff --git a/build/core/definitions.mk b/build/core/definitions.mk deleted file mode 100644 index 82ed55d4..00000000 --- a/build/core/definitions.mk +++ /dev/null @@ -1,12 +0,0 @@ -# -# Lineage-specific macros -# -define uniq -$(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1))) -endef - -# Include board/platform macros -include vendor/lineage/build/core/utils.mk - -# Include vendor platform definitions -include vendor/lineage/build/core/vendor/*.mk diff --git a/build/core/main.mk b/build/core/main.mk deleted file mode 100644 index 0793b8a7..00000000 --- a/build/core/main.mk +++ /dev/null @@ -1,2 +0,0 @@ -# Include LineageOS versions -include $(TOPDIR)vendor/lineage/build/core/main_version.mk diff --git a/build/core/main_version.mk b/build/core/main_version.mk deleted file mode 100644 index 96213b08..00000000 --- a/build/core/main_version.mk +++ /dev/null @@ -1,19 +0,0 @@ -# LineageOS System Version -ADDITIONAL_BUILD_PROPERTIES += \ - ro.lineage.version=$(LINEAGE_VERSION) \ - ro.lineage.releasetype=$(LINEAGE_BUILDTYPE) \ - ro.lineage.build.version=$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR) \ - ro.modversion=$(LINEAGE_VERSION) \ - ro.lineagelegal.url=https://lineageos.org/legal - -# LineageOS Platform Display Version -ADDITIONAL_BUILD_PROPERTIES += \ - ro.lineage.display.version=$(LINEAGE_DISPLAY_VERSION) - -# LineageOS Platform SDK Version -ADDITIONAL_BUILD_PROPERTIES += \ - ro.lineage.build.version.plat.sdk=$(LINEAGE_PLATFORM_SDK_VERSION) - -# LineageOS Platform Internal Version -ADDITIONAL_BUILD_PROPERTIES += \ - ro.lineage.build.version.plat.rev=$(LINEAGE_PLATFORM_REV) diff --git a/build/core/pathmap.mk b/build/core/pathmap.mk deleted file mode 100644 index b02868e1..00000000 --- a/build/core/pathmap.mk +++ /dev/null @@ -1,29 +0,0 @@ -# Enter project path into pathmap -# -# $(1): name -# $(2): path -# -define project-set-path -$(eval pathmap_PROJ += $(1):$(2)) -endef - -# Enter variant project path into pathmap -# -# $(1): name -# $(2): variable to check -# $(3): base path -# -define project-set-path-variant - $(call project-set-path,$(1),$(strip \ - $(if $($(2)), \ - $(3)-$($(2)), \ - $(3)))) -endef - -# Returns the path to the requested module's include directory, -# relative to the root of the source tree. -# -# $(1): a list of modules (or other named entities) to find the projects for -define project-path-for -$(foreach n,$(1),$(patsubst $(n):%,%,$(filter $(n):%,$(pathmap_PROJ)))) -endef diff --git a/build/core/qcom_target.mk b/build/core/qcom_target.mk deleted file mode 100644 index 0e43f76f..00000000 --- a/build/core/qcom_target.mk +++ /dev/null @@ -1,55 +0,0 @@ -define wlan-set-path-variant -$(call project-set-path-variant,wlan,TARGET_WLAN_VARIANT,hardware/qcom/$(1)) -endef -define bt-vendor-set-path-variant -$(call project-set-path-variant,bt-vendor,TARGET_BT_VENDOR_VARIANT,hardware/qcom/$(1)) -endef - -# Set device-specific HALs into project pathmap -define set-device-specific-path -$(if $(USE_DEVICE_SPECIFIC_$(1)), \ - $(if $(DEVICE_SPECIFIC_$(1)_PATH), \ - $(eval path := $(DEVICE_SPECIFIC_$(1)_PATH)), \ - $(eval path := $(TARGET_DEVICE_DIR)/$(2))), \ - $(eval path := $(3))) \ -$(call project-set-path,qcom-$(2),$(strip $(path))) -endef - -ifeq ($(BOARD_USES_QCOM_HARDWARE),true) - -$(call set-device-specific-path,AUDIO,audio,hardware/qcom/audio-caf/$(QCOM_HARDWARE_VARIANT)) -$(call set-device-specific-path,DISPLAY,display,hardware/qcom/display-caf/$(QCOM_HARDWARE_VARIANT)) -$(call set-device-specific-path,MEDIA,media,hardware/qcom/media-caf/$(QCOM_HARDWARE_VARIANT)) - -$(call set-device-specific-path,CAMERA,camera,hardware/qcom/camera) -$(call set-device-specific-path,DATA_IPA_CFG_MGR,data-ipa-cfg-mgr,vendor/qcom/opensource/data-ipa-cfg-mgr) -$(call set-device-specific-path,GPS,gps,hardware/qcom/gps) -$(call set-device-specific-path,SENSORS,sensors,hardware/qcom/sensors) -$(call set-device-specific-path,LOC_API,loc-api,vendor/qcom/opensource/location) -$(call set-device-specific-path,DATASERVICES,dataservices,vendor/qcom/opensource/dataservices) -$(call set-device-specific-path,POWER,power,hardware/qcom/power) -$(call set-device-specific-path,THERMAL,thermal,hardware/qcom/thermal) -$(call set-device-specific-path,VR,vr,hardware/qcom/vr) - -$(call wlan-set-path-variant,wlan-caf) -$(call bt-vendor-set-path-variant,bt-caf) - -PRODUCT_CFI_INCLUDE_PATHS += \ - hardware/qcom/wlan-caf/qcwcn/wpa_supplicant_8_lib -else - -$(call project-set-path,qcom-audio,hardware/qcom/audio/default) -$(call project-set-path,qcom-display,hardware/qcom/display/$(TARGET_BOARD_PLATFORM)) -$(call project-set-path,qcom-media,hardware/qcom/media/$(TARGET_BOARD_PLATFORM)) - -$(call project-set-path,qcom-camera,hardware/qcom/camera) -$(call project-set-path,qcom-data-ipa-cfg-mgr,hardware/qcom/data/ipacfg-mgr) -$(call project-set-path,qcom-gps,hardware/qcom/gps) -$(call project-set-path,qcom-sensors,hardware/qcom/sensors) -$(call project-set-path,qcom-loc-api,vendor/qcom/opensource/location) -$(call project-set-path,qcom-dataservices,$(TARGET_DEVICE_DIR)/dataservices) - -$(call wlan-set-path-variant,wlan) -$(call bt-vendor-set-path-variant,bt) - -endif diff --git a/build/core/sdllvm-lto-defs.mk b/build/core/sdllvm-lto-defs.mk deleted file mode 100644 index 0d202bd9..00000000 --- a/build/core/sdllvm-lto-defs.mk +++ /dev/null @@ -1,34 +0,0 @@ -ifeq ($(LOCAL_MODULE_CLASS), STATIC_LIBRARIES) -# For STATIC_LIBRARIES we need to use SD LLVM's archiver and archiver flags. - -AR := $(SDCLANG_PATH)/llvm-ar - -ifeq ($(LOCAL_SDCLANG_2),true) -AR := $(SDCLANG_PATH_2)/llvm-ar -endif - -ARFLAGS := crsD - -# For 32 bit -$(LOCAL_BUILT_MODULE) : $(combo_2nd_arch_prefix)TARGET_AR := $(AR) -$(LOCAL_BUILT_MODULE) : $(combo_var_prefix)GLOBAL_ARFLAGS := $(ARFLAGS) - -# For 64 bit -intermediates := $(call local-intermediates-dir,,$(LOCAL_2ND_ARCH_VAR_PREFIX)) -LOCAL_BUILT_MODULE_64 := $(intermediates)/$(my_installed_module_stem) - -$(LOCAL_BUILT_MODULE_64) : TARGET_AR := $(AR) -$(LOCAL_BUILT_MODULE_64) : TARGET_GLOBAL_ARFLAGS := $(ARFLAGS) - -else -# For SHARED_LIBRARIES and EXECUTABLES we need to filter out flags not -# needed/understood by SD LLVM's Linker. - -FLAGS_TO_BE_FILTERED := -Wl,--icf=safe -Wl,--no-undefined-version -Wl,--fix-cortex-a53-843419 -fuse-ld=gold -linked_module_32 := $(intermediates)/LINKED/$(my_installed_module_stem) -intermediates := $(call local-intermediates-dir,,$(LOCAL_2ND_ARCH_VAR_PREFIX)) -linked_module_64 := $(intermediates)/LINKED/$(my_installed_module_stem) - -$(linked_module_32) : PRIVATE_TARGET_GLOBAL_LDFLAGS := $(filter-out $(FLAGS_TO_BE_FILTERED),$(PRIVATE_TARGET_GLOBAL_LDFLAGS)) -$(linked_module_64) : PRIVATE_TARGET_GLOBAL_LDFLAGS := $(filter-out $(FLAGS_TO_BE_FILTERED),$(PRIVATE_TARGET_GLOBAL_LDFLAGS)) -endif diff --git a/build/core/system_rro.mk b/build/core/system_rro.mk deleted file mode 100644 index 9b1257a9..00000000 --- a/build/core/system_rro.mk +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright (C) 2018 The LineageOS 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. - -LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true - -ifneq ($(LOCAL_SRC_FILES),) - $(error runtime resource overlay package should not contain sources) -endif - -ifeq ($(LOCAL_RRO_THEME),) - $(error runtime resource overlay package must define \'LOCAL_RRO_THEME\') -else - LOCAL_MODULE_PATH := $(TARGET_OUT)/app/$(LOCAL_RRO_THEME) -endif - -include $(BUILD_SYSTEM)/package.mk - diff --git a/build/core/utils.mk b/build/core/utils.mk deleted file mode 100644 index 23bd4c9b..00000000 --- a/build/core/utils.mk +++ /dev/null @@ -1,203 +0,0 @@ -# vars for use by utils -empty := -space := $(empty) $(empty) -colon := $(empty):$(empty) -underscore := $(empty)_$(empty) - -# $(call match-word,w1,w2) -# checks if w1 == w2 -# How it works -# if (w1-w2 not empty or w2-w1 not empty) then not_match else match -# -# returns true or empty -#$(warning :$(1): :$(2): :$(subst $(1),,$(2)):) \ -#$(warning :$(2): :$(1): :$(subst $(2),,$(1)):) \ -# -define match-word -$(strip \ - $(if $(or $(subst $(1),$(empty),$(2)),$(subst $(2),$(empty),$(1))),,true) \ -) -endef - -# $(call find-word-in-list,w,wlist) -# finds an exact match of word w in word list wlist -# -# How it works -# fill wlist spaces with colon -# wrap w with colon -# search word w in list wl, if found match m, return stripped word w -# -# returns stripped word or empty -define find-word-in-list -$(strip \ - $(eval wl:= $(colon)$(subst $(space),$(colon),$(strip $(2)))$(colon)) \ - $(eval w:= $(colon)$(strip $(1))$(colon)) \ - $(eval m:= $(findstring $(w),$(wl))) \ - $(if $(m),$(1),) \ -) -endef - -# $(call match-word-in-list,w,wlist) -# does an exact match of word w in word list wlist -# How it works -# if the input word is not empty -# return output of an exact match of word w in wordlist wlist -# else -# return empty -# returns true or empty -define match-word-in-list -$(strip \ - $(if $(strip $(1)), \ - $(call match-word,$(call find-word-in-list,$(1),$(2)),$(strip $(1))), \ - ) \ -) -endef - -# $(call match-prefix,p,delim,w/wlist) -# matches prefix p in wlist using delimiter delim -# -# How it works -# trim the words in wlist w -# if find-word-in-list returns not empty -# return true -# else -# return empty -# -define match-prefix -$(strip \ - $(eval w := $(strip $(1)$(strip $(2)))) \ - $(eval text := $(patsubst $(w)%,$(1),$(3))) \ - $(if $(call match-word-in-list,$(1),$(text)),true,) \ -) -endef - -# ---- -# The following utilities are meant for board platform specific -# featurisation - -ifndef get-vendor-board-platforms -# $(call get-vendor-board-platforms,v) -# returns list of board platforms for vendor v -define get-vendor-board-platforms -$(if $(call match-word,$(BOARD_USES_$(1)_HARDWARE),true),$($(1)_BOARD_PLATFORMS)) -endef -endif # get-vendor-board-platforms - -# $(call is-board-platform,bp) -# returns true or empty -define is-board-platform -$(call match-word,$(1),$(TARGET_BOARD_PLATFORM)) -endef - -# $(call is-not-board-platform,bp) -# returns true or empty -define is-not-board-platform -$(if $(call match-word,$(1),$(TARGET_BOARD_PLATFORM)),,true) -endef - -# $(call is-board-platform-in-list,bpl) -# returns true or empty -define is-board-platform-in-list -$(call match-word-in-list,$(TARGET_BOARD_PLATFORM),$(1)) -endef - -# $(call is-vendor-board-platform,vendor) -# returns true or empty -define is-vendor-board-platform -$(strip \ - $(call match-word-in-list,$(TARGET_BOARD_PLATFORM),\ - $(call get-vendor-board-platforms,$(1)) \ - ) \ -) -endef - -# $(call is-chipset-in-board-platform,chipset) -# does a prefix match of chipset in TARGET_BOARD_PLATFORM -# uses underscore as a delimiter -# -# returns true or empty -define is-chipset-in-board-platform -$(call match-prefix,$(1),$(underscore),$(TARGET_BOARD_PLATFORM)) -endef - -# $(call is-chipset-prefix-in-board-platform,prefix) -# does a chipset prefix match in TARGET_BOARD_PLATFORM -# assumes '_' and 'a' as the delimiter to the chipset prefix -# -# How it works -# if ($(prefix)_ or $(prefix)a match in board platform) -# return true -# else -# return empty -# -define is-chipset-prefix-in-board-platform -$(strip \ - $(eval delim_a := $(empty)a$(empty)) \ - $(if \ - $(or \ - $(call match-prefix,$(1),$(delim_a),$(TARGET_BOARD_PLATFORM)), \ - $(call match-prefix,$(1),$(underscore),$(TARGET_BOARD_PLATFORM)), \ - ), \ - true, \ - ) \ -) -endef - -#---- -# The following utilities are meant for Android Code Name -# specific featurisation -# -# refer http://source.android.com/source/build-numbers.html -# for code names and associated sdk versions -CUPCAKE_SDK_VERSIONS := 3 -DONUT_SDK_VERSIONS := 4 -ECLAIR_SDK_VERSIONS := 5 6 7 -FROYO_SDK_VERSIONS := 8 -GINGERBREAD_SDK_VERSIONS := 9 10 -HONEYCOMB_SDK_VERSIONS := 11 12 13 -ICECREAM_SANDWICH_SDK_VERSIONS := 14 15 -JELLY_BEAN_SDK_VERSIONS := 16 17 18 - -# $(call is-platform-sdk-version-at-least,version) -# version is a numeric SDK_VERSION defined above -define is-platform-sdk-version-at-least -$(strip \ - $(if $(filter 1,$(shell echo "$$(( $(PLATFORM_SDK_VERSION) >= $(1) ))" )), \ - true, \ - ) \ -) -endef - -# $(call is-android-codename,codename) -# codename is one of cupcake,donut,eclair,froyo,gingerbread,icecream -# please refer the $(codename)_SDK_VERSIONS declared above -define is-android-codename -$(strip \ - $(if \ - $(call match-word-in-list,$(PLATFORM_SDK_VERSION),$($(1)_SDK_VERSIONS)), \ - true, \ - ) \ -) -endef - -# $(call is-android-codename-in-list,cnlist) -# cnlist is combination/list of android codenames -define is-android-codename-in-list -$(strip \ - $(eval acn := $(empty)) \ - $(foreach \ - i,$(1),\ - $(eval acn += \ - $(if \ - $(call \ - match-word-in-list,\ - $(PLATFORM_SDK_VERSION),\ - $($(i)_SDK_VERSIONS)\ - ),\ - true,\ - )\ - )\ - ) \ - $(if $(strip $(acn)),true,) \ -) -endef diff --git a/build/core/vendor/mtk_boards.mk b/build/core/vendor/mtk_boards.mk deleted file mode 100644 index 48fd6605..00000000 --- a/build/core/vendor/mtk_boards.mk +++ /dev/null @@ -1,5 +0,0 @@ -# Board platforms lists to be used for -# TARGET_BOARD_PLATFORM specific featurization -MTK_BOARD_PLATFORMS := mt6592 -MTK_BOARD_PLATFORMS += mt6582 -MTK_BOARD_PLATFORMS += mt6572 diff --git a/build/core/vendor/qcom_boards.mk b/build/core/vendor/qcom_boards.mk deleted file mode 100644 index ed8f0898..00000000 --- a/build/core/vendor/qcom_boards.mk +++ /dev/null @@ -1,54 +0,0 @@ -# Board platforms lists to be used for -# TARGET_BOARD_PLATFORM specific featurization - -# Platform name variables - used in makefiles everywhere -MSMNILE := msmnile #SM8150 -MSMSTEPPE := sm6150 -TRINKET := trinket #SM6125 - -# A Family -QCOM_BOARD_PLATFORMS += msm7x27a -QCOM_BOARD_PLATFORMS += msm7x30 -QCOM_BOARD_PLATFORMS += msm8660 - -QCOM_BOARD_PLATFORMS += msm8960 - -# B Family -QCOM_BOARD_PLATFORMS += msm8226 -QCOM_BOARD_PLATFORMS += msm8610 -QCOM_BOARD_PLATFORMS += msm8974 - -QCOM_BOARD_PLATFORMS += apq8084 - -# B64 Family -QCOM_BOARD_PLATFORMS += msm8992 -QCOM_BOARD_PLATFORMS += msm8994 - -# BR Family -QCOM_BOARD_PLATFORMS += msm8909 -QCOM_BOARD_PLATFORMS += msm8916 - -QCOM_BOARD_PLATFORMS += msm8952 - -# UM Family -QCOM_BOARD_PLATFORMS += msm8937 -QCOM_BOARD_PLATFORMS += msm8953 -QCOM_BOARD_PLATFORMS += msm8996 - -QCOM_BOARD_PLATFORMS += msm8998 -QCOM_BOARD_PLATFORMS += sdm660 - -QCOM_BOARD_PLATFORMS += sdm710 -QCOM_BOARD_PLATFORMS += sdm845 - -QCOM_BOARD_PLATFORMS += $(TRINKET) -QCOM_BOARD_PLATFORMS += $(MSMSTEPPE) -QCOM_BOARD_PLATFORMS += $(MSMNILE) - -# MSM7000 Family -MSM7K_BOARD_PLATFORMS := msm7x30 -MSM7K_BOARD_PLATFORMS += msm7x27 -MSM7K_BOARD_PLATFORMS += msm7x27a -MSM7K_BOARD_PLATFORMS += msm7k - -QSD8K_BOARD_PLATFORMS := qsd8k |