Target GNU EFI library. Used for various EFI work.
Depending on your needs, target binaries for EFI stuff might be needed.
This is used by efitools etc.

Signed-off-by: Christian Melki <[email protected]>
---
 rules/gnu-efi.in   |  6 ++++
 rules/gnu-efi.make | 71 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)
 create mode 100644 rules/gnu-efi.in
 create mode 100644 rules/gnu-efi.make

diff --git a/rules/gnu-efi.in b/rules/gnu-efi.in
new file mode 100644
index 000000000..b21192222
--- /dev/null
+++ b/rules/gnu-efi.in
@@ -0,0 +1,6 @@
+## SECTION=system_libraries
+menuconfig GNU_EFI
+       tristate
+       prompt "gnu-efi                       "
+       help
+         This is gnu-efi, a library for providing EFI functions.
diff --git a/rules/gnu-efi.make b/rules/gnu-efi.make
new file mode 100644
index 000000000..33a27020b
--- /dev/null
+++ b/rules/gnu-efi.make
@@ -0,0 +1,71 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Christian Melki <[email protected]>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_GNU_EFI) += gnu-efi
+
+#
+# Paths and names
+#
+# No tags: use a fake descriptive commit-ish to include the date
+GNU_EFI_VERSION                := 3.0.13
+GNU_EFI_MD5            := 8ec4221f505c78e6fc375c2fd7f0c549
+GNU_EFI                        := gnu-efi-$(GNU_EFI_VERSION)
+GNU_EFI_SUFFIX         := tar.bz2
+GNU_EFI_URL            := 
https://sourceforge.net/projects/gnu-efi/files/gnu-efi-$(GNU_EFI_VERSION).$(GNU_EFI_SUFFIX)
+GNU_EFI_SOURCE         := $(SRCDIR)/$(GNU_EFI).$(GNU_EFI_SUFFIX)
+GNU_EFI_DIR            := $(BUILDDIR)/$(GNU_EFI)
+GNU_EFI_LICENSE                := BSD
+
+# ----------------------------------------------------------------------------
+# Compile
+# ---------------------------------------------------------------------------- 
              
+
+ifdef PTXCONF_ARCH_X86 
+GNU_EFI_ARCH = ia32
+ifdef PTXCONF_ARCH_X86_64
+GNU_EFI_ARCH = x86_64
+endif
+endif
+ifdef PTXCONF_ARCH_ARM
+GNU_EFI_ARCH = arm
+endif
+ifdef PTXCONF_ARCH_ARM64
+GNU_EFI_ARCH = aarch64
+endif
+
+GNU_EFI_CONF_TOOL      := NO
+GNU_EFI_MAKE_ENV       := \
+       ARCH=$(GNU_EFI_ARCH) \
+       CROSS_COMPILE=$(COMPILER_PREFIX) \
+       PREFIX=/usr \
+       LIBDIR=/usr/$(CROSS_LIB_DIR)
+
+GNU_EFI_INSTALL_OPT := \
+       INSTALLROOT=$(GNU_EFI_PKGDIR) \
+       PREFIX=/usr \
+       LIBDIR=/usr/$(CROSS_LIB_DIR) \
+       install
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/gnu-efi.targetinstall:
+       @$(call targetinfo)
+       @$(call install_init, gnu-efi)
+       @$(call install_fixup, gnu-efi,PRIORITY,optional)
+       @$(call install_fixup, gnu-efi,SECTION,base)
+       @$(call install_fixup, gnu-efi,AUTHOR,"Christian Melki 
<[email protected]>")
+       @$(call install_fixup, gnu-efi,DESCRIPTION,missing)
+       @$(call install_finish, gnu-efi)
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.32.0


_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to