[LEDE-DEV] [PATCH] lantiq: do not build images which exceed the flash size

David Lang david at lang.hm
Sat May 21 03:29:24 PDT 2016


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)

David Lang



More information about the Lede-dev mailing list