Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Unified Diff: update_bootloaders.sh

Issue 3396011: build_image: Add verity support for ARM. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build_kernel_image.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: update_bootloaders.sh
diff --git a/update_bootloaders.sh b/update_bootloaders.sh
index 695d7ab7014357da9974464d2b539473894e6039..7c6b0dd9bea43bf5f7ebc0665690e243e2df0f64 100755
--- a/update_bootloaders.sh
+++ b/update_bootloaders.sh
@@ -183,29 +183,6 @@ if [[ "${FLAGS_arch}" = "x86" ]]; then
sudo syslinux -d /syslinux "${ESP_DEV}"
fi
elif [[ "${FLAGS_arch}" = "arm" ]]; then
- # Extract kernel flags
- kernel_cfg=
- old_root="sd%D%P"
- if [[ -n "${FLAGS_kernel_cmdline}" ]]; then
- info "Using supplied kernel_cmdline to update templates."
- kernel_cfg="${FLAGS_kernel_cmdline}"
- elif [[ -n "${FLAGS_kernel_partition}" ]]; then
- info "Extracting the kernel command line from ${FLAGS_kernel_partition}"
- kernel_cfg=$(dump_kernel_config "${kernel_partition}")
- fi
- dm_table=
- if echo "$kernel_cfg" | grep -q 'dm="'; then
- dm_table=$(echo "$kernel_cfg" | sed -s 's/.*dm="\([^"]*\)".*/\1/')
- fi
- # TODO(wad) assume usb_disk contains the arm boot location for now.
- new_root="${FLAGS_usb_disk}"
- info "Replacing dm slave devices with /dev/${new_root}"
- dm_table="${dm_table//ROOT_DEV/\/dev\/${new_root}}"
- dm_table="${dm_table//HASH_DEV/\/dev\/${new_root}}"
-
- warn "FIXME: cannot replace root= here for the arm bootloader yet."
- dm_table="" # TODO(wad) Clear it until we can fix root=/dev/dm-0
-
# Copy u-boot script to ESP partition
if [ -r "${FLAGS_from}/boot-A.scr.uimg" ]; then
sudo mkdir -p "${ESP_FS_DIR}/u-boot"
« no previous file with comments | « build_kernel_image.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698