blob: 6eb029b9c7f31f93991ea5fdbaf3a7e8bb2c8ee8 [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
Zvikomborero VIncent Zvikaramba2ad1f802016-07-22 18:29:42 -040061#$(shell mkdir -p $(TARGET_OUT)/vendor/firmware/keymaster; \
62# ln -sf /firmware/image/keymaste.b00 \
63# $(TARGET_OUT)/vendor/firmware/keymaster/keymaster.b00; \
64# ln -sf /firmware/image/keymaste.b01 \
65# $(TARGET_OUT)/vendor/firmware/keymaster/keymaster.b01; \
66# ln -sf /firmware/image/keymaste.b02 \
67# $(TARGET_OUT)/vendor/firmware/keymaster/keymaster.b02; \
68# ln -sf /firmware/image/keymaste.b03 \
69# $(TARGET_OUT)/vendor/firmware/keymaster/keymaster.b03; \
70# ln -sf /firmware/image/keymaste.mdt \
71# $(TARGET_OUT)/vendor/firmware/keymaster/keymaster.mdt)
Zvikomborero VIncent Zvikarambac8bb8482016-07-22 00:43:20 -040072
Zvikomborero VIncent Zvikaramba036de6c2016-07-23 01:45:53 -040073#Create link for nfc configs
74$(shell mkdir -p $(TARGET_OUT)/etc/; \
75 ln -sf /etc/libnfc-sec-hal.conf \
76 $(TARGET_OUT)/etc/libnfc-brcm-hal.conf; \
77 ln -sf /etc/libnfc-sec.conf \
78 $(TARGET_OUT)/etc/libnfc-brcm.conf)
79
Zvikomborero VIncent Zvikarambac8bb8482016-07-22 00:43:20 -040080#Create link for wifi config
81$(shell mkdir -p $(TARGET_OUT)/etc/wifi; \
82 ln -sf /etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \
83 $(TARGET_OUT)/etc/wifi/WCNSS_qcom_cfg.ini)
84
85#Create links for camera and wlan modules
86$(shell mkdir -p $(TARGET_OUT)/lib/hw; \
87 ln -sf /system/lib/hw/camera.vendor.msm8916.so \
88 $(TARGET_OUT)/lib/hw/camera.msm8916.so)
Zvikomborero VIncent Zvikaramba59ed3882016-07-21 22:26:23 -040089
90$(shell mkdir -p $(TARGET_OUT)/lib/modules/pronto; \
91 ln -sf /system/lib/modules/pronto/pronto_wlan.ko \
92 $(TARGET_OUT)/lib/modules/wlan.ko)
93
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040094include $(CLEAR_VARS)
95
96endif