Skip to content

Instantly share code, notes, and snippets.

@Snawoot
Last active May 14, 2019 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Snawoot/9cbad8a381b241c5bac5669d00f20620 to your computer and use it in GitHub Desktop.
Save Snawoot/9cbad8a381b241c5bac5669d00f20620 to your computer and use it in GitHub Desktop.
Builds efitools-1.9.2 on Fedora 30. Run it in source directory.
#!/bin/sh
make CRTOBJ=crt0-efi-x64.o \
LDSCRIPT=elf_x64_efi.lds \
LDFLAGS='-nostdlib -L /usr/lib64/gnuefi -shared -Bsymbolic $(CRTOBJS) -L $(CRTPATH) -L /usr/lib -L /usr/lib64 -L /usr/lib/gnuefi -L /usr/lib64/gnuefi -T $(LDSCRIPT)' \
INCDIR='-I$(TOPDIR)include -I/usr/include/efi -I/usr/include/efi/x64 -I/usr/include/efi/protocol' && \
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment