Re: [update5] [PATCH] init: bzip2 or lzma -compressed kernels andinitrds
From: H. Peter Anvin
Date: Tue Sep 23 2008 - 17:39:35 EST
Alain Knaff wrote:
H. Peter Anvin wrote:
More failures...
/bin/sh: scripts/bin_size: No such file or directory
Could be a permission issue. Did you try to chmod 755 scripts/bin_size ?
Hmmm, diff does indeed not encode permissions, how should such cases be
usually handled?
A few more thoughts:
quiet_cmd_bzip2 = BZIP2 $@
cmd_bzip2 = (bzip2 -9 < $< ; $(size_append) $<) > $@
quiet_cmd_lzma = LZMA $@
cmd_lzma = (lzma -9 -c $< ; $(size_append) $<) >$@
These will produce stale files on failure. Using stdout in Makefiles is
a bit tricky. You probably need something like:
(bzip2 -9 < $< && $(size_append) $<) > $@ || (rm -f $@ ; false)
-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/