logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://anongit.hacktivis.me/git/overlay.git/

edk2-tools-202305.ebuild (1064B)


  1. # Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. inherit toolchain-funcs
  5. DESCRIPTION="tools for processing UEFI firmware content (EfiRom, GenFfs, ...)"
  6. HOMEPAGE="https://github.com/tianocore/edk2"
  7. SRC_URI="https://github.com/tianocore/edk2/archive/edk2-stable${PV}.tar.gz"
  8. S="${WORKDIR}/edk2-edk2-stable${PV}/BaseTools"
  9. LICENSE="BSD-2 MIT"
  10. SLOT="0"
  11. KEYWORDS="-* ~amd64"
  12. # util-linux for libuuid.so
  13. DEPEND="sys-apps/util-linux"
  14. RDEPEND="${DEPEND}"
  15. # Includes manuals but RTF-formatted
  16. BDEPEND="sys-apps/help2man"
  17. src_prepare() {
  18. default
  19. # Remove brotli which pulls submodules
  20. sed -i -e '/BrotliCompress/d' Source/C/GNUmakefile || die
  21. }
  22. src_compile() {
  23. tc-export CC CXX AS AR LD
  24. emake -C Source/C \
  25. BUILD_CC="${CC}" \
  26. BUILD_CXX="${CXX}" \
  27. BUILD_AS="${AS}" \
  28. BUILD_AR="${AR}" \
  29. BUILD_LD="${LD}"
  30. }
  31. src_install() {
  32. dobin Source/C/bin/*
  33. for bin in Source/C/bin/*; do
  34. help2man -s1 -n "$(basename "$bin")" -N -o "$bin".1 $bin
  35. doman "$bin".1
  36. done
  37. }