[LEDE-DEV] [PATCH] lantiq: do not build images which exceed the flash size
John Crispin
john at phrozen.org
Sat May 21 03:42:29 PDT 2016
On 21/05/2016 12:29, David Lang wrote:
> On Sat, 21 May 2016, Mathias Kresin wrote:
>
>> The user benpicco in #openwrt reported that images are build which are
>> bigger that the available flash size.
>
> I'm not sure that I agree with this approach.
>
> I had an issue when building images recently where I had something in
> the image that was blowing it up beyond flash size, but because the
> build system refused to build the image, I couldn't easly figure out
> what was casuing it.
>
> I've also had a case where I wanted to build an ext* image as well as a
> compressed image, but the build system aborted and didn't build any of
> them because the ext image would have been too large.
>
> Throwing an error out in the middle of the build isn't going to work (it
> is lost in the noise), but possibly accumulate records of such errors
> and throw a big warning message at the end of the build saying that some
> of the resulting images are too big (and which ones)
>
Hi David,
sounds like a good idea. would you mind cooking up a patch to do this ?
the other idea floating around was to delete images before rebuilding
them. otherwise you might end up using an old image, thinking it is a
new one.
John
More information about the Lede-dev
mailing list