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)
|
LOCAL_PATH := $(call my-dir)
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_CPP_EXTENSION := .cc
|
sgdisk_src_files := \
|
||||||
|
|
||||||
LOCAL_SRC_FILES := \
|
|
||||||
sgdisk.cc \
|
sgdisk.cc \
|
||||||
gptcl.cc \
|
gptcl.cc \
|
||||||
crc32.cc \
|
crc32.cc \
|
||||||
@@ -21,9 +18,29 @@ LOCAL_SRC_FILES := \
|
|||||||
diskio-unix.cc \
|
diskio-unix.cc \
|
||||||
android_popt.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_SHARED_LIBRARIES := libext2_uuid
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
LOCAL_MODULE := sgdisk
|
LOCAL_MODULE := sgdisk
|
||||||
|
|
||||||
include $(BUILD_EXECUTABLE)
|
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.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "android_popt.h"
|
#include <popt.h>
|
||||||
|
|
||||||
// #define LOCAL_DEBUG
|
// #define LOCAL_DEBUG
|
||||||
|
|
||||||
|
|||||||
4
gptcl.h
4
gptcl.h
@@ -23,11 +23,7 @@
|
|||||||
#define __GPTCL_H
|
#define __GPTCL_H
|
||||||
|
|
||||||
#include "gpt.h"
|
#include "gpt.h"
|
||||||
#ifdef __ANDROID__
|
|
||||||
#include "android_popt.h"
|
|
||||||
#else
|
|
||||||
#include <popt.h>
|
#include <popt.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|||||||
4
guid.h
4
guid.h
@@ -26,11 +26,7 @@
|
|||||||
#endif
|
#endif
|
||||||
typedef unsigned char my_uuid_t[16];
|
typedef unsigned char my_uuid_t[16];
|
||||||
#else // Not Windows
|
#else // Not Windows
|
||||||
#ifdef __ANDROID__
|
|
||||||
#include <uuid.h>
|
|
||||||
#else
|
|
||||||
#include <uuid/uuid.h>
|
#include <uuid/uuid.h>
|
||||||
#endif
|
|
||||||
typedef uuid_t my_uuid_t;
|
typedef uuid_t my_uuid_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user