No Description

Android.mk 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. #
  2. # Copyright 2017 The LineageOS Project
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. LOCAL_PATH := $(call my-dir)
  16. ifeq ($(TARGET_DEVICE),tulip)
  17. include $(call all-makefiles-under,$(LOCAL_PATH))
  18. include $(CLEAR_VARS)
  19. ADSP_IMAGES := \
  20. adsp.b00 adsp.b01 adsp.b02 adsp.b03 adsp.b04 adsp.b05 adsp.b06 adsp.b07 \
  21. adsp.b08 adsp.b09 adsp.b10 adsp.b11 adsp.b12 adsp.b13 adsp.b14 adsp.b15 \
  22. adsp.mdt adpver.cfg
  23. ADSP_SYMLINKS := $(addprefix $(TARGET_ROOT_OUT)/firmware/image/,$(notdir $(ADSP_IMAGES)))
  24. $(ADSP_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
  25. @echo "ADSP firmware link: $@"
  26. @mkdir -p $(dir $@)
  27. @rm -rf $@
  28. $(hide) ln -sf /firmware/adsp/$(notdir $@) $@
  29. ALL_DEFAULT_INSTALLED_MODULES += $(ADSP_SYMLINKS)
  30. KEYMASTER_IMAGES := \
  31. keymaste.b00 keymaste.b01 keymaste.b02 keymaste.b03 keymaste.mdt
  32. KEYMASTER_SYMLINKS := $(addprefix $(TARGET_ROOT_OUT)/firmware/image/,$(notdir $(KEYMASTER_IMAGES)))
  33. $(KEYMASTER_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
  34. @echo "Keymaster firmware link: $@"
  35. @mkdir -p $(dir $@)
  36. @rm -rf $@
  37. $(hide) ln -sf /etc/firmware/$(notdir $@) $@
  38. ALL_DEFAULT_INSTALLED_MODULES += $(KEYMASTER_SYMLINKS)
  39. MBA_IMAGES := \
  40. mba.b00 mba.b01 mba.b02 mba.b03 mba.b04 mba.b05 mba.mbn mba.mdt
  41. MBA_SYMLINKS := $(addprefix $(TARGET_ROOT_OUT)/firmware/image/,$(notdir $(MBA_IMAGES)))
  42. $(MBA_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
  43. @echo "MBA firmware link: $@"
  44. @mkdir -p $(dir $@)
  45. @rm -rf $@
  46. $(hide) ln -sf /firmware/radio/$(notdir $@) $@
  47. ALL_DEFAULT_INSTALLED_MODULES += $(MBA_SYMLINKS)
  48. MISC_IMAGES := \
  49. qdsp6m.qdb radiover.cfg version.cfg
  50. MISC_SYMLINKS := $(addprefix $(TARGET_ROOT_OUT)/firmware/image/,$(notdir $(MISC_IMAGES)))
  51. $(MISC_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
  52. @echo "Misc firmware link: $@"
  53. @mkdir -p $(dir $@)
  54. @rm -rf $@
  55. $(hide) ln -sf /firmware/radio/$(notdir $@) $@
  56. ALL_DEFAULT_INSTALLED_MODULES += $(MISC_SYMLINKS)
  57. MODEM_IMAGES := \
  58. modem.b00 modem.b01 modem.b02 modem.b04 modem.b05 modem.b06 \
  59. modem.b07 modem.b08 modem.b09 modem.b10 modem.b11 modem.b12 \
  60. modem.b13 modem.b16 modem.b17 modem.b18 modem.b19 modem.b20 \
  61. modem.mdt
  62. MODEM_SYMLINKS := $(addprefix $(TARGET_ROOT_OUT)/firmware/image/,$(notdir $(MODEM_IMAGES)))
  63. $(MODEM_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
  64. @echo "Modem firmware link: $@"
  65. @mkdir -p $(dir $@)
  66. @rm -rf $@
  67. $(hide) ln -sf /firmware/radio/$(notdir $@) $@
  68. ALL_DEFAULT_INSTALLED_MODULES += $(MODEM_SYMLINKS)
  69. WCNSS_IMAGES := \
  70. wcnss.b00 wcnss.b01 wcnss.b02 wcnss.b03 wcnss.b04 wcnss.b05 wcnss.b06 \
  71. wcnss.b07 wcnss.b08 wcnss.b09 wcnss.b10 wcnss.b11 wcnss.b12 wcnss.mdt \
  72. wcnssver.cfg
  73. WCNSS_SYMLINKS := $(addprefix $(TARGET_ROOT_OUT)/firmware/image/,$(notdir $(WCNSS_IMAGES)))
  74. $(WCNSS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
  75. @echo "WCNSS firmware link: $@"
  76. @mkdir -p $(dir $@)
  77. @rm -rf $@
  78. $(hide) ln -sf /firmware/wcnss/$(notdir $@) $@
  79. ALL_DEFAULT_INSTALLED_MODULES += $(WCNSS_SYMLINKS)
  80. RFS_ADSP_SYMLINKS := $(TARGET_OUT)/rfs/msm/adsp
  81. $(RFS_ADSP_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
  82. @mkdir -p $@/readonly
  83. $(hide) ln -sf /firmware $@/readonly/firmware
  84. $(hide) ln -sf /persist/hlos_rfs/shared $@/hlos
  85. $(hide) ln -sf /data/tombstones/lpass $@/ramdumps
  86. $(hide) ln -sf /persist/rfs/msm/adsp $@/readwrite
  87. $(hide) ln -sf /persist/rfs/shared $@/shared
  88. ALL_DEFAULT_INSTALLED_MODULES += $(RFS_ADSP_SYMLINKS)
  89. RFS_MPSS_SYMLINKS := $(TARGET_OUT)/rfs/msm/mpss
  90. $(RFS_MPSS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
  91. @mkdir -p $@/readonly
  92. $(hide) ln -sf /firmware $@/readonly/firmware
  93. $(hide) ln -sf /firmware/wsd $@/readonly/wsd
  94. $(hide) ln -sf /persist/hlos_rfs/shared $@/hlos
  95. $(hide) ln -sf /data/tombstones/modem $@/ramdumps
  96. $(hide) ln -sf /persist/rfs/msm/mpss $@/readwrite
  97. $(hide) ln -sf /persist/rfs/shared $@/shared
  98. ALL_DEFAULT_INSTALLED_MODULES += $(RFS_MPSS_SYMLINKS)
  99. WCNSS_CFG_SYMLINK := $(TARGET_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_cfg.ini
  100. $(WCNSS_CFG_SYMLINK): $(LOCAL_INSTALLED_MODULE)
  101. @mkdir -p $(dir $@)
  102. $(hide) ln -sf /data/misc/wifi/$(notdir $@) $@
  103. ALL_DEFAULT_INSTALLED_MODULES += $(WCNSS_CFG_SYMLINK)
  104. endif