Messages in this thread | | | Date | Tue, 23 Sep 2008 14:37:59 -0700 | From | "H. Peter Anvin" <> | Subject | Re: [update5] [PATCH] init: bzip2 or lzma -compressed kernels and initrds |
| |
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
| |