build: Minor changes

This commit is contained in:
mintsuki 2021-04-08 21:02:46 +02:00
parent c01a66be01
commit 21ec72f1b7
2 changed files with 3 additions and 4 deletions

View File

@ -110,8 +110,8 @@ toolchain:
gnu-efi:
git clone https://git.code.sf.net/p/gnu-efi/code --branch=3.0.13 --depth=1 $@
$(MAKE) -C gnu-efi/gnuefi CC="$(TOOLCHAIN_CC) -m64" AR="$(TOOLCHAIN_AR)"
$(MAKE) -C gnu-efi/lib CC="$(TOOLCHAIN_CC) -m64" ARCH=x86_64 x86_64/efi_stub.o
$(MAKE) -C gnu-efi/gnuefi CC="$(TOOLCHAIN_CC) -m64 -march=x86-64" AR="$(TOOLCHAIN_AR)"
$(MAKE) -C gnu-efi/lib CC="$(TOOLCHAIN_CC) -m64 -march=x86-64" ARCH=x86_64 x86_64/efi_stub.o
ovmf:
mkdir -p ovmf

View File

@ -109,9 +109,8 @@ ifeq ($(TARGET), uefi)
-m64 \
-march=x86-64 \
-Wl,-melf_x86_64 \
-static-pie \
-Wl,-Bsymbolic \
-Wl,--noinhibit-exec \
-static-pie \
-pie \
-fpie
endif