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