Fix conflicts and make it build in 5.1, 6.0, 7.1, 8.1, and 9.0 Change-Id: Ida0a64c29ff27d339b7f42a18d820930964ac6e4
20 lines
371 B
Makefile
20 lines
371 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
# Build libgpt_twrp library
|
|
|
|
include $(CLEAR_VARS)
|
|
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 26; echo $$?),0)
|
|
LOCAL_CLANG := false
|
|
endif
|
|
LOCAL_MODULE := libgpt_twrp
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_SRC_FILES = \
|
|
gpt.c \
|
|
gptcrc32.c
|
|
|
|
LOCAL_CFLAGS := -Wno-format
|
|
|
|
LOCAL_SHARED_LIBRARIES := libc
|
|
include $(BUILD_SHARED_LIBRARY)
|