Skip to content

Commit

Permalink
config: introduce a new variable, FIT_IMAGE
Browse files Browse the repository at this point in the history
This commit adds a new variable, FIT_IMAGE. It specifies the file name
of FIT which has been hardcoded in 'rsa_kernel.fit' so far. This change
will make the FIT file name configurable.

Change-Id: Id8cb12f67b5a9948bdb9c189b0ffd06adb5e33bd
Signed-off-by: Heesub Shin <[email protected]>
  • Loading branch information
Heesub Shin committed Mar 22, 2018
1 parent cceceff commit fcdd463
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export E2E_PLUGIN_DIR=$ARTIK_BUILD_DIR/../artik-e2e-plugins
export KERNEL_DIR=$ARTIK_BUILD_DIR/../linux-artik
export UBOOT_DIR=$ARTIK_BUILD_DIR/../u-boot-artik
export KERNEL_IMAGE=zImage
export FIT_IMAGE=rsa_kernel.fit
export UBOOT_IMAGE=u-boot.bin
export UBOOT_ENV_SECTION=.rodata

Expand Down
6 changes: 3 additions & 3 deletions mkvboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ dd if=$INITRD of=$OUTPUT_DIR/initrd.gz bs=1 skip=64

cp $ITS_FILE $OUTPUT_DIR
pushd $OUTPUT_DIR
./mkimage -f $ITS_NAME rsa_kernel.fit
./mkimage -k $KEY_DIR -r -F -K u-boot.dtb rsa_kernel.fit
./mkimage -f $ITS_NAME $FIT_IMAGE
./mkimage -k $KEY_DIR -r -F -K u-boot.dtb $FIT_IMAGE

# Copy verified boot files to original files
cp rsa_kernel.fit zImage
cp $FIT_IMAGE zImage
cat u-boot.bin u-boot.dtb > u-boot-dtb.bin
cp params_vboot.bin params.bin
cp params_recovery_vboot.bin params_recovery.bin
Expand Down

0 comments on commit fcdd463

Please sign in to comment.