Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | ifeq ($(TARGET_DEVICE),gprimeltecan) |
| 4 | |
| 5 | include $(call all-subdir-makefiles,$(LOCAL_PATH)) |
| 6 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
| 7 | |
| 8 | include $(CLEAR_VARS) |
| 9 | |
Zvikomborero VIncent Zvikaramba | 64f9dce | 2016-07-22 17:03:42 -0400 | [diff] [blame] | 10 | # AiO /firmware |
| 11 | FIRMWARE_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 Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 33 | |
Zvikomborero VIncent Zvikaramba | 64f9dce | 2016-07-22 17:03:42 -0400 | [diff] [blame] | 34 | FIRMWARE_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 Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 40 | |
Zvikomborero VIncent Zvikaramba | 64f9dce | 2016-07-22 17:03:42 -0400 | [diff] [blame] | 41 | ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_SYMLINKS) |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 42 | |
Zvikomborero VIncent Zvikaramba | 64f9dce | 2016-07-22 17:03:42 -0400 | [diff] [blame] | 43 | # /firmware-modem |
| 44 | FIRMWARE_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 Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 50 | |
Zvikomborero VIncent Zvikaramba | 64f9dce | 2016-07-22 17:03:42 -0400 | [diff] [blame] | 51 | FIRMWARE_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 Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 57 | |
Zvikomborero VIncent Zvikaramba | 64f9dce | 2016-07-22 17:03:42 -0400 | [diff] [blame] | 58 | ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MODEM_SYMLINKS) |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 59 | |
Zvikomborero VIncent Zvikaramba | 59ed388 | 2016-07-21 22:26:23 -0400 | [diff] [blame] | 60 | # Create links for audcal data files |
| 61 | $(shell mkdir -p $(TARGET_OUT)/vendor/firmware/keymaster; \ |
Zvikomborero VIncent Zvikaramba | 64f9dce | 2016-07-22 17:03:42 -0400 | [diff] [blame] | 62 | ln -sf /firmware/image/keymaste.b00 \ |
Zvikomborero VIncent Zvikaramba | 59ed388 | 2016-07-21 22:26:23 -0400 | [diff] [blame] | 63 | $(TARGET_OUT)/vendor/firmware/keymaster/keymaster.b00; \ |
Zvikomborero VIncent Zvikaramba | 64f9dce | 2016-07-22 17:03:42 -0400 | [diff] [blame] | 64 | ln -sf /firmware/image/keymaste.b01 \ |
Zvikomborero VIncent Zvikaramba | 59ed388 | 2016-07-21 22:26:23 -0400 | [diff] [blame] | 65 | $(TARGET_OUT)/vendor/firmware/keymaster/keymaster.b01; \ |
Zvikomborero VIncent Zvikaramba | 64f9dce | 2016-07-22 17:03:42 -0400 | [diff] [blame] | 66 | ln -sf /firmware/image/keymaste.b02 \ |
Zvikomborero VIncent Zvikaramba | 59ed388 | 2016-07-21 22:26:23 -0400 | [diff] [blame] | 67 | $(TARGET_OUT)/vendor/firmware/keymaster/keymaster.b02; \ |
Zvikomborero VIncent Zvikaramba | 64f9dce | 2016-07-22 17:03:42 -0400 | [diff] [blame] | 68 | ln -sf /firmware/image/keymaste.b03 \ |
Zvikomborero VIncent Zvikaramba | 59ed388 | 2016-07-21 22:26:23 -0400 | [diff] [blame] | 69 | $(TARGET_OUT)/vendor/firmware/keymaster/keymaster.b03; \ |
Zvikomborero VIncent Zvikaramba | 64f9dce | 2016-07-22 17:03:42 -0400 | [diff] [blame] | 70 | ln -sf /firmware/image/keymaste.mdt \ |
Zvikomborero VIncent Zvikaramba | 59ed388 | 2016-07-21 22:26:23 -0400 | [diff] [blame] | 71 | $(TARGET_OUT)/vendor/firmware/keymaster/keymaster.mdt) |
Zvikomborero VIncent Zvikaramba | c8bb848 | 2016-07-22 00:43:20 -0400 | [diff] [blame] | 72 | |
| 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 Zvikaramba | 59ed388 | 2016-07-21 22:26:23 -0400 | [diff] [blame] | 82 | |
| 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 Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 87 | include $(CLEAR_VARS) |
| 88 | |
| 89 | endif |