2015-04-14 01:11:50 +02:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
common_cflags := -Wall -Werror -DANDROID
|
|
|
|
# XXX: nexus?
|
|
|
|
ifeq ($(BOARD_USES_QCOM_HARDWARE),true)
|
|
|
|
common_cflags += -DQCOM
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := libgpt
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_CFLAGS := $(common_cflags)
|
|
|
|
LOCAL_SRC_FILES := util.c readline/readline.c crc32.c gpt.c
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
2015-04-16 07:19:28 +02:00
|
|
|
LOCAL_MODULE := gpted_recovery
|
|
|
|
LOCAL_MODULE_STEM := gpted
|
2015-04-14 01:11:50 +02:00
|
|
|
LOCAL_MODULE_TAGS := optional
|
2015-04-16 07:19:28 +02:00
|
|
|
LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
|
|
|
|
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
|
2015-04-14 01:11:50 +02:00
|
|
|
LOCAL_SRC_FILES := gpted.c
|
|
|
|
LOCAL_CFLAGS := $(common_cflags)
|
|
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
|
|
LOCAL_STATIC_LIBRARIES := libc libgpt
|
|
|
|
include $(BUILD_EXECUTABLE)
|
2015-04-16 07:19:28 +02:00
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := gpted
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_SRC_FILES := gpted.c
|
|
|
|
LOCAL_CFLAGS := $(common_cflags)
|
|
|
|
LOCAL_STATIC_LIBRARIES := libgpt
|
|
|
|
include $(BUILD_EXECUTABLE)
|