mirror of
https://github.com/ipxe/ipxe
synced 2026-02-11 13:49:51 +03:00
Update Makefile for compilation on ARCH=x86_64
This commit is contained in:
committed by
Michael Brown
parent
487dc5be56
commit
bfc4737751
@@ -21,6 +21,12 @@ ifndef ARCH
|
|||||||
ARCH := $(shell uname -m | sed -e s,i[3456789]86,i386,)
|
ARCH := $(shell uname -m | sed -e s,i[3456789]86,i386,)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# handle x86_64 like i386, but set -m32 option for 32bit code only
|
||||||
|
ifeq ($(ARCH),x86_64)
|
||||||
|
ARCH := i386
|
||||||
|
CFLAGS += -m32
|
||||||
|
endif
|
||||||
|
|
||||||
# Drag in architecture-specific Config
|
# Drag in architecture-specific Config
|
||||||
#
|
#
|
||||||
MAKEDEPS += arch/$(ARCH)/Config
|
MAKEDEPS += arch/$(ARCH)/Config
|
||||||
|
|||||||
Reference in New Issue
Block a user