Add host build rules for sgdisk
Change-Id: I204ff8f580c2336c2c9d39bba48596aaaaa6860a
This commit is contained in:
27
Android.mk
27
Android.mk
@@ -1,9 +1,6 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_CPP_EXTENSION := .cc
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
sgdisk_src_files := \
|
||||
sgdisk.cc \
|
||||
gptcl.cc \
|
||||
crc32.cc \
|
||||
@@ -21,9 +18,29 @@ LOCAL_SRC_FILES := \
|
||||
diskio-unix.cc \
|
||||
android_popt.cc \
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_CPP_EXTENSION := .cc
|
||||
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH) external/e2fsprogs/lib
|
||||
LOCAL_SRC_FILES := $(sgdisk_src_files)
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := libext2_uuid
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE := sgdisk
|
||||
|
||||
include $(BUILD_EXECUTABLE)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_CPP_EXTENSION := .cc
|
||||
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH) external/e2fsprogs/lib
|
||||
LOCAL_SRC_FILES := $(sgdisk_src_files)
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := libext2_uuid_host
|
||||
|
||||
LOCAL_MODULE := sgdisk_host
|
||||
LOCAL_MODULE_STEM := sgdisk
|
||||
|
||||
include $(BUILD_HOST_EXECUTABLE)
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "android_popt.h"
|
||||
#include <popt.h>
|
||||
|
||||
// #define LOCAL_DEBUG
|
||||
|
||||
|
||||
4
gptcl.h
4
gptcl.h
@@ -23,11 +23,7 @@
|
||||
#define __GPTCL_H
|
||||
|
||||
#include "gpt.h"
|
||||
#ifdef __ANDROID__
|
||||
#include "android_popt.h"
|
||||
#else
|
||||
#include <popt.h>
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
4
guid.h
4
guid.h
@@ -26,11 +26,7 @@
|
||||
#endif
|
||||
typedef unsigned char my_uuid_t[16];
|
||||
#else // Not Windows
|
||||
#ifdef __ANDROID__
|
||||
#include <uuid.h>
|
||||
#else
|
||||
#include <uuid/uuid.h>
|
||||
#endif
|
||||
typedef uuid_t my_uuid_t;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user