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 |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 6 | LOCAL_MODULE_TAGS := optional |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 7 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 8 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/bin |
bigbiff | 7df8747 | 2022-09-24 16:45:03 -0400 | [diff] [blame] | 9 | LOCAL_CFLAGS := -Wno-unused-but-set-variable |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 10 | LOCAL_SRC_FILES = pigz.c yarn.c |
| 11 | LOCAL_C_INCLUDES += $(LOCAL_PATH) \ |
| 12 | external/zlib |
| 13 | LOCAL_SHARED_LIBRARIES += libz libc |
| 14 | |
Matt Mower | c55b9a7 | 2016-08-24 02:11:32 -0500 | [diff] [blame] | 15 | LOCAL_POST_INSTALL_CMD := \ |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 16 | $(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 Mower | c55b9a7 | 2016-08-24 02:11:32 -0500 | [diff] [blame] | 20 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 21 | include $(BUILD_EXECUTABLE) |