From 0c45085fbc2d47c221ddd58c90d93740a9555f3b Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Thu, 10 Jan 2019 16:55:07 +0800 Subject: [PATCH] Android: inital porting of efibootmgr The libefivar porting is also required. Signed-off-by: Chih-Wei Huang --- MODULE_LICENSE_GPL2 | 0 NOTICE | 1 + src/Android.mk | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 MODULE_LICENSE_GPL2 create mode 120000 NOTICE create mode 100644 src/Android.mk 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..cb0883d --- /dev/null +++ b/src/Android.mk @@ -0,0 +1,33 @@ +# +# Copyright (C) 2019 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) -- 2.11.0