forked from djnoxd-p990/android_device_lge_p990
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Android.mk
26 lines (23 loc) · 814 Bytes
/
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
ifeq ($(TARGET_BOOTLOADER_BOARD_NAME),p990)
include $(call first-makefiles-under,$(call my-dir))
endif
ifneq ($(filter p990 p999, $(TARGET_BOOTLOADER_BOARD_NAME)),)
include $(call first-makefiles-under,$(call my-dir))
## Do not let gapps packages install this. It uses a lot of room,
## move it to data and symlink it
include $(CLEAR_VARS)
LOCAL_MODULE := srec-en
LOCAL_MODULE_CLASS := FAKE
LOCAL_MODULE_TAGS := optional
include $(BUILD_SYSTEM)/base_rules.mk
$(LOCAL_BUILT_MODULE): TARGET := /cache/srec/
$(LOCAL_BUILT_MODULE): SYMLINK := $(TARGET_OUT)/usr/srec/en-US
$(LOCAL_BUILT_MODULE):
$(hide) echo "Symlink: $(SYMLINK) -> $(TARGET)"
$(hide) mkdir -p $(dir $@)
$(hide) mkdir -p $(dir $(SYMLINK))
$(hide) rm -rf $@
$(hide) rm -rf $(SYMLINK)
$(hide) ln -sf $(TARGET) $(SYMLINK)
$(hide) touch $@
endif