From ba01489a101db7c71b45dec10c734d7882c1a235 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 19 Jul 2010 15:10:20 +0100 Subject: [PATCH] tools: gpxe build fix for NetBSD Signed-off-by: Christoph Egger --- tools/firmware/etherboot/patches/Makefile.patch | 12 ++++++++++++ tools/firmware/etherboot/patches/series | 1 + 2 files changed, 13 insertions(+) create mode 100644 tools/firmware/etherboot/patches/Makefile.patch diff --git a/tools/firmware/etherboot/patches/Makefile.patch b/tools/firmware/etherboot/patches/Makefile.patch new file mode 100644 index 0000000000..d56825b264 --- /dev/null +++ b/tools/firmware/etherboot/patches/Makefile.patch @@ -0,0 +1,12 @@ +--- a/src/Makefile.orig 2010-07-19 13:09:06.000000000 +0200 ++++ b/src/Makefile 2010-07-19 13:04:11.000000000 +0200 +@@ -71,7 +71,8 @@ noargs : blib $(BIN)/NIC $(BIN)/gpxe.dsk + # 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, \ ++ -e s,i86pc,x86_32, -e s,amd64,x86_64,) + + # handle x86_64 like i386, but set -m32 option for 32bit code only + ifeq ($(ARCH),x86_64) diff --git a/tools/firmware/etherboot/patches/series b/tools/firmware/etherboot/patches/series index 86cb300865..f76e6bef75 100644 --- a/tools/firmware/etherboot/patches/series +++ b/tools/firmware/etherboot/patches/series @@ -1 +1,2 @@ +Makefile.patch boot_prompt_option.patch -- 2.39.5