1Independent LZMA test
2---------------------
3
4This tool finds and extracts compressed stream, decompresses it and verifies if
5decompressed one is identical as before compression.
6
7Building and running:
8
9	change directory to the top of the repos:
10
11		cd $ZEPHYR_BASE
12		cd ..
13
14	build tool:
15
16		g++ bootloader/mcuboot/samples/compression_test/independent_cmp.c -o indcmp
17
18	build example application:
19
20		west build -b nrf54l15dk/nrf54l15/cpuapp -p
21			-s zephyr/samples/hello_world/ --
22			-DSB_CONFIG_BOOTLOADER_MCUBOOT=y
23			-DSB_CONFIG_MCUBOOT_MODE_OVERWRITE_ONLY=y
24			-DSB_CONFIG_MCUBOOT_COMPRESSED_IMAGE_SUPPORT=y
25
26
27	compare application image with the one carried by signed binary:
28
29		./indcmp build/hello_world/zephyr/zephyr.signed.bin
30			build/hello_world/zephyr/zephyr.bin
31
32	note: order of arguments matter. Compressed goes first.
33