diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-09-25 12:36:48 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-09-25 12:36:48 +0200 |
commit | b674fcfbf465c08b5d5b445c308fc0101cdd1f74 (patch) | |
tree | 4dc12088451551c5f618a3e73313a6b4b5c418e8 /scripts/Makefile.lib | |
parent | 93eb4971be7045571e612ff240c55293d4bf139f (diff) | |
parent | 290960f33d0ca45a9263e87f5107ca4133fb6ed6 (diff) | |
download | barebox-b674fcfbf465c08b5d5b445c308fc0101cdd1f74.tar.gz barebox-b674fcfbf465c08b5d5b445c308fc0101cdd1f74.tar.xz |
Merge branch 'for-next/misc'
Diffstat (limited to 'scripts/Makefile.lib')
-rw-r--r-- | scripts/Makefile.lib | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 57cc78086f..18b4fc1b9d 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -481,34 +481,6 @@ cmd_lzo = (cat $(filter-out FORCE,$^) | \ %.lzo: % $(call if_changed,lzo) -# XZ -# --------------------------------------------------------------------------- -# Use xzkern to compress the kernel image and xzmisc to compress other things. -# -# xzkern uses a big LZMA2 dictionary since it doesn't increase memory usage -# of the kernel decompressor. A BCJ filter is used if it is available for -# the target architecture. xzkern also appends uncompressed size of the data -# using size_append. The .xz format has the size information available at -# the end of the file too, but it's in more complex format and it's good to -# avoid changing the part of the boot code that reads the uncompressed size. -# Note that the bytes added by size_append will make the xz tool think that -# the file is corrupt. This is expected. -# -# xzmisc doesn't use size_append, so it can be used to create normal .xz -# files. xzmisc uses smaller LZMA2 dictionary than xzkern, because a very -# big dictionary would increase the memory usage too much in the multi-call -# decompression mode. A BCJ filter isn't used either. -quiet_cmd_xzkern = XZKERN $@ -cmd_xzkern = (cat $(filter-out FORCE,$^) | \ - sh $(srctree)/scripts/xz_wrap.sh && \ - $(call size_append, $(filter-out FORCE,$^))) > $@ || \ - (rm -f $@ ; false) - -quiet_cmd_xzmisc = XZMISC $@ -cmd_xzmisc = (cat $(filter-out FORCE,$^) | \ - xz --check=crc32 --lzma2=dict=1MiB) > $@ || \ - (rm -f $@ ; false) - # lz4 # --------------------------------------------------------------------------- @@ -636,7 +608,7 @@ quiet_cmd_b64dec = B64DEC $@ # target file. quiet_cmd_rsa_keys = RSAKEY $@ cmd_rsa_keys = \ - $(objtree)/scripts/rsatoc -o $@.tmp "$(2)" && \ + $(objtree)/scripts/rsatoc -o $@.tmp "$(2)" $(3) && \ if cmp -s $@.tmp $@; then \ rm $@.tmp; \ else \ |