diff options
Diffstat (limited to 'pigz/Android.mk')
-rw-r--r-- | pigz/Android.mk | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pigz/Android.mk b/pigz/Android.mk new file mode 100644 index 000000000..9b9313da8 --- /dev/null +++ b/pigz/Android.mk @@ -0,0 +1,31 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_MODULE := pigz +LOCAL_MODULE_TAGS := eng optional +LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES +LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin +LOCAL_CFLAGS := +LOCAL_SRC_FILES = pigz.c yarn.c +LOCAL_C_INCLUDES += $(LOCAL_PATH) \ + external/zlib +LOCAL_SHARED_LIBRARIES += libz libc + +include $(BUILD_EXECUTABLE) + +PIGZ_TOOLS := unpigz +SYMLINKS := $(addprefix $(TARGET_RECOVERY_ROOT_OUT)/sbin/,$(PIGZ_TOOLS)) +$(SYMLINKS): PIGZ_BINARY := $(LOCAL_MODULE) +$(SYMLINKS): $(LOCAL_INSTALLED_MODULE) + @echo "Symlink: $@ -> $(PIGZ_BINARY)" + @mkdir -p $(dir $@) + @rm -rf $@ + $(hide) ln -sf $(PIGZ_BINARY) $@ + +include $(CLEAR_VARS) +LOCAL_MODULE := unpigz_symlink +LOCAL_MODULE_TAGS := optional +LOCAL_ADDITIONAL_DEPENDENCIES := $(SYMLINKS) +include $(BUILD_PHONY_PACKAGE) +SYMLINKS := |