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