forked from DooMLoRD/android_device_sony_honami
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAndroid.mk
27 lines (22 loc) · 1.15 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
LOCAL_PATH := $(call my-dir)
include $(call first-makefiles-under,$(LOCAL_PATH))
$(shell mkdir -p $(TARGET_OUT_ETC)/firmware/wcd9306; \
ln -sf /data/misc/audio/wcd9320_anc.bin \
$(TARGET_OUT_ETC)/firmware/wcd9306/wcd9306_anc.bin; \
ln -sf /data/misc/audio/mbhc.bin \
$(TARGET_OUT_ETC)/firmware/wcd9306/wcd9306_mbhc.bin)
# Create firmware links
FIRMWARE_IMAGES := \
modem.b00 modem.b01 modem.b02 modem.b03 modem.b04 modem.b05 modem.b08 modem.b10 modem.mdt \
modem.b11 modem.b13 modem.b14 modem.b15 modem.b16 modem.b17 modem.b18 modem.b19 modem.b20 \
modem.b21 modem.b22 modem.b25 modem.b26 modem.b27 \
wcnss.b00 wcnss.b01 wcnss.b02 wcnss.b04 wcnss.b06 wcnss.b08 wcnss.b09 wcnss.mdt \
adsp.b00 adsp.b01 adsp.b02 adsp.b03 adsp.b04 adsp.b05 adsp.b06 adsp.b07 adsp.b08 \
adsp.b09 adsp.b10 adsp.b11 adsp.b12 adsp.mdt mba.b00 mba.mdt
FIRMWARE_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/,$(notdir $(FIRMWARE_IMAGES)))
$(FIRMWARE_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "Firmware link: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf /firmware/image/$(notdir $@) $@
ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_SYMLINKS)