From 6b0d0d6e14f8e385e1457df5699136473144ed60 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Fri, 14 Dec 2012 17:16:21 -0600 Subject: cbfstool: Add update-fit command Add support for filling in the Firmware Interface Table. For now it only supports adding microcode entries. It takes 2 options: 1. Name of file in cbfs where the mircocode is located 2. The number of empty entries in the table. Verified with go firmware tools. Also commented out updating microcode in the bootblock. When romstage runs, the CPUs indicate their microcode is already loaded. Change-Id: Iaccaa9c226ee24868a5f4c0ba79729015d15bbef Signed-off-by: Aaron Durbin Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/2712 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- util/cbfstool/fit.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 util/cbfstool/fit.h (limited to 'util/cbfstool/fit.h') diff --git a/util/cbfstool/fit.h b/util/cbfstool/fit.h new file mode 100644 index 0000000000..63e22f4a2b --- /dev/null +++ b/util/cbfstool/fit.h @@ -0,0 +1,25 @@ +/* + * Firmware Interface Table support. + * + * Copyright (C) 2012 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 __CBFSTOOL_FIT_H +#define __CBFSTOOL_FIT_H + +int fit_update_table(struct cbfs_image *image, + int empty_entries, const char *microcode_blob_name); +#endif -- cgit v1.2.3