Provide the option to enable debug information during tar backups

Change-Id: Ibdb060d334c8f799a283f1bcef4a369d5555c975
This commit is contained in:
DarthJabba9
2020-10-23 22:51:33 +00:00
committed by bigbiff
parent 3150f1eeff
commit 247c68bb2d
2 changed files with 12 additions and 0 deletions
+8
View File
@@ -25,6 +25,10 @@ ifeq ($(TW_INCLUDE_CRYPTO_FBE), true)
endif
endif
ifeq ($(TW_LIBTAR_DEBUG),true)
LOCAL_CFLAGS += -DTW_LIBTAR_DEBUG
endif
include $(BUILD_SHARED_LIBRARY)
# Build static library
@@ -52,4 +56,8 @@ ifeq ($(TW_INCLUDE_CRYPTO_FBE), true)
endif
endif
ifeq ($(TW_LIBTAR_DEBUG),true)
LOCAL_CFLAGS += -DTW_LIBTAR_DEBUG
endif
include $(BUILD_STATIC_LIBRARY)
+4
View File
@@ -18,6 +18,10 @@
# include <stdlib.h>
#endif
#ifdef TW_LIBTAR_DEBUG
#define DEBUG 1
#endif
#ifdef HAVE_EXT4_CRYPT
#include "ext4crypt_tar.h"
#endif