|
first cut: establishes base helper classes and main
cros_boot_mode supports determining the boot mode of a Chrome OS device.
By default, unsupported devices will be considered to be in "normal"
mode and CrOS devices with custom platform support will export the
required interfaces to support indicating "developer" mode.
In addition, there is support for short-circuiting the detection
using a kernel commandline parameter to enable arbitrary testing
of a single, untouched image on supported hardware without recompiling
the kernel, flipping switch, etc.
NOTE: common.mk was copied over from verity/common.mk.
Moved here from http://codereview.chromium.org/3432027/show
TEST=unittests
BUG= chromium-os:824, chromium-os:6864
Total comments: 14
Total comments: 45
Total comments: 14
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1812 lines, --1 lines) |
Patch |
|
A |
LICENSE
|
View
|
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
|
A |
Makefile
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
|
M |
README
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
A |
active_main_firmware.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
|
A |
active_main_firmware.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+39 lines, -0 lines |
0 comments
|
Download
|
|
A |
boot_mode.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+76 lines, -0 lines |
0 comments
|
Download
|
|
A |
boot_mode.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+110 lines, -0 lines |
0 comments
|
Download
|
|
A |
boot_mode_main.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+128 lines, -0 lines |
0 comments
|
Download
|
|
A |
boot_mode_testrunner.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A |
boot_mode_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+218 lines, -0 lines |
0 comments
|
Download
|
|
A |
bootloader_type.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+64 lines, -0 lines |
0 comments
|
Download
|
|
A |
bootloader_type.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+62 lines, -0 lines |
0 comments
|
Download
|
|
A |
bootloader_type_unittest.cc
|
View
|
9
|
1 chunk |
+114 lines, -0 lines |
0 comments
|
Download
|
|
A |
common.mk
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+478 lines, -0 lines |
0 comments
|
Download
|
|
A |
developer_switch.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
|
A |
developer_switch.cc
|
View
|
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
|
A |
developer_switch_unittest.cc
|
View
|
9
10
11
12
|
1 chunk |
+101 lines, -0 lines |
0 comments
|
Download
|
|
A |
helpers.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
|
A |
helpers.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
|
A |
inherit-review-settings-ok
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
|
A |
platform_reader.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+69 lines, -0 lines |
0 comments
|
Download
|
|
A |
platform_reader.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
|
A |
platform_switch.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
|
A |
platform_switch.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
Total messages: 26 (0 generated)
|