diff options
author | vbendeb <vbendeb@chromium.org> | 2010-06-21 08:40:26 -0700 |
---|---|---|
committer | vbendeb <vbendeb@chromium.org> | 2010-06-21 08:40:26 -0700 |
commit | 6216f5abe9901e9c47789d55ae90243c6cc50aeb (patch) | |
tree | 64094eb0d977e5ec76de4c92f19a9e65c3d88a13 /firmware/include | |
parent | 620c38cf34eadcd222535b01fb71c5e9fbc1cb80 (diff) | |
download | vboot-6216f5abe9901e9c47789d55ae90243c6cc50aeb.tar.gz |
Include BIOS specific definitions when required.
This is a noop for host/chroot environment. When compiling
in the firmware space the standard include files will not be
included, the definitions will be supplied by the BIOS,
through the new file (firmware/include/sysincludes.h).
Testing
=======
RUNTESTS=1 make
in the top level directory succeeds, confirming that the
tree compiles cleanly and the unit tests pass.
Review URL: http://codereview.chromium.org/2862019
Diffstat (limited to 'firmware/include')
-rw-r--r-- | firmware/include/sysincludes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/include/sysincludes.h b/firmware/include/sysincludes.h index 758e5820..13c0914a 100644 --- a/firmware/include/sysincludes.h +++ b/firmware/include/sysincludes.h @@ -15,6 +15,8 @@ #ifndef VBOOT_REFERENCE_SYSINCLUDES_H_ #define VBOOT_REFERENCE_SYSINCLUDES_H_ +#ifdef CHROMEOS_ENVIRONMENT + #include <inttypes.h> /* For PRIu64 */ #include <stdint.h> #include <stdlib.h> @@ -24,5 +26,8 @@ #include <memory.h> #endif +#else +#include "stub/biosincludes.h" +#endif #endif /* VBOOT_REFERENCE_SYSINCLUDES_H_ */ |