summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin2008-09-29 22:48:51 +0200
committerMichael Brown2008-09-30 22:53:34 +0200
commite8b6077566df5d6479b68cbd3fd490ab0812424e (patch)
tree22618caadcce93eed6b5831de4c6ce0ca0b0808d /src/Makefile
parent[tg3] Add PCI ID (diff)
downloadipxe-e8b6077566df5d6479b68cbd3fd490ab0812424e.tar.gz
ipxe-e8b6077566df5d6479b68cbd3fd490ab0812424e.tar.xz
ipxe-e8b6077566df5d6479b68cbd3fd490ab0812424e.zip
[makefile] Avoid using ?=
?= in a Makefile means that that variable can be overridden by the environment. This is confusing to users, especially with a generic name like "ARCH". Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 474e8cfd..40906a8e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -71,7 +71,7 @@ noargs : blib $(BIN)/NIC $(BIN)/gpxe.dsk $(BIN)/gpxe.iso $(BIN)/gpxe.usb $(BIN)/
# If no architecture is specified in Config or on the command-line,
# use that of the build machine.
#
-ARCH ?= $(shell uname -m | sed -e s,i[3456789]86,i386,)
+ARCH := $(shell uname -m | sed -e s,i[3456789]86,i386,)
# handle x86_64 like i386, but set -m32 option for 32bit code only
ifeq ($(ARCH),x86_64)
@@ -98,7 +98,7 @@ LDFLAGS += $(EXTRA_LDFLAGS)
# Embedded image, if present
#
-EMBEDDED_IMAGE ?= /dev/null
+EMBEDDED_IMAGE = /dev/null
ifneq ($(NO_WERROR),1)
CFLAGS += -Werror