blob: a9e9b0cea06f73834288a334b3ea7c05c633c8fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# SPDX-License-Identifier: GPL-2.0+
make_srec_image() {
local image=$output_dir/arch/$arch/boot/$image_kernel
cat $image | lzma -z -e > $image.xz
objcopy -I binary -O srec --srec-forceS3 --srec-len 516 \
$image.xz $image.xz.srec
for dtb in $dtbs ; do
local src=${dtb/:*/}
objcopy -I binary -O srec --srec-forceS3 --srec-len 516 \
$src $src.srec
done
}
image_file=$output_dir/arch/$arch/boot/$kernel_image.xz.srec
|