diff options
author | Che-Liang Chiou <clchiou@chromium.org> | 2011-07-25 14:39:35 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:59:13 -0700 |
commit | 34b7b623417dc1ba47f9d18a2e59e05787f6839c (patch) | |
tree | 073a193dd9f8099bf70ed8cee0540129fbc642f6 /board/nvidia/vbexport/Makefile | |
parent | d62fd066dbf5af9d6f44ce1d2f7e75f563b4fa9a (diff) |
CHROMIUM: add cros_vboot/cros_legacy to kernel command line
Some scripts, like those in factory process, detect whether Chrome OS is
booted from a verified boot or a legacy boot by overloading crossystem.
If crossystem returns a valid hardware id, the scripts believe that
Chrome OS is booted from a verified boot.
Although this trick works, it does not sound right. This patch adds
"cros_vboot" and "cros_legacy" to kernel command line of verified boot
firmware and legacy firmware so that the scripts can grep the value, or
the crossystem may do the grep.
This patch also fixes unsafe use of strncpy.
BUG=chromium-os:15700,chromium-os:18139
TEST=verified boot and grep cros_vboot /proc/cmdline
TEST=boot from legacy and grep cros_legacy /proc/cmdline
Change-Id: Id5182c2f4e05fc566a17b1e50f9157f96c50f866
Reviewed-on: http://gerrit.chromium.org/gerrit/4645
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Diffstat (limited to 'board/nvidia/vbexport/Makefile')
0 files changed, 0 insertions, 0 deletions