mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 10:01:03 +03:00
[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:
@@ -1,3 +1,7 @@
|
||||
# Specify compressor
|
||||
#
|
||||
ZBIN = $(ZBIN32)
|
||||
|
||||
# ARM32-specific directories containing source files
|
||||
#
|
||||
SRCDIRS += arch/arm32/core
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# Specify compressor
|
||||
#
|
||||
ZBIN = $(ZBIN64)
|
||||
|
||||
# ARM64-specific directories containing source files
|
||||
#
|
||||
SRCDIRS += arch/arm64/core
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# Specify compressor
|
||||
#
|
||||
ZBIN = $(ZBIN32)
|
||||
|
||||
# Force i386-only instructions
|
||||
#
|
||||
CFLAGS += -march=i386
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# Specify compressor
|
||||
#
|
||||
ZBIN = $(ZBIN64)
|
||||
|
||||
# Assembler section type character
|
||||
#
|
||||
ASM_TCHAR := @
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# Specify compressor
|
||||
#
|
||||
ZBIN = $(ZBIN32)
|
||||
|
||||
# RISCV32-specific directories containing source files
|
||||
#
|
||||
SRCDIRS += arch/riscv32/core
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# Specify compressor
|
||||
#
|
||||
ZBIN = $(ZBIN64)
|
||||
|
||||
# RISCV64-specific directories containing source files
|
||||
#
|
||||
SRCDIRS += arch/riscv64/core
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# Specify compressor
|
||||
#
|
||||
ZBIN = $(ZBIN64)
|
||||
|
||||
# Code size reduction.
|
||||
#
|
||||
CFLAGS += -fstrength-reduce -fomit-frame-pointer
|
||||
|
||||
Reference in New Issue
Block a user