search for: efi_subarch

Displaying 10 results from an estimated 10 matches for "efi_subarch".

2015 Sep 14
1
mk/efi.mk: Build gnu-efi with the Makefile, ARFLAGS=$(AROPT)
...)/gnu-efi/gnu-efi-3.0 Would it make sense to add AROPT = rvU or #ifdefine AR_DEFAULT_SETS_TIMESTAMP_TO_ZERO AROPT = rvU #elseif AROPT = rv #endifdefine ? > ifeq ($(ARCH),i386) > ARCHOPT = -m32 -march=i386 > @@ -55,7 +56,13 @@ $(EFIINC)/%.h $(EFIINC)/protocol/%.h $(EFIINC)/$(EFI_SUBARCH)/%.h: gnuefi ; > .PHONY: gnuefi > gnuefi: > @echo Building gnu-efi for $(EFI_SUBARCH) > - $(topdir)/efi/check-gnu-efi.sh $(EFI_SUBARCH) $(objdir) > + cd $(topdir) && git submodule update --init > + mkdir -p "$(objdir)/gnu-efi" > + MAKEFLAGS= make SRCDIR=&q...
2015 Sep 14
11
[PATCH 0/4] efi: Makefile improvement
From: Sylvain Gault <sylvain.gault at gmail.com> These few patches contain a few improvement about the Makefiles for EFI. Mainly, to rebuild the files when needed, and only when needed. The three shell scripts efi/{check,build,clean}-gnu-efi.sh disappeared and are now integrated as makefile recipes. You'll notice an argument ARFLAGS=rvU to the recursive make calls to gnu-efi. This is
2015 Sep 14
0
[PATCH 3/4] mk/efi.mk: Build gnu-efi with the Makefile
...0,6 +10,7 @@ core = $(topdir)/core GCCOPT := $(call gcc_ok,-fno-stack-protector,) EFIINC = $(objdir)/include/efi LIBDIR = $(objdir)/lib +EFIDIR = $(topdir)/gnu-efi/gnu-efi-3.0 ifeq ($(ARCH),i386) ARCHOPT = -m32 -march=i386 @@ -55,7 +56,13 @@ $(EFIINC)/%.h $(EFIINC)/protocol/%.h $(EFIINC)/$(EFI_SUBARCH)/%.h: gnuefi ; .PHONY: gnuefi gnuefi: @echo Building gnu-efi for $(EFI_SUBARCH) - $(topdir)/efi/check-gnu-efi.sh $(EFI_SUBARCH) $(objdir) + cd $(topdir) && git submodule update --init + mkdir -p "$(objdir)/gnu-efi" + MAKEFLAGS= make SRCDIR="$(EFIDIR)" TOPDIR="$(...
2020 Jul 28
1
[PATCH] mk/efi: add -znoseparate-code to LD_FLAGS for EFI builds
...wanted to contribute this fix in case it may be helpful to anyone. Thanks Johannes Signed-off-by: Johannes Frohnhofen <jf at daedalean.ai> --- mk/efi.mk.orig 2020-07-28 12:31:48.814356659 +0000 +++ mk/efi.mk 2020-07-28 12:37:22.292205578 +0000 @@ -37,7 +37,8 @@ CRT0 := $(LIBDIR)/crt0-efi-$(EFI_SUBARCH LDSCRIPT := $(LIBDIR)/elf_$(EFI_SUBARCH)_efi.lds LDFLAGS = -T $(SRC)/$(ARCH)/syslinux.ld -Bsymbolic -pie -nostdlib -znocombreloc \ - -L$(LIBDIR) --hash-style=gnu -m elf_$(ARCH) $(CRT0) -E + -znoseparate-code -L$(LIBDIR) --hash-style=gnu -m elf_$(ARCH) \ + $(CRT0) -E SFLAGS =...
2015 Mar 14
0
[PATCH 0/1] EFI access from Com32 modules
...rchitecture specifics in ia32 or x86_64 sub directories +# set up the LIBDIR and EFIINC for building for the appropriate architecture + +GCCOPT := $(call gcc_ok,-fno-stack-protector,) + +EFIINC = $(objdir)/include/efi +LIBDIR = $(objdir)/lib + +ifeq ($(ARCH),i386) + ARCHOPT = -m32 -march=i386 + EFI_SUBARCH = ia32 +endif +ifeq ($(ARCH),x86_64) + ARCHOPT = -m64 -march=x86-64 + EFI_SUBARCH = $(ARCH) +endif + + + +CFLAGS := $(CFLAGS) +CFLAGS += -I$(EFIINC) -I$(EFIINC)/$(EFI_SUBARCH) \ + -DEFI_FUNCTION_WRAPPER -fPIC -fshort-wchar -ffreestanding \ + -Wall \ + -I$(core)/ $(ARCHOPT) \ + -I$(com3...
2015 Feb 20
6
[PATCH 0/1] EFI image booting capabilities
This patch adds to the core EFI image booting capabilities. It was tested on VMware EFI clients and HP Elitebook EFI notebooks, only on PXE environments but it should work on non-PXE scenarios as well. Feedback appreciated. Best, Patrick Signed-off-by: Patrick Masotta <masottaus at yahoo.com> --- diff -uprN a/com32/elflink/ldlinux/execute.c b/com32/elflink/ldlinux/execute.c ---
2016 Oct 20
0
[PATCH] Fix for crash with certain EFIs
...-ifeq ($(FWCLASS),EFI) -GCCOPT += -mno-red-zone -else +ifneq ($(FWCLASS),EFI) GCCOPT += -mregparm=3 -DREGPARM=3 endif --- syslinux.orig/mk/efi.mk +++ syslinux/mk/efi.mk @@ -17,6 +17,7 @@ endif ifeq ($(ARCH),x86_64) ARCHOPT = -m64 -march=x86-64 + ARCHOPT += -mno-red-zone EFI_SUBARCH = $(ARCH) endif @@ -29,7 +32,7 @@ -I$(core)/include -I$(core)/ $(ARCHOPT) \ -I$(com32)/lib/ -I$(com32)/libutil/include -std=gnu99 \ -DELF_DEBUG -DSYSLINUX_EFI -I$(objdir) \ - $(GCCWARN) -D__COM32__ -D__FIRMWARE_$(FIRMWARE)__ -mno-red-z...
2015 Sep 24
0
[PATCH] com32/disk: add UEFI support
.../lib.mk b/mk/lib.mk index ceb95bd..f00dd94 100644 --- a/mk/lib.mk +++ b/mk/lib.mk @@ -38,6 +38,31 @@ LIBFLAGS = -DDYNAMIC_CRC_TABLE -DPNG_NO_CONSOLE_IO \ -DPNG_NO_MNG_FEATURES \ -DPNG_NO_READ_tIME -DPNG_NO_WRITE_tIME +ifdef EFI_BUILD + +ifeq ($(ARCH),i386) + ARCHOPT = -m32 -march=i386 + EFI_SUBARCH = ia32 +endif +ifeq ($(ARCH),x86_64) + ARCHOPT = -m64 -march=x86-64 + EFI_SUBARCH = $(ARCH) +endif + +EFI_OBJDIR = $(OBJ)/../.. +EFIINC = $(EFI_OBJDIR)/include/efi + +FW_SUBDIR = efi +FWFLAGS = -I$(EFIINC) -I$(EFIINC)/$(EFI_SUBARCH) -I$(EFIINC)/protocol \ + -DEFI_FUNCTION_WRAPPER -fPIC -fshort-wcha...
2016 Oct 17
1
[PATCH] Fix for crash with certain EFIs
...referred-stack-boundary=8,) #GCCOPT += $(call gcc_ok,-incoming-stack-boundary=8,) --- syslinux-6.03-orig/mk/efi.mk +++ syslinux-6.03/mk/efi.mk @@ -17,6 +17,9 @@ endif ifeq ($(ARCH),x86_64) ARCHOPT = -m64 -march=x86-64 +ifdef EFI_BUILD + ARCHOPT = -mno-red-zone +endif EFI_SUBARCH = $(ARCH) endif @@ -29,7 +32,7 @@ -I$(core)/include -I$(core)/ $(ARCHOPT) \ -I$(com32)/lib/ -I$(com32)/libutil/include -std=gnu99 \ -DELF_DEBUG -DSYSLINUX_EFI -I$(objdir) \ - $(GCCWARN) -D__COM32__ -D__FIRMWARE_$(FIRMWARE)__ -mno-red-z...
2016 Oct 19
4
[PATCH] Fix for crash with certain EFIs
Hi Ady, Would it work if we removed "ifdef EFI_BUILD" condition and just add -mno-red-zone for all x86_64 builds? If not, do you have any ideas how to pass this flag? This could work, because the patch is adding the -mno-red-zone flag only for x86_64 builds, which are only used in the form of the efi64 target. The efi32 and bios targets are both 32-bit. BTW. I also tried 6.04-pre1 and