From f9fb0d9bf3944e643e76ea9336565e28cef30547 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Wed, 23 Jul 2014 18:32:01 -0700 Subject: Use a common boardid.h instead of per board copies There is no point in duplicating boardid.h per board - they are all the same. Let's keep a single instance in the common include directory and let the linker report a problem if one tries using this function on a board where it is not supported. BUG=chrome-os-partner:30489 TEST=verified that coreboot builds fine for nyan_big and nyan_blaze. Original-Change-Id: Ifbe9c2287a1d828d4db74c637d1d02047ac4da25 Original-Signed-off-by: Vadim Bendebury Original-Reviewed-on: https://chromium-review.googlesource.com/209699 Original-Reviewed-by: Aaron Durbin Original-Reviewed-by: Furquan Shaikh (cherry picked from commit 589e6415faf18ca6aaf44da343dd33eadc8a53d3) Signed-off-by: Marc Jones Change-Id: I8eef89cb822611a0050e5a50fc4b970eebd8d962 Reviewed-on: http://review.coreboot.org/8666 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/mainboard/google/rush_ryu/boardid.c | 2 +- src/mainboard/google/rush_ryu/boardid.h | 27 --------------------------- 2 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 src/mainboard/google/rush_ryu/boardid.h (limited to 'src/mainboard/google/rush_ryu') diff --git a/src/mainboard/google/rush_ryu/boardid.c b/src/mainboard/google/rush_ryu/boardid.c index 76bd4d9a84..67e55ba3fb 100644 --- a/src/mainboard/google/rush_ryu/boardid.c +++ b/src/mainboard/google/rush_ryu/boardid.c @@ -20,7 +20,7 @@ #include #include -#include "boardid.h" +#include uint8_t board_id(void) { diff --git a/src/mainboard/google/rush_ryu/boardid.h b/src/mainboard/google/rush_ryu/boardid.h deleted file mode 100644 index aa2ea5f903..0000000000 --- a/src/mainboard/google/rush_ryu/boardid.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * Copyright 2014 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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef __MAINBOARD_GOOGLE_RUSH_BOARDID_H__ -#define __MAINBOARD_GOOGLE_RUSH_BOARDID_H__ - -#include - -uint8_t board_id(void); - -#endif /* __MAINBOARD_GOOGLE_RUSH_BOARDID_H__ */ -- cgit v1.2.3