Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LOCAL_MODULE := pigz |
Matt Mower | db22044 | 2014-10-31 22:43:59 -0500 | [diff] [blame] | 6 | LOCAL_MODULE_TAGS := eng optional |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 7 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 8 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
Matt Mower | db22044 | 2014-10-31 22:43:59 -0500 | [diff] [blame] | 9 | LOCAL_CFLAGS := |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 10 | LOCAL_SRC_FILES = pigz.c yarn.c |
| 11 | LOCAL_C_INCLUDES += $(LOCAL_PATH) \ |
| 12 | external/zlib |
| 13 | LOCAL_SHARED_LIBRARIES += libz libc |
| 14 | |
| 15 | include $(BUILD_EXECUTABLE) |
| 16 | |
| 17 | PIGZ_TOOLS := unpigz |
| 18 | SYMLINKS := $(addprefix $(TARGET_RECOVERY_ROOT_OUT)/sbin/,$(PIGZ_TOOLS)) |
| 19 | $(SYMLINKS): PIGZ_BINARY := $(LOCAL_MODULE) |
| 20 | $(SYMLINKS): $(LOCAL_INSTALLED_MODULE) |
| 21 | @echo "Symlink: $@ -> $(PIGZ_BINARY)" |
| 22 | @mkdir -p $(dir $@) |
| 23 | @rm -rf $@ |
| 24 | $(hide) ln -sf $(PIGZ_BINARY) $@ |
| 25 | |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 26 | include $(CLEAR_VARS) |
| 27 | LOCAL_MODULE := unpigz_symlink |
| 28 | LOCAL_MODULE_TAGS := optional |
| 29 | LOCAL_ADDITIONAL_DEPENDENCIES := $(SYMLINKS) |
| 30 | include $(BUILD_PHONY_PACKAGE) |
| 31 | SYMLINKS := |