blob: 4b83c5510cd1d864147303ed829fbe8814f79bc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$NetBSD: patch-aa,v 1.1.1.1 2011/04/06 09:05:53 cegger Exp $
--- xen/arch/x86/boot/build32.mk.orig 2011-03-25 10:42:58.000000000 +0000
+++ xen/arch/x86/boot/build32.mk
@@ -10,7 +10,8 @@ CFLAGS += -Werror -fno-builtin -msoft-fl
# NB. awk invocation is a portable alternative to 'head -n -1'
%.S: %.bin
(od -v -t x $< | awk 'NR > 1 {print s} {s=$$0}' | \
- sed 's/ /,0x/g' | sed 's/^[0-9]*,/ .long /') >$@
+ sed 's/ */, 0x/g' | sed 's/, 0x$$//' | \
+ sed 's/^[0-9]*,/ .long /') >$@
%.bin: %.lnk
$(OBJCOPY) -O binary $< $@
|