[build] Allow for 32-bit and 64-bit versions of util/zbin

Parsing ELF data is simpler if we don't have to build a single binary
to handle both 32-bit and 64-bit ELF formats.

Allow for separate 32-bit and 64-bit binaries built from util/zbin.c
(as is already done for util/elf2efi.c).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-05-06 12:07:38 +01:00
parent 4c11737d5d
commit 98646b9f01
10 changed files with 40 additions and 5 deletions

View File

@@ -1,3 +1,7 @@
# Specify compressor
#
ZBIN = $(ZBIN32)
# ARM32-specific directories containing source files
#
SRCDIRS += arch/arm32/core

View File

@@ -1,3 +1,7 @@
# Specify compressor
#
ZBIN = $(ZBIN64)
# ARM64-specific directories containing source files
#
SRCDIRS += arch/arm64/core

View File

@@ -1,3 +1,7 @@
# Specify compressor
#
ZBIN = $(ZBIN32)
# Force i386-only instructions
#
CFLAGS += -march=i386

View File

@@ -1,3 +1,7 @@
# Specify compressor
#
ZBIN = $(ZBIN64)
# Assembler section type character
#
ASM_TCHAR := @

View File

@@ -1,3 +1,7 @@
# Specify compressor
#
ZBIN = $(ZBIN32)
# RISCV32-specific directories containing source files
#
SRCDIRS += arch/riscv32/core

View File

@@ -1,3 +1,7 @@
# Specify compressor
#
ZBIN = $(ZBIN64)
# RISCV64-specific directories containing source files
#
SRCDIRS += arch/riscv64/core

View File

@@ -1,3 +1,7 @@
# Specify compressor
#
ZBIN = $(ZBIN64)
# Code size reduction.
#
CFLAGS += -fstrength-reduce -fomit-frame-pointer