lkml.org 
[lkml]   [2003]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPATCH: POSIX doesnt guarantee head -2, only head -n 2
(and some build environments are set up to be poxixly correct)

(Teemu Tervo)
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.6.0-test1/arch/mips/ramdisk/Makefile linux-2.6.0-test1-ac2/arch/mips/ramdisk/Makefile
--- linux-2.6.0-test1/arch/mips/ramdisk/Makefile 2003-07-10 21:12:14.000000000 +0100
+++ linux-2.6.0-test1-ac2/arch/mips/ramdisk/Makefile 2003-07-15 17:24:40.000000000 +0100
@@ -2,7 +2,7 @@
# Makefile for a ramdisk image
#

-O_FORMAT = $(shell $(OBJDUMP) -i | head -2 | grep elf32)
+O_FORMAT = $(shell $(OBJDUMP) -i | head -n 2 | grep elf32)
img = $(CONFIG_EMBEDDED_RAMDISK_IMAGE)
ramdisk.o: $(subst ",,$(img)) ld.script
echo "O_FORMAT: " $(O_FORMAT)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.016 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site