Files
OpenCellular/firmware/stub/include/biosincludes.h
Simon Glass c25904536f Add a few comments and warnings when building incorrectly
The Makefile requires a few defines and isn't very friendly if they are
missing. This adds some warnings which should alert as to what is wrong.

BUG=chromium-os:16808
TEST=emerge vboot_reference-firmware for tegra2-seaboard, x86-mario

Change-Id: Id3b20365cfcc7f0aa7d984b33b6a0906ae0d44a5
Reviewed-on: https://gerrit.chromium.org/gerrit/11548
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
2011-11-14 13:59:14 -08:00

43 lines
1.1 KiB
C

/* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef CHROMEOS_SRC_PLATFORM_VBOOT_REFERENCE_FIRMWARE_STUB_BIOSINCLUDES_H_
#define CHROMEOS_SRC_PLATFORM_VBOOT_REFERENCE_FIRMWARE_STUB_BIOSINCLUDES_H_
/*
* This file is a placeholder for the includes supplied by the BIOS
* compilation environment. This file is included if and only if
* CHROMEOS_ENVIRONMENT is not defined at compilation time.
*/
#ifdef TARGET_TEST_MODE
typedef unsigned long long uint64_t;
typedef long long int64_t;
typedef unsigned int uint32_t;
typedef unsigned short uint16_t;
typedef unsigned char uint8_t;
typedef unsigned size_t;
#ifndef NULL
#define NULL ((void*) 0)
#endif
#define UINT32_C(x) ((uint32_t)x)
#define UINT64_C(x) ((uint64_t)x)
#define __attribute__(x)
#define PRIu64 "llu"
extern void debug(const char *format, ...);
#define POSSIBLY_UNUSED
#define INLINE
#else
#warning "No FIRMARE_ARCH defined and not TARGET_TEST_MODE"
#endif
#endif /*CHROMEOS_SRC_PLATFORM_VBOOT_REFERENCE_FIRMWARE_STUB_BIOSINCLUDES_H_*/