build: Minor changes
This commit is contained in:
parent
c01a66be01
commit
21ec72f1b7
4
Makefile
4
Makefile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue