diff options
author | Tom Wai-Hong Tam <waihong@chromium.org> | 2011-06-15 09:07:25 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:39:36 -0700 |
commit | 48e15702fe3a3d32abfc38f839af21db7a0b7a5f (patch) | |
tree | f541813e799e355173eb625f544de26d82af9cd5 /Makefile | |
parent | df2eeffdf8446bc8ceb8ae0bb3f476a0299180a6 (diff) |
CHROMIUM: Implement utility APIs provided by u-boot and exported to vboot_reference.
We put the new vboot wrapper export API to /lib/vbexport directory to separate
the original APIs which in /lib/chromeos directory.
A u-boot prompt testing tool, vbexport_test, is added for the API unit tests.
This CL is dependent on http://gerrit.chromium.org/gerrit/#change,2195
BUG=chromium-os:16543
TEST=build chromeos_seaboard_vboot_config, flash it to seaboard, and run:
Tegra2 # vbexport_test debug
Preforming the debug output tests...
Expect: K 75 Hello! It's "Chrome OS".
Actual: K 75 Hello! It's "Chrome OS".
Expect: -22222 0xa932
Actual: -22222 0xa932
Expect: 44444 0xad9c
Actual: 44444 0xad9c
Expect: -1111111111 0xbdc5ca39
Actual: -1111111111 0xbdc5ca39
Expect: 2222222222 0x84746b8e
Actual: 2222222222 0x84746b8e
Expect: -8888888888888888888 0x84a452a6a1dc71c8
Actual: -8888888888888888888 0x84a452a6a1dc71c8
Expect: 11111111111111111111 0x9a3298afb5ac71c7
Actual: 11111111111111111111 0x9a3298afb5ac71c7
Tegra2 # vbexport_test malloc
Preforming the malloc/free tests...
Trying to malloc a memory block for 1 bytes... - SUCCESS
Trying to malloc a memory block for 2 bytes... - SUCCESS
Trying to malloc a memory block for 4 bytes... - SUCCESS
Trying to malloc a memory block for 8 bytes... - SUCCESS
Trying to malloc a memory block for 32 bytes... - SUCCESS
Trying to malloc a memory block for 1024 bytes... - SUCCESS
Trying to malloc a memory block for 4096 bytes... - SUCCESS
Trying to malloc a memory block for 32768 bytes... - SUCCESS
Trying to malloc a memory block for 1048576 bytes... - SUCCESS
Trying to malloc a memory block for 12345 bytes... - SUCCESS
Trying to malloc a memory block for 13579 bytes... - SUCCESS
Tegra2 # vbexport_test sleep
Preforming the sleep tests...
System is going to sleep for 10 ms...
From tick 20158963 to 20168065 (delta: 9102) - SUCCESS
System is going to sleep for 50 ms...
From tick 20345437 to 20395038 (delta: 49601) - SUCCESS
System is going to sleep for 100 ms...
From tick 20572586 to 20672087 (delta: 99501) - SUCCESS
System is going to sleep for 500 ms...
From tick 20849623 to 21349024 (delta: 499401) - SUCCESS
System is going to sleep for 1000 ms...
From tick 21526751 to 22526052 (delta: 999301) - SUCCESS
Tegra2 # vbexport_test longsleep
Preforming the long sleep tests...
System is going to sleep for 5000 ms...
From tick 71318054 to 76318055 (delta: 5000001) - SUCCESS
System is going to sleep for 10000 ms...
From tick 76495950 to 86495051 (delta: 9999101) - SUCCESS
System is going to sleep for 50000 ms...
From tick 86672951 to 136672052 (delta: 49999101) - SUCCESS
Tegra2 # vbexport_test beep
Preforming the beep tests...
System is going to sleep for 500 ms...
Beep!
From tick 11288504 to 11788451 (delta: 499947) - SUCCESS
Change-Id: Ia192c1f152fa75f7d587d8a87eb22a1cf0a505c3
Reviewed-on: http://gerrit.chromium.org/gerrit/2656
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -215,6 +215,7 @@ LIBS += lib/lzma/liblzma.o LIBS += lib/lzo/liblzo.o LIBS += lib/zlib/libz.o LIBS += lib/chromeos/libchromeos.a +LIBS += lib/vbexport/libvbexport.a LIBS += board/$(VENDOR)/chromeos/libchromeos_hardware_interface.a LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \ "board/$(VENDOR)/common/lib$(VENDOR).o"; fi) |