make.sh: fit: apply make_fit_boot.sh to make boot.img
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I406d519725c750386784576416b662b448859f67
This commit is contained in:
parent
146289715c
commit
0d7448d032
2
make.sh
2
make.sh
|
|
@ -310,7 +310,7 @@ function sub_commands()
|
||||||
|
|
||||||
fit)
|
fit)
|
||||||
if [ "${arg}" == "ns" ]; then
|
if [ "${arg}" == "ns" ]; then
|
||||||
./scripts/fit-mkimg.sh --uboot-itb --boot-itb --no-vboot ${ARG_FIT}
|
./scripts/fit-mkimg.sh --uboot-itb --boot-itb --no-vboot ${ARG_LIST_FIT}
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ SPL_DTB="spl/u-boot-spl.dtb"
|
||||||
UBOOT_DTB="u-boot.dtb"
|
UBOOT_DTB="u-boot.dtb"
|
||||||
# its
|
# its
|
||||||
ITS_UBOOT="u-boot.its"
|
ITS_UBOOT="u-boot.its"
|
||||||
|
ITS_BOOT="boot.its"
|
||||||
|
|
||||||
function help()
|
function help()
|
||||||
{
|
{
|
||||||
|
|
@ -295,8 +296,11 @@ function fit_gen_boot_itb()
|
||||||
${FIT_UNPACK} -f ${ARG_EXT_BOOT} -o ${FIT_DIR}/unpack
|
${FIT_UNPACK} -f ${ARG_EXT_BOOT} -o ${FIT_DIR}/unpack
|
||||||
ITS_BOOT="${FIT_DIR}/unpack/image.its"
|
ITS_BOOT="${FIT_DIR}/unpack/image.its"
|
||||||
else
|
else
|
||||||
ITS_BOOT="kernel_arm.its"
|
compression=`awk -F"," '/COMPRESSION=/ { printf $1 }' ${ARG_INI_TRUST} | tr -d ' ' | cut -c 13-`
|
||||||
cp arch/arm/mach-rockchip/${ITS_BOOT} ./
|
if [ -z "${compression}" ]; then
|
||||||
|
compression="none"
|
||||||
|
fi
|
||||||
|
./arch/arm/mach-rockchip/make_fit_boot.sh -c ${compression} > ${ITS_BOOT}
|
||||||
check_its ${ITS_BOOT}
|
check_its ${ITS_BOOT}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -457,15 +461,6 @@ function fit_vboot_uboot()
|
||||||
fit_msg_uboot
|
fit_msg_uboot
|
||||||
}
|
}
|
||||||
|
|
||||||
function fit_vboot_boot()
|
|
||||||
{
|
|
||||||
fit_rebuild
|
|
||||||
fit_boot_make_itb
|
|
||||||
fit_boot_make_img
|
|
||||||
echo
|
|
||||||
fit_verbose_boot
|
|
||||||
}
|
|
||||||
|
|
||||||
function fit_vboot()
|
function fit_vboot()
|
||||||
{
|
{
|
||||||
fit_rebuild
|
fit_rebuild
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue