blob: 8ba37c6e38671e7d04894fd410b2441f75f404e9 [file] [log] [blame]
Vivekbalachandar Marisamy54014b32019-11-08 06:34:08 +00001LOCAL_PATH := $(call my-dir)
Vivekbalachandar M97769702020-02-12 15:52:43 +05302
3#----------------------------------------------------------------------
4# Compile Linux Kernel
5#----------------------------------------------------------------------
Karsten Tauschef1338502021-06-14 11:30:53 +02006ifeq ($(KERNEL_USE_PERF_CONFIG), false)
Vivekbalachandar M97769702020-02-12 15:52:43 +05307ifeq ($(KERNEL_DEFCONFIG),)
8 KERNEL_DEFCONFIG := fairphone_defconfig
9endif
10else
11ifeq ($(KERNEL_DEFCONFIG),)
12 KERNEL_DEFCONFIG := fairphone-perf_defconfig
13endif
14endif
15
16include kernel/msm8974/AndroidKernel.mk
17
18$(INSTALLED_KERNEL_TARGET): $(TARGET_PREBUILT_KERNEL) | $(ACP)
19 $(transform-prebuilt-to-target)
20
21#----------------------------------------------------------------------
22# Copy additional target-specific files
23#----------------------------------------------------------------------
Vivekbalachandar Marisamy54014b32019-11-08 06:34:08 +000024include $(CLEAR_VARS)
Vivekbalachandar M97769702020-02-12 15:52:43 +053025LOCAL_MODULE := vold.fstab
26LOCAL_MODULE_TAGS := optional
27LOCAL_MODULE_CLASS := ETC
28LOCAL_SRC_FILES := $(LOCAL_MODULE)
29include $(BUILD_PREBUILT)
30
31include $(CLEAR_VARS)
32LOCAL_MODULE := init.target.rc
33LOCAL_MODULE_TAGS := optional
34LOCAL_MODULE_CLASS := ETC
35LOCAL_SRC_FILES := $(LOCAL_MODULE)
36LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
37include $(BUILD_PREBUILT)
38
39include $(CLEAR_VARS)
40LOCAL_MODULE := gpio-keys.kl
41LOCAL_MODULE_TAGS := optional
42LOCAL_MODULE_CLASS := ETC
43LOCAL_SRC_FILES := configs/$(LOCAL_MODULE)
44LOCAL_MODULE_PATH := $(TARGET_OUT_KEYLAYOUT)
45include $(BUILD_PREBUILT)
46
47include $(CLEAR_VARS)
48LOCAL_MODULE := atmel_mxt_ts.kl
49LOCAL_MODULE_TAGS := optional
50LOCAL_MODULE_CLASS := ETC
51LOCAL_SRC_FILES := configs/$(LOCAL_MODULE)
52LOCAL_MODULE_PATH := $(TARGET_OUT_KEYLAYOUT)
53include $(BUILD_PREBUILT)
54
55include $(CLEAR_VARS)
56LOCAL_MODULE := synaptics_rmi4_i2c.kl
57LOCAL_MODULE_TAGS := optional
58LOCAL_MODULE_CLASS := ETC
59LOCAL_SRC_FILES := configs/$(LOCAL_MODULE)
60LOCAL_MODULE_PATH := $(TARGET_OUT_KEYLAYOUT)
61include $(BUILD_PREBUILT)
62
63include $(CLEAR_VARS)
64LOCAL_MODULE := fstab.qcom
65LOCAL_MODULE_TAGS := optional
66LOCAL_MODULE_CLASS := ETC
67LOCAL_SRC_FILES := $(LOCAL_MODULE)
68LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
69include $(BUILD_PREBUILT)
70
Arvind Singh469de6f2020-02-19 11:02:33 +053071ifeq ($(strip $(BOARD_HAS_ATH_WLAN_AR6004)),true)
72include $(CLEAR_VARS)
73LOCAL_MODULE := wpa_supplicant_ath6kl.conf
74LOCAL_MODULE_TAGS := optional
75LOCAL_MODULE_CLASS := ETC
76LOCAL_SRC_FILES := $(LOCAL_MODULE)
77LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/wifi
78include $(BUILD_PREBUILT)
79endif
80
81ifeq ($(strip $(BOARD_HAS_QCOM_WLAN)),true)
82#include $(CLEAR_VARS)
83#LOCAL_MODULE := wpa_supplicant_overlay.conf
84#LOCAL_MODULE_TAGS := optional
85#LOCAL_MODULE_CLASS := ETC
86#LOCAL_SRC_FILES := $(LOCAL_MODULE)
87#LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/wifi
88#include $(BUILD_PREBUILT)
89
90#include $(CLEAR_VARS)
91#LOCAL_MODULE := p2p_supplicant_overlay.conf
92#LOCAL_MODULE_TAGS := optional
93#LOCAL_MODULE_CLASS := ETC
94#LOCAL_SRC_FILES := $(LOCAL_MODULE)
95#LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/wifi
96#include $(BUILD_PREBUILT)
97
Arvind Singh469de6f2020-02-19 11:02:33 +053098#Create symbolic links
99$(shell mkdir -p $(TARGET_OUT_ETC)/firmware/wlan/prima; \
100 ln -sf /persist/WCNSS_qcom_wlan_nv.bin \
101 $(TARGET_OUT_ETC)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin; \
102 ln -sf /data/misc/wifi/WCNSS_qcom_cfg.ini \
103 $(TARGET_OUT_ETC)/firmware/wlan/prima/WCNSS_qcom_cfg.ini)
104
105endif
Franz-Xaver Geiger6ec2a522018-10-30 16:09:39 +0100106
107#----------------------------------------------------------------------
108# Radio image
109#----------------------------------------------------------------------
110ifeq ($(TARGET_ADD_RADIO_FILES), true)
111
112# These are called radio files for historical reasons; they may have nothing to do with the device
113# radio (if present). They are simply opaque blobs of data the build system copies into the target
114# device.
115
116radio_files = $(wildcard $(LOCAL_PATH)/radio/*)
117$(foreach f, $(radio_files), $(call add-radio-file,radio/$(notdir $(f))))
118endif
119
Vivekbalachandar M97769702020-02-12 15:52:43 +0530120#----------------------------------------------------------------------
121# extra images
122#----------------------------------------------------------------------
123ifeq (, $(wildcard vendor/qcom/build/tasks/generate_extra_images.mk))
124include device/qcom/common/generate_extra_images.mk
125endif
Vivekbalachandar Marisamy54014b32019-11-08 06:34:08 +0000126