blob: a5bf85317d2bcaf76d372a0e40621ee254ef4df5 [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
10# 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 \
33
34FIRMWARE_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 $@) $@
40
41ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_SYMLINKS)
42
43# /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
50
51FIRMWARE_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 $@) $@
57
58ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MODEM_SYMLINKS)
59
Zvikomborero VIncent Zvikaramba59ed3882016-07-21 22:26:23 -040060# Create links for audcal data files
61$(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)
72
73$(shell mkdir -p $(TARGET_OUT)/lib/modules/pronto; \
74 ln -sf /system/lib/modules/pronto/pronto_wlan.ko \
75 $(TARGET_OUT)/lib/modules/wlan.ko)
76
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040077include $(CLEAR_VARS)
78
79endif