From: Chih-Wei Huang Date: Fri, 12 Jan 2018 03:32:54 +0000 (+0800) Subject: Android: inital porting of efibootmgr X-Git-Tag: android-x86-7.1-r1 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=refs%2Fheads%2Fnougat-x86;p=android-x86%2Fexternal-efibootmgr.git Android: inital porting of efibootmgr The libefivar porting is also required. --- diff --git a/MODULE_LICENSE_GPL2 b/MODULE_LICENSE_GPL2 new file mode 100644 index 0000000..e69de29 diff --git a/NOTICE b/NOTICE new file mode 120000 index 0000000..d24842f --- /dev/null +++ b/NOTICE @@ -0,0 +1 @@ +COPYING \ No newline at end of file diff --git a/src/Android.mk b/src/Android.mk new file mode 100644 index 0000000..f9717fc --- /dev/null +++ b/src/Android.mk @@ -0,0 +1,33 @@ +# +# Copyright (C) 2018 The Android-x86 Open Source Project +# +# Licensed under the GNU General Public License Version 2 or later. +# You may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.gnu.org/licenses/gpl.html +# + +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +include $(LOCAL_PATH)/../Make.version + +LOCAL_MODULE := efibootmgr +LOCAL_C_INCLUDES := $(LOCAL_PATH)/include +LOCAL_STATIC_LIBRARIES := libefivar +LOCAL_MODULE_PATH := $(TARGET_INSTALLER_OUT)/sbin + +LOCAL_CFLAGS := \ + -Werror -Wall -Wextra -Wsign-compare -Wstrict-aliasing \ + -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE \ + -DEFIBOOTMGR_VERSION="\"$(VERSION)\"" \ + -DDEFAULT_LOADER=\"\\\\elilo.efi\" + +LOCAL_SRC_FILES := \ + efi.c \ + efibootmgr.c \ + unparse_path.c + +include $(BUILD_EXECUTABLE)