From ae01634e47326f83f74e5d3d729130343eb78f32 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Thu, 16 Nov 2017 22:46:56 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/22500 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Aaron Durbin --- src/vendorcode/amd/pi/00670F00/check_for_wrapper.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/vendorcode/amd/pi/00670F00/check_for_wrapper.h (limited to 'src/vendorcode/amd/pi/00670F00/check_for_wrapper.h') 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 -- cgit v1.2.3