mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] images: Add file size check for PBLX files
@ 2015-06-10  7:05 Wadim Egorov
  2015-06-10  7:05 ` [PATCH 2/2] ARM: OMAP: Add max file size for PBLX images Wadim Egorov
  0 siblings, 1 reply; 2+ messages in thread
From: Wadim Egorov @ 2015-06-10  7:05 UTC (permalink / raw)
  To: barebox

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
---
 common/Kconfig  | 10 ++++++++++
 images/Makefile |  1 +
 2 files changed, 11 insertions(+)

diff --git a/common/Kconfig b/common/Kconfig
index 1c5d14c..0ffa783 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -198,6 +198,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
 
diff --git a/images/Makefile b/images/Makefile
index 587cb26..bbbfd81 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -75,6 +75,7 @@ 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)
-- 
1.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-10  7:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-10  7:05 [PATCH 1/2] images: Add file size check for PBLX files Wadim Egorov
2015-06-10  7:05 ` [PATCH 2/2] ARM: OMAP: Add max file size for PBLX images Wadim Egorov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox