9
0
Fork 0

images: Add file size check for PBLX files

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Wadim Egorov 2015-06-25 10:18:28 +02:00 committed by Sascha Hauer
parent 24867bac8a
commit 438dcfdb76
2 changed files with 12 additions and 0 deletions

View File

@ -201,6 +201,16 @@ config BAREBOX_MAX_BARE_INIT_SIZE
this will allow your bare_init to fit in SRAM as example
ARCH can overwrite it via ARCH_BAREBOX_MAX_BARE_INIT_SIZE
config BAREBOX_MAX_PBLX_SIZE
depends on PBL_MULTI_IMAGES
depends on IMAGE_COMPRESSION
prompt "Maximum PBLX size"
hex
default 0xffffffff
help
Define the maximum size of the PBLX image.
The pblx is a self extracting barebox binary.
config HAVE_CONFIGURABLE_MEMORY_LAYOUT
bool

View File

@ -75,6 +75,8 @@ quiet_cmd_pblx ?= PBLX $@
$(obj)/%.pblx: $(obj)/%.pblb $(obj)/barebox.z FORCE
$(call if_changed,pblx,$(@F))
$(call cmd,check_file_size,$@,$(CONFIG_BAREBOX_MAX_PBLX_SIZE))
$(obj)/%.s: $(obj)/% FORCE
$(call if_changed,disasm)