hc
2024-08-16 a24a44ff9ca902811b99aa9663d697cf452e08ef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
#
# Copyright (c) 2020 Fuzhou Rockchip Electronics Co., Ltd
#
# SPDX-License-Identifier: GPL-2.0
#
set -e
 
source ./scripts/fit-core.sh
fit_process_args $*
 
if [ ! -z "${ARG_VALIDATE}" ]; then
   validate_arg ${ARG_VALIDATE}
else
   fit_raw_compile
   if [ ! -z "${ARG_RECOVERY_IMG}" ]; then
       fit_gen_recovery_itb
       fit_gen_recovery_img
   fi
   # "--boot_img_dir" is for U-Boot debug only
   if [ ! -z "${ARG_BOOT_IMG}" -o ! -z "${ARG_BOOT_IMG_DIR}" ]; then
       fit_gen_boot_itb
       fit_gen_boot_img
   fi
 
   if [ ! -z "${ARG_INI_TRUST}" ]; then
       fit_gen_uboot_itb
       fit_gen_uboot_img
   fi
 
   if [ ! -z "${ARG_INI_LOADER}" ]; then
       fit_gen_loader
   fi
 
   echo
 
   if [ ! -z "${ARG_INI_TRUST}" ]; then
       fit_msg_uboot
   fi
   fit_msg_recovery
   fit_msg_boot
   if [ ! -z "${ARG_INI_LOADER}" ]; then
       fit_msg_loader
   fi
fi