-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3d25a38
Showing
36 changed files
with
31,428 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# | ||
# This empty Android.mk file exists to prevent the build system from | ||
# automatically including any other Android.mk files under this directory. | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
#---------------------------------------------------------------------- | ||
# Compile (L)ittle (K)ernel bootloader and the nandwrite utility | ||
#---------------------------------------------------------------------- | ||
ifneq ($(strip $(TARGET_NO_BOOTLOADER)),true) | ||
|
||
# Compile | ||
include bootable/bootloader/edk2/AndroidBoot.mk | ||
|
||
$(INSTALLED_BOOTLOADER_MODULE): $(TARGET_EMMC_BOOTLOADER) | $(ACP) | ||
$(transform-prebuilt-to-target) | ||
$(BUILT_TARGET_FILES_PACKAGE): $(INSTALLED_BOOTLOADER_MODULE) | ||
|
||
droidcore: $(INSTALLED_BOOTLOADER_MODULE) | ||
endif | ||
|
||
#---------------------------------------------------------------------- | ||
# Compile Linux Kernel | ||
#---------------------------------------------------------------------- | ||
ifeq ($(KERNEL_DEFCONFIG),) | ||
ifeq ($(TARGET_BUILD_VARIANT),user) | ||
KERNEL_DEFCONFIG := vendor/sdm845-perf_defconfig | ||
else | ||
KERNEL_DEFCONFIG := vendor/sdm845_defconfig | ||
endif | ||
endif | ||
|
||
ifeq ($(TARGET_KERNEL_SOURCE),) | ||
TARGET_KERNEL_SOURCE := kernel | ||
endif | ||
|
||
DTC := $(HOST_OUT_EXECUTABLES)/dtc$(HOST_EXECUTABLE_SUFFIX) | ||
UFDT_APPLY_OVERLAY := $(HOST_OUT_EXECUTABLES)/ufdt_apply_overlay$(HOST_EXECUTABLE_SUFFIX) | ||
|
||
# ../../ prepended to paths because kernel is at ./kernel/msm-x.x | ||
TEMP_TOP=$(shell pwd) | ||
TARGET_KERNEL_MAKE_ENV := DTC_EXT=$(TEMP_TOP)/$(DTC) | ||
TARGET_KERNEL_MAKE_ENV += DTC_OVERLAY_TEST_EXT=$(TEMP_TOP)/$(UFDT_APPLY_OVERLAY) | ||
TARGET_KERNEL_MAKE_ENV += CONFIG_BUILD_ARM64_DT_OVERLAY=y | ||
TARGET_KERNEL_MAKE_ENV += HOSTCC=$(TEMP_TOP)/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-gcc | ||
TARGET_KERNEL_MAKE_ENV += HOSTAR=$(TEMP_TOP)/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-ar | ||
TARGET_KERNEL_MAKE_ENV += HOSTLD=$(TEMP_TOP)/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-ld | ||
TARGET_KERNEL_MAKE_ENV += HOSTCFLAGS="-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib -L/usr/lib/x86_64-linux-gnu" | ||
TARGET_KERNEL_MAKE_ENV += HOSTLDFLAGS="-L/usr/lib -L/usr/lib/x86_64-linux-gnu" | ||
|
||
include $(TARGET_KERNEL_SOURCE)/AndroidKernel.mk | ||
|
||
# Append or enable camx2.1 KMD driver | ||
ifneq ("$(wildcard $(QCPATH)/chi-cdk/vendor/camx-component.mk)","") | ||
include $(QCPATH)/chi-cdk/vendor/camx-component.mk | ||
ifeq ($(KERNEL_ARCH),arm64) | ||
ifeq ($(CAMX_COMPONENT_2.1), true) | ||
KERNEL_CONFIG_OVERRIDE := CONFIG_SPECTRA2_CAMERA=y | ||
KERNEL_CONFIG_OVERRIDE += CONFIG_SPECTRA2_CAMERA_DEBUG=y | ||
endif | ||
endif | ||
endif | ||
|
||
$(TARGET_PREBUILT_KERNEL): $(DTC) $(UFDT_APPLY_OVERLAY) | ||
|
||
$(INSTALLED_KERNEL_TARGET): $(TARGET_PREBUILT_KERNEL) | $(ACP) | ||
$(transform-prebuilt-to-target) | ||
|
||
#---------------------------------------------------------------------- | ||
# Copy additional target-specific files | ||
#---------------------------------------------------------------------- | ||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := vold.fstab | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_MODULE_CLASS := ETC | ||
LOCAL_SRC_FILES := $(LOCAL_MODULE) | ||
include $(BUILD_PREBUILT) | ||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := init.target.rc | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_MODULE_CLASS := ETC | ||
LOCAL_SRC_FILES := $(LOCAL_MODULE) | ||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw | ||
include $(BUILD_PREBUILT) | ||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := gpio-keys.kl | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_MODULE_CLASS := ETC | ||
LOCAL_SRC_FILES := $(LOCAL_MODULE) | ||
LOCAL_MODULE_PATH := $(TARGET_OUT_KEYLAYOUT) | ||
include $(BUILD_PREBUILT) | ||
|
||
ifeq ($(strip $(BOARD_DYNAMIC_PARTITION_ENABLE)),true) | ||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := fstab.qcom | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_MODULE_CLASS := ETC | ||
ifeq ($(ENABLE_AB), true) | ||
LOCAL_SRC_FILES := fstab_AB_dynamic_partition.qti | ||
else | ||
LOCAL_SRC_FILES := fstab_non_AB_dynamic_partition.qti | ||
endif | ||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC) | ||
include $(BUILD_PREBUILT) | ||
else | ||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := fstab.qcom | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_MODULE_CLASS := ETC | ||
ifeq ($(ENABLE_AB), true) | ||
LOCAL_SRC_FILES := fstab_AB_variant.qti | ||
else | ||
LOCAL_SRC_FILES := fstab_non_AB_variant.qti | ||
endif | ||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC) | ||
include $(BUILD_PREBUILT) | ||
endif | ||
|
||
#Create dsp directory | ||
$(shell mkdir -p $(TARGET_OUT_VENDOR)/lib/dsp) | ||
|
||
#---------------------------------------------------------------------- | ||
# Radio image | ||
#---------------------------------------------------------------------- | ||
ifeq ($(ADD_RADIO_FILES), true) | ||
radio_dir := $(LOCAL_PATH)/radio | ||
RADIO_FILES := $(shell cd $(radio_dir) ; ls) | ||
$(foreach f, $(RADIO_FILES), \ | ||
$(call add-radio-file,radio/$(f))) | ||
endif | ||
|
||
#---------------------------------------------------------------------- | ||
# wlan specific | ||
#---------------------------------------------------------------------- | ||
ifeq ($(strip $(BOARD_HAS_QCOM_WLAN)),true) | ||
include device/qcom/wlan/skunk/AndroidBoardWlan.mk | ||
endif | ||
|
||
#---------------------------------------------------------------------- | ||
# extra images | ||
#---------------------------------------------------------------------- | ||
#ifeq (, $(wildcard vendor/qcom/build/tasks/generate_extra_images.mk)) | ||
include device/qcom/common/generate_extra_images.mk | ||
#endif | ||
|
||
#---------------------------------------------------------------------- | ||
# override default make with prebuilt make path (if any) | ||
#---------------------------------------------------------------------- | ||
ifneq (, $(wildcard $(shell pwd)/prebuilts/build-tools/linux-x86/bin/make)) | ||
MAKE := $(shell pwd)/prebuilts/build-tools/linux-x86/bin/$(MAKE) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
PRODUCT_MAKEFILES := \ | ||
$(LOCAL_DIR)/sdm845.mk | ||
|
||
COMMON_LUNCH_CHOICES := \ | ||
sdm845-userdebug |
Oops, something went wrong.