blob: 723367aa911fd4518ab4187f99c8b2f88fccb9cd [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
bigbiff7df87472022-09-24 16:45:03 -04009LOCAL_CFLAGS := -Wno-unused-but-set-variable
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)