The xz compression allows higher compression rates and higher speeds, a quick measurement lead to this numbers: gzip --best: compression 131.11s, decompression 9.797s (299M) xz -3 (single thread): compression 95.13s, decompression 14.902s (228M) xz -3 (multi thread): compression 12.146s, decompression 14.902s (228M)
25 lines
545 B
Bash
Executable File
25 lines
545 B
Bash
Executable File
#!/bin/bash
|
|
# shellcheck disable=SC2155
|
|
|
|
function hassos_pre_image() {
|
|
local BOOT_DATA="$(path_boot_dir)"
|
|
local UBOOT_G12B="${BINARIES_DIR}/u-boot.g12b"
|
|
local SPL_IMG="$(path_spl_img)"
|
|
|
|
cp "${BINARIES_DIR}/boot.scr" "${BOOT_DATA}/boot.scr"
|
|
cp "${BINARIES_DIR}"/*.dtb "${BOOT_DATA}/"
|
|
|
|
echo "console=tty0 console=ttyAML0,115200n8" > "${BOOT_DATA}/cmdline.txt"
|
|
|
|
# SPL
|
|
create_spl_image
|
|
|
|
dd if="${UBOOT_G12B}" of="${SPL_IMG}" conv=notrunc bs=512 seek=1
|
|
}
|
|
|
|
|
|
function hassos_post_image() {
|
|
convert_disk_image_xz
|
|
}
|
|
|