diff options
author | Martin Roth <martinroth@google.com> | 2017-11-16 22:46:56 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-11-22 18:28:56 +0000 |
commit | ae01634e47326f83f74e5d3d729130343eb78f32 (patch) | |
tree | bc56607b318ad226ebb50887bf1f19f909c6be94 /src/vendorcode/amd/pi/00670F00/check_for_wrapper.h | |
parent | 4d13307030eb26d92b1516e9d63cbf3397a7e047 (diff) |
vendorcode/amd/pi/00670F00: Halt build if headers aren't wrapped
Make sure that AGESA headers don't get pulled directly into coreboot
files again.
BUG=b:66818758
TEST=Build gardenia; Build & boot kahlee; Include AGESA.h into files
verify that the build fails.
Change-Id: I8d6d94872ebf76a9df2850ed0452cf6b1a446ffd
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/22500
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/vendorcode/amd/pi/00670F00/check_for_wrapper.h')
-rw-r--r-- | src/vendorcode/amd/pi/00670F00/check_for_wrapper.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/vendorcode/amd/pi/00670F00/check_for_wrapper.h b/src/vendorcode/amd/pi/00670F00/check_for_wrapper.h new file mode 100644 index 0000000000..86d3b3904b --- /dev/null +++ b/src/vendorcode/amd/pi/00670F00/check_for_wrapper.h @@ -0,0 +1,21 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2017 Google, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/* Do not use header guards on this file */ + +/* This header should be included *BEFORE* any guards in the AGESA header */ +#if !defined AGESA_HEADERS_ARE_WRAPPED && !ENV_LIBAGESA +#error AGESA headers should be included by agesawrapper.h or agesa_headers.h +#endif |