From: "Christoph Egger" <Christoph.Egger@amd.com>
To: xen-devel@lists.xensource.com
Cc: John Levon <levon@movementarian.org>
Subject: Re: getting etherboot compiling
Date: Mon, 4 Feb 2008 11:24:06 +0100 [thread overview]
Message-ID: <200802041124.06583.Christoph.Egger@amd.com> (raw)
In-Reply-To: <20080201182103.GB7841@totally.trollied.org.uk>
On Friday 01 February 2008 19:21:03 John Levon wrote:
> On Fri, Feb 01, 2008 at 06:16:47PM +0000, John Levon wrote:
> > With the patch below (at least some of the way), I just get:
>
> And the patch
See the bottom of this mail for comment.
> john
>
> diff --git a/config/StdGNU.mk b/config/StdGNU.mk
> --- a/config/StdGNU.mk
> +++ b/config/StdGNU.mk
> @@ -12,6 +12,7 @@ SIZEUTIL = $(CROSS_COMPILE)size
>
> MSGFMT = msgfmt
> MSGMERGE = msgmerge
> +TAR = tar
>
> INSTALL = install
> INSTALL_DIR = $(INSTALL) -d -m0755 -p
> diff --git a/config/SunOS.mk b/config/SunOS.mk
> --- a/config/SunOS.mk
> +++ b/config/SunOS.mk
> @@ -11,6 +11,7 @@ SIZEUTIL = $(CROSS_COMPILE)gsize
> SIZEUTIL = $(CROSS_COMPILE)gsize
>
> MSGFMT = gmsgfmt
> +TAR = gtar
>
> SHELL = bash
>
> diff --git a/tools/firmware/etherboot/Makefile
> b/tools/firmware/etherboot/Makefile --- a/tools/firmware/etherboot/Makefile
> +++ b/tools/firmware/etherboot/Makefile
> @@ -21,14 +21,14 @@ eb-%.zrom.h: $E/src/Config
> mv -f $@.new $@
>
> eb-rom-list.h: make-eb-rom-list $E/src/bin/Roms
> - ./$^ $(NICS) >$@.new && mv -f $@.new $@
> + PATH=/usr/gnu/bin/:$(PATH) ./$^ $(NICS) >$@.new && mv -f $@.new $@
>
> eb-roms.h: eb-rom-list.h $(ROM_ZHS)
> cat $^ >$@.new && mv -f $@.new $@
>
> $E/src/Config: $T Config
> rm -rf $D $E
> - tar zxf $T
> + $(TAR) zxf $T
> cat Config >>$D/src/Config
> @
> # override many of the settings in Config
> @@ -36,14 +36,14 @@ eb-roms.h: eb-rom-list.h $(ROM_ZHS)
> echo "HOST_CC=$(HOSTCC)" >>$D/src/Config
> echo "CPP=$(CPP)" >>$D/src/Config
> echo "CC=$(CC)" >>$D/src/Config
> - echo "AS=$(CC) -c -x assembler -" >>$D/src/Config
> + echo "AS=$(AS)" >>$D/src/Config
> echo "LD=$(LD)" >>$D/src/Config
> echo "SIZE=$(SIZE)" >>$D/src/Config
> echo "AR=$(AR)" >>$D/src/Config
> echo "RANLIB=$(RANLIB)" >>$D/src/Config
> echo "OBJCOPY=$(OBJCOPY)" >>$D/src/Config
> echo "CFLAGS+=$(CFLAGS)" >>$D/src/Config
> - echo "ASFLAGS+=$(CFLAGS)" >>$D/src/Config
> + echo "ASFLAGS+=$(ASFLAGS)" >>$D/src/Config
> echo "LDFLAGS+=$(LDFLAGS_DIRECT)" >>$D/src/Config
> @
> set -e; cd $D/src/arch/i386; \
> @@ -53,7 +53,7 @@ eb-roms.h: eb-rom-list.h $(ROM_ZHS)
> mv $D $E
>
> $E/src/bin/Roms: $E/src/Config
> - $(MAKE) -C $E/src bin/Roms
> + PATH=/usr/gnu/bin/:$(PATH) $(MAKE) -C $E/src bin/Roms
>
> clean:
> rm -rf $D $E *.zrom.h eb-rom-list.h eb-roms.h *~
> diff --git a/tools/firmware/etherboot/make-eb-rom-list
> b/tools/firmware/etherboot/make-eb-rom-list ---
> a/tools/firmware/etherboot/make-eb-rom-list
> +++ b/tools/firmware/etherboot/make-eb-rom-list
> @@ -1,4 +1,4 @@
> -#!/bin/sh
> +#!/bin/bash
> set -e
> roms=$1; shift
> echo "/* autogenerated - do not edit */"
This is not ok for *BSD. bash is a third-party package there.
Christoph
--
AMD Saxony, Dresden, Germany
Operating System Research Center
Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
Dr. Hans-R. Deppe, Thomas McCoy
next prev parent reply other threads:[~2008-02-04 10:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-01 18:16 getting etherboot compiling John Levon
2008-02-01 18:21 ` John Levon
2008-02-02 10:21 ` Keir Fraser
2008-02-04 10:24 ` Christoph Egger [this message]
2008-02-04 15:52 ` Ian Jackson
2008-02-04 16:18 ` Christoph Egger
2008-02-04 17:03 ` John Levon
2008-02-04 17:07 ` Ian Jackson
2008-02-04 17:14 ` John Levon
2008-02-04 17:25 ` Ian Jackson
2008-02-05 15:42 ` John Levon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200802041124.06583.Christoph.Egger@amd.com \
--to=christoph.egger@amd.com \
--cc=levon@movementarian.org \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.