recovery: Add lz4 libs if available
* Required by transparent compresssion in make_ext4fs. Change-Id: I566c9e1281cc0dd725e96db32da0a1c3c000030e
This commit is contained in:
@@ -112,6 +112,9 @@ ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
|
||||
LOCAL_CFLAGS += -DUSE_EXT4
|
||||
LOCAL_C_INCLUDES += system/extras/ext4_utils
|
||||
LOCAL_SHARED_LIBRARIES += libext4_utils
|
||||
ifneq ($(wildcard external/lz4/Android.mk),)
|
||||
LOCAL_STATIC_LIBRARIES += liblz4-static
|
||||
endif
|
||||
endif
|
||||
ifneq ($(wildcard external/libselinux/Android.mk),)
|
||||
TWHAVE_SELINUX := true
|
||||
@@ -129,6 +132,9 @@ ifeq ($(TWHAVE_SELINUX), true)
|
||||
LOCAL_CFLAGS += -DUSE_EXT4
|
||||
LOCAL_C_INCLUDES += system/extras/ext4_utils
|
||||
LOCAL_SHARED_LIBRARIES += libext4_utils
|
||||
ifneq ($(wildcard external/lz4/Android.mk),)
|
||||
LOCAL_STATIC_LIBRARIES += liblz4-static
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
@@ -38,6 +38,9 @@ LOCAL_STATIC_LIBRARIES = \
|
||||
libsparse_static \
|
||||
libz
|
||||
endif
|
||||
ifneq ($(wildcard external/lz4/Android.mk),)
|
||||
LOCAL_STATIC_LIBRARIES += liblz4-static
|
||||
endif
|
||||
endif
|
||||
|
||||
LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UPDATER_LIBS) $(TARGET_RECOVERY_UPDATER_EXTRA_LIBS)
|
||||
|
||||
Reference in New Issue
Block a user