[PATCH] fixup! kbuild: pbl: use same compression algo for both barebox and DTB

Ahmad Fatoum a.fatoum at pengutronix.de
Fri Jul 15 08:57:01 PDT 2022


scripts: Makefile.lib: fix build for non-PBL DT-enabled boards

CONFIG_IMAGE_COMPRESSION_NONE is unset for non-PBL builds, leading to a
build failure for non-PBL boards that reference device trees.
Fix this by having comp_copy as default.

Reported-by: Sascha Hauer <s.hauer at pengutronix.de>
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 scripts/Makefile.lib | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index a648835b1bfb..9295f22e9fef 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -275,6 +275,7 @@ cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@
 # Decompressor for barebox proper binary when using PBL
 # ---------------------------------------------------------------------------
 
+suffix_y = comp_copy
 suffix_$(CONFIG_IMAGE_COMPRESSION_GZIP) = gzip
 suffix_$(CONFIG_IMAGE_COMPRESSION_LZO)  = lzo
 suffix_$(CONFIG_IMAGE_COMPRESSION_LZ4)	= lz4
-- 
2.30.2




More information about the barebox mailing list