Commit 3e4c5fb7 authored by Uwe Kleine-König's avatar Uwe Kleine-König
Browse files

Add Boot-DTB-Path-Version similar to Boot-Kernel-Path-Version.

parent d5f7d864
......@@ -152,9 +152,9 @@ The supported fields are:
generated kernel and initrd files on the filesystem; see also
Boot-Device
* Boot-Kernel-Path-Version, Boot-Initrd-Path-Version: (optional)
appends the kernel version to files created with Boot-Kernel-Path
and Boot-Initrd-Path.
* Boot-Kernel-Path-Version, Boot-Initrd-Path-Version, Boot-DTB-Path-Version:
(optional) if "yes" appends the kernel version to files created with
Boot-Kernel-Path, Boot-Initrd-Path and Boot-DTB-Path.
* Boot-Script-Path: (optional) like Boot-Kernel-Path and
Boot-Initrd-Path but for an U-Boot boot script; see also
......
flash-kernel (3.94) UNRELEASED; urgency=medium
[ Vagrant Cascadian ]
* Fix typos in imx-base boot script.
[ Uwe Kleine-König ]
* Add Boot-DTB-Path-Version similar to Boot-Kernel-Path-Version.
-- Vagrant Cascadian <vagrant@debian.org> Tue, 20 Mar 2018 00:59:07 -0700
flash-kernel (3.93) unstable; urgency=medium
......
......@@ -822,6 +822,7 @@ boot_kernel_path_version="$(get_machine_field "$machine" "Boot-Kernel-Path-Versi
boot_initrd_path_version="$(get_machine_field "$machine" "Boot-Initrd-Path-Version")" || :
boot_script_path="$(get_machine_field "$machine" "Boot-Script-Path")" || :
boot_dtb_path="$(get_machine_field "$machine" "Boot-DTB-Path")" || :
boot_dtb_path_version="$(get_machine_field "$machine" "Boot-DTB-Path-Version")" || :
boot_multi_path="$(get_machine_field "$machine" "Boot-Multi-Path")" || :
android_boot_device="$(get_machine_field "$machine" "Android-Boot-Device")" || :
......@@ -988,6 +989,9 @@ case "$method" in
fi
if [ -n "$boot_dtb_path" ] && [ "$dtb_append" != "no" ]; then
boot_dtb_path="$boot_mnt_dir/$boot_dtb_path"
if [ "$boot_dtb_path_version" = "yes" ]; then
boot_dtb_path="${boot_dtb_path}-${kvers}"
fi
boot_dtb=$(find_dtb_file)
dtb="$tmpdir/dtb"
cp "$boot_dtb" "$dtb"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment