Re: [kvm-unit-tests] powerpc: fix boot_rom.bin build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 04, 2016 at 11:31:53AM +0100, Andrew Jones wrote:
> On Thu, Mar 03, 2016 at 12:55:29PM -0800, Peter Feiner wrote:
> > My powerpc objcopy (version 2.23.52.20130305) did a seek() that
> > bash process substitution couldn't handle! I've changed the
> > Makefile to do things the old fashioned way.
> > 
> > Signed-off-by: Peter Feiner <pfeiner@xxxxxxxxxx>
> > ---
> >  powerpc/Makefile.common | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/powerpc/Makefile.common b/powerpc/Makefile.common
> > index 424983e..7818c48 100644
> > --- a/powerpc/Makefile.common
> > +++ b/powerpc/Makefile.common
> > @@ -48,7 +48,8 @@ FLATLIBS = $(libcflat) $(LIBFDT_archive)
> >  
> >  $(TEST_DIR)/boot_rom.bin: $(TEST_DIR)/boot_rom.elf
> >  	dd if=/dev/zero of=$@ bs=256 count=1
> > -	$(OBJCOPY) -O binary $^ >(cat - >>$@)
> > +	$(OBJCOPY) -O binary $^ $@.suffix
> > +	cat $@.suffix >> $@
> >  
> >  $(TEST_DIR)/boot_rom.elf: CFLAGS = -mbig-endian
> >  $(TEST_DIR)/boot_rom.elf: $(TEST_DIR)/boot_rom.o
> > -- 
> > 2.7.0.rc3.207.g0ac5344
> 
> Reviewed-by: Andrew Jones <drjones@xxxxxxxxxx>

Actually, Unreviewed-by: drew

This leaves boot_rom.bin.suffix laying around. We need rm -f $@.suffix
too. And, why '.suffix'? How about '.tmp', or even use a tempfile?

Thanks,
drew


> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux