blob: 645ef78d441be1052bda9954f594ff895b533ab2 [file] [log] [blame]
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -04001LOCAL_PATH := $(call my-dir)
2
3ifeq ($(TARGET_DEVICE),gprimeltecan)
4
5include $(call all-subdir-makefiles,$(LOCAL_PATH))
6include $(call all-makefiles-under,$(LOCAL_PATH))
7
8include $(CLEAR_VARS)
9
Zvikomborero VIncent Zvikaramba64f9dce2016-07-22 17:03:42 -040010# AiO /firmware
11FIRMWARE_IMAGES := \
12 cmnlib.b00 cmnlib.b01 cmnlib.b02 cmnlib.b03 cmnlib.mdt \
13 dmverity.b00 dmverity.b01 dmverity.b02 dmverity.b03 dmverity.mdt \
14 isdbtmm.b00 isdbtmm.b01 isdbtmm.b02 isdbtmm.b03 isdbtmm.mdt \
15 keymaste.b00 keymaste.b01 keymaste.b02 keymaste.b03 keymaste.mdt \
16 playread.b00 playread.b01 playread.b02 playread.b03 playread.mdt \
17 prov.b00 prov.b01 prov.b02 prov.b03 prov.mdt \
18 reactive.b00 reactive.b01 reactive.b02 reactive.b03 reactive.mdt \
19 sec_stor.b00 sec_stor.b01 sec_stor.b02 sec_stor.b03 sec_stor.mdt \
20 skm.b00 skm.b01 skm.b02 skm.b03 skm.mdt \
21 skmm_ta.b00 skmm_ta.b01 skmm_ta.b02 skmm_ta.b03 skmm_ta.mdt \
22 sshdcpap.b00 sshdcpap.b01 sshdcpap.b02 sshdcpap.b03 sshdcpap.mdt \
23 tbase.b00 tbase.b01 tbase.b02 tbase.b03 tbase.mdt \
24 tima_atn.b00 tima_atn.b01 tima_atn.b02 tima_atn.b03 tima_atn.mdt \
25 tima_key.b00 tima_key.b01 tima_key.b02 tima_key.b03 tima_key.mdt \
26 tima_lkm.b00 tima_lkm.b01 tima_lkm.b02 tima_lkm.b03 tima_lkm.mdt \
27 tima_pkm.b00 tima_pkm.b01 tima_pkm.b02 tima_pkm.b03 tima_pkm.mdt \
28 tz_ccm.b00 tz_ccm.b01 tz_ccm.b02 tz_ccm.b03 tz_ccm.mdt \
29 tz_otp.b00 tz_otp.b01 tz_otp.b02 tz_otp.b03 tz_otp.mdt \
30 venus.b00 venus.b01 venus.b02 venus.b03 venus.b04 venus.mdt \
31 wcnss.b00 wcnss.b01 wcnss.b02 wcnss.b04 wcnss.b06 wcnss.b09 wcnss.b10 wcnss.b11 wcnss.mdt \
32 widevine.b00 widevine.b01 widevine.b02 widevine.b03 widevine.mdt \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040033
Zvikomborero VIncent Zvikaramba64f9dce2016-07-22 17:03:42 -040034FIRMWARE_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/,$(notdir $(FIRMWARE_IMAGES)))
35$(FIRMWARE_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
36 @echo "Firmware link: $@"
37 @mkdir -p $(dir $@)
38 @rm -rf $@
39 $(hide) ln -sf /firmware/image/$(notdir $@) $@
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040040
Zvikomborero VIncent Zvikaramba64f9dce2016-07-22 17:03:42 -040041ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_SYMLINKS)
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040042
Zvikomborero VIncent Zvikaramba64f9dce2016-07-22 17:03:42 -040043# /firmware-modem
44FIRMWARE_MODEM_IMAGES := \
45 mba.mbn modem.b00 modem.b01 modem.b02 modem.b03 modem.b04 \
46 modem.b05 modem.b06 modem.b07 modem.b08 modem.b10 modem.b11 \
47 modem.b14 modem.b15 modem.b16 modem.b17 modem.b18 modem.b19 \
48 modem.b20 modem.b23 modem.b24 modem.b25 modem.b27 modem.b28 \
49 modem.mdt
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040050
Zvikomborero VIncent Zvikaramba64f9dce2016-07-22 17:03:42 -040051FIRMWARE_MODEM_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/,$(notdir $(FIRMWARE_MODEM_IMAGES)))
52$(FIRMWARE_MODEM_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
53 @echo "Firmware Modem link: $@"
54 @mkdir -p $(dir $@)
55 @rm -rf $@
56 $(hide) ln -sf /firmware-modem/image/$(notdir $@) $@
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040057
Zvikomborero VIncent Zvikaramba64f9dce2016-07-22 17:03:42 -040058ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MODEM_SYMLINKS)
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040059
Zvikomborero VIncent Zvikaramba59ed3882016-07-21 22:26:23 -040060# Create links for audcal data files
61$(shell mkdir -p $(TARGET_OUT)/vendor/firmware/keymaster; \
Zvikomborero VIncent Zvikaramba64f9dce2016-07-22 17:03:42 -040062 ln -sf /firmware/image/keymaste.b00 \
Zvikomborero VIncent Zvikaramba59ed3882016-07-21 22:26:23 -040063 $(TARGET_OUT)/vendor/firmware/keymaster/keymaster.b00; \
Zvikomborero VIncent Zvikaramba64f9dce2016-07-22 17:03:42 -040064 ln -sf /firmware/image/keymaste.b01 \
Zvikomborero VIncent Zvikaramba59ed3882016-07-21 22:26:23 -040065 $(TARGET_OUT)/vendor/firmware/keymaster/keymaster.b01; \
Zvikomborero VIncent Zvikaramba64f9dce2016-07-22 17:03:42 -040066 ln -sf /firmware/image/keymaste.b02 \
Zvikomborero VIncent Zvikaramba59ed3882016-07-21 22:26:23 -040067 $(TARGET_OUT)/vendor/firmware/keymaster/keymaster.b02; \
Zvikomborero VIncent Zvikaramba64f9dce2016-07-22 17:03:42 -040068 ln -sf /firmware/image/keymaste.b03 \
Zvikomborero VIncent Zvikaramba59ed3882016-07-21 22:26:23 -040069 $(TARGET_OUT)/vendor/firmware/keymaster/keymaster.b03; \
Zvikomborero VIncent Zvikaramba64f9dce2016-07-22 17:03:42 -040070 ln -sf /firmware/image/keymaste.mdt \
Zvikomborero VIncent Zvikaramba59ed3882016-07-21 22:26:23 -040071 $(TARGET_OUT)/vendor/firmware/keymaster/keymaster.mdt)
Zvikomborero VIncent Zvikarambac8bb8482016-07-22 00:43:20 -040072
73#Create link for wifi config
74$(shell mkdir -p $(TARGET_OUT)/etc/wifi; \
75 ln -sf /etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \
76 $(TARGET_OUT)/etc/wifi/WCNSS_qcom_cfg.ini)
77
78#Create links for camera and wlan modules
79$(shell mkdir -p $(TARGET_OUT)/lib/hw; \
80 ln -sf /system/lib/hw/camera.vendor.msm8916.so \
81 $(TARGET_OUT)/lib/hw/camera.msm8916.so)
Zvikomborero VIncent Zvikaramba59ed3882016-07-21 22:26:23 -040082
83$(shell mkdir -p $(TARGET_OUT)/lib/modules/pronto; \
84 ln -sf /system/lib/modules/pronto/pronto_wlan.ko \
85 $(TARGET_OUT)/lib/modules/wlan.ko)
86
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040087include $(CLEAR_VARS)
88
89endif