From: Ian Campbell Subject: Re: [PATCH v2 2/3] firmware: Use mkhex from hvmloader directory for etherboot ROMs Date: Fri, 10 Feb 2012 09:07:51 +0000 Message-ID: <1328864871.6133.245.camel@zakaz.uk.xensource.com> References: <04bca2da081cc7cc2d1649c0d2d4d93af2bdccc2.1328837585.git.julian.pidancet@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <04bca2da081cc7cc2d1649c0d2d4d93af2bdccc2.1328837585.git.julian.pidancet@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Julian Pidancet Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Fri, 2012-02-10 at 01:53 +0000, Julian Pidancet wrote: > @@ -95,10 +97,11 @@ ifneq ($(CIRRUSVGA_ROM),) > sh ./mkhex vgabios_cirrusvga $(CIRRUSVGA_ROM) >> $@.new > echo "#endif" >> $@.new > endif > - > +ifneq ($(ETHERBOOT_ROMS),) > echo "#ifdef ROM_INCLUDE_ETHERBOOT" >> $@.new > - cat ../etherboot/eb-roms.h >> $@.new > + sh ./mkhex etherboot $(ETHERBOOT_ROMS) >> $@.new mkhex uses $1 as the array name and $2 as the binary data. However if ETHERBOOT_ROMS contains two or more items then the second and subsequent roms will be $3,$4 etc which are then not included. I think you need to either quote something somewhere, use shift and $@ in mkhex or stick with the "cat $(ETHERBOOT_ROMS) | ./mkhex ..." style. The rest of the patch looked good, thanks. Ian.