lkml.org 
[lkml]   [2008]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2008-09-23 23:41    [W:1.648 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site