OSDN Git Service

Android: inital porting of efibootmgr oreo-x86 android-x86-8.1-r1 android-x86-8.1-r2 android-x86-8.1-r3 android-x86-8.1-r4 android-x86-8.1-r5 android-x86-8.1-r6
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 10 Jan 2019 08:55:07 +0000 (16:55 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 10 Jan 2019 08:55:07 +0000 (16:55 +0800)
The libefivar porting is also required.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
MODULE_LICENSE_GPL2 [new file with mode: 0644]
NOTICE [new symlink]
src/Android.mk [new file with mode: 0644]

diff --git a/MODULE_LICENSE_GPL2 b/MODULE_LICENSE_GPL2
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/NOTICE b/NOTICE
new file mode 120000 (symlink)
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 (file)
index 0000000..cb0883d
--- /dev/null
@@ -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)