blob: 89f9635d798ea051585ae80e961b2d419b3d4632 [file] [log] [blame]
Dees_Troy51a0e822012-09-05 15:24:24 -04001LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE := pigz
Matt Mowerdb220442014-10-31 22:43:59 -05006LOCAL_MODULE_TAGS := eng optional
Dees_Troy51a0e822012-09-05 15:24:24 -04007LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
8LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
Matt Mowerdb220442014-10-31 22:43:59 -05009LOCAL_CFLAGS :=
Dees_Troy51a0e822012-09-05 15:24:24 -040010LOCAL_SRC_FILES = pigz.c yarn.c
11LOCAL_C_INCLUDES += $(LOCAL_PATH) \
12 external/zlib
13LOCAL_SHARED_LIBRARIES += libz libc
14
Matt Mowerc55b9a72016-08-24 02:11:32 -050015LOCAL_POST_INSTALL_CMD := \
16 $(hide) mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/sbin && \
17 ln -sf pigz $(TARGET_RECOVERY_ROOT_OUT)/sbin/gunzip && \
18 ln -sf pigz $(TARGET_RECOVERY_ROOT_OUT)/sbin/gzip && \
19 ln -sf pigz $(TARGET_RECOVERY_ROOT_OUT)/sbin/unpigz
20
Dees_Troy51a0e822012-09-05 15:24:24 -040021include $(BUILD_EXECUTABLE)