blob: 2875fd1b63640c374ce3d60f1068ec78e4640018 [file] [log] [blame]
Dees_Troy51a0e822012-09-05 15:24:24 -04001LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE := pigz
bigbiffd58ba182020-03-23 10:02:29 -04006LOCAL_MODULE_TAGS := optional
Dees_Troy51a0e822012-09-05 15:24:24 -04007LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
bigbiffad58e1b2020-07-06 20:24:34 -04008LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/bin
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 := \
bigbiffad58e1b2020-07-06 20:24:34 -040016 $(hide) mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/system/bin && \
17 ln -sf pigz $(TARGET_RECOVERY_ROOT_OUT)/system/bin/gunzip && \
18 ln -sf pigz $(TARGET_RECOVERY_ROOT_OUT)/system/bin/gzip && \
19 ln -sf pigz $(TARGET_RECOVERY_ROOT_OUT)/system/bin/unpigz
Matt Mowerc55b9a72016-08-24 02:11:32 -050020
Dees_Troy51a0e822012-09-05 15:24:24 -040021include $(BUILD_EXECUTABLE)