aboutsummaryrefslogtreecommitdiff
path: root/projects/cros-scripts/install/cros-kernel-prepare
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2016-12-25 19:22:23 +0100
committerLeah Rowe <info@minifree.org>2017-01-15 14:24:46 +0000
commit2ff18262ad41d967ebc1db71a2e94cf632ba6b5f (patch)
treeb8080f49e0cf61f7cd5b71be32461edb8b33bfce /projects/cros-scripts/install/cros-kernel-prepare
parentb5597e4e74999886a532e71251be9571b0f748a8 (diff)
downloadlibrebootfr-2ff18262ad41d967ebc1db71a2e94cf632ba6b5f.tar.gz
librebootfr-2ff18262ad41d967ebc1db71a2e94cf632ba6b5f.zip
cros-scripts: Use medium name when packing kernel images
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'projects/cros-scripts/install/cros-kernel-prepare')
-rwxr-xr-xprojects/cros-scripts/install/cros-kernel-prepare13
1 files changed, 7 insertions, 6 deletions
diff --git a/projects/cros-scripts/install/cros-kernel-prepare b/projects/cros-scripts/install/cros-kernel-prepare
index 00f90234..1af05bd2 100755
--- a/projects/cros-scripts/install/cros-kernel-prepare
+++ b/projects/cros-scripts/install/cros-kernel-prepare
@@ -21,9 +21,10 @@ VBPUBK="vbpubk"
ARCH="arch"
CMDLINE="cmdline"
BOOTLOADER="bootloader"
-KERNEL_ITS="kernel.its"
-KERNEL_FIT="kernel.fit"
-KERNEL_IMAGE="kernel.img"
+KERNEL="kernel"
+ITS="its"
+FIT="fit"
+IMG="img"
usage() {
printf "$executable [action] [kernel files|kernel image] [medium]\n" >&2
@@ -51,9 +52,9 @@ pack() {
local arch=$( cat "$arch_path" )
local cmdline_path="$kernel_files_path/$CMDLINE-$medium"
local bootloader_path="$kernel_files_path/$BOOTLOADER"
- local kernel_its_path="$kernel_files_path/$KERNEL_ITS"
- local kernel_fit_path="$kernel_files_path/$KERNEL_FIT"
- local kernel_image_path="$kernel_files_path/$KERNEL_IMAGE"
+ local kernel_its_path="$kernel_files_path/$KERNEL.$ITS"
+ local kernel_fit_path="$kernel_files_path/$KERNEL.$FIT"
+ local kernel_image_path="$kernel_files_path/$KERNEL-$medium.$IMG"
mkimage -f "$kernel_its_path" "$kernel_fit_path"
futility vbutil_kernel --pack "$kernel_image_path" --version 1 --arch "$arch" --keyblock "$VBOOT_KEYS_PATH/kernel.$KEYBLOCK" --signprivate "$VBOOT_KEYS_PATH/kernel_data_key.$VBPRIVK" --config "$cmdline_path" --vmlinuz "$kernel_fit_path" --bootloader "$bootloader_path"