diff options
author | Che-Liang Chiou <clchiou@chromium.org> | 2011-08-12 18:01:43 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:59:30 -0700 |
commit | 43025a49762515f843b5cd6d5be46a7196c0c70f (patch) | |
tree | 51cd4c0602fe85a1d99c26aea37d827d28cd1069 /common | |
parent | 2efaa58738ab9c907aeb8ade8b535b9aaa9c4a64 (diff) |
CHROMIUM: remove earlier prototype codes
The removed codes are belong to an earlier prototype of integrating
vboot wrapper API, which is not compiled/used anymore. Besieds, the
prototype has a known vulnerability of buffer overflow when reading
key blocks. So there is no many referential value for keeping the
prototype codes in the codebase. And keeping the prototype also adds
costs to new patches, which have to changes two implementations. All
in all, I think it is time we retire this prototype.
This patch also fixes coreboot build failure due to the removal.
BUG=chromium-os:16542
TEST=emerge-{x86-alex,tegra2_aebl} chromeos-u-boot
Change-Id: Ib6be9457f2dbc2daa3213c3d9c80bcdc56c520c4
Reviewed-on: http://gerrit.chromium.org/gerrit/5874
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/Makefile | 2 | ||||
-rw-r--r-- | common/cmd_vboot_bootstub.c | 22 | ||||
-rw-r--r-- | common/cmd_vboot_main.c | 22 |
3 files changed, 0 insertions, 46 deletions
diff --git a/common/Makefile b/common/Makefile index 71483a7851c..203ed6c8353 100644 --- a/common/Makefile +++ b/common/Makefile @@ -74,8 +74,6 @@ COBJS-$(CONFIG_CMD_BOOTLDR) += cmd_bootldr.o COBJS-$(CONFIG_CMD_CACHE) += cmd_cache.o COBJS-$(CONFIG_CMD_CONSOLE) += cmd_console.o COBJS-$(CONFIG_CMD_CPLBINFO) += cmd_cplbinfo.o -COBJS-$(CONFIG_CMD_VBOOT_BOOTSTUB) += cmd_vboot_bootstub.o -COBJS-$(CONFIG_CMD_VBOOT_MAIN) += cmd_vboot_main.o COBJS-$(CONFIG_CHROMEOS) += cmd_vboot_twostop.o COBJS-$(CONFIG_CHROMEOS_TEST) += cmd_vbexport_test.o COBJS-$(CONFIG_CHROMEOS_TEST) += cmd_vboot_test.o diff --git a/common/cmd_vboot_bootstub.c b/common/cmd_vboot_bootstub.c deleted file mode 100644 index b7a48cffb24..00000000000 --- a/common/cmd_vboot_bootstub.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) 2011 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. - * - * Alternatively, this software may be distributed under the terms of the - * GNU General Public License ("GPL") version 2 as published by the Free - * Software Foundation. - */ - -#include <common.h> -#include <command.h> -#include <vboot/entry_points.h> - -int do_vboot_bootstub(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) -{ - bootstub_entry(); - return 0; -} - -U_BOOT_CMD(vboot_bootstub, 1, 1, do_vboot_bootstub, - "verified boot bootstub firmware", NULL); diff --git a/common/cmd_vboot_main.c b/common/cmd_vboot_main.c deleted file mode 100644 index 07c97d5b78d..00000000000 --- a/common/cmd_vboot_main.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) 2011 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. - * - * Alternatively, this software may be distributed under the terms of the - * GNU General Public License ("GPL") version 2 as published by the Free - * Software Foundation. - */ - -#include <common.h> -#include <command.h> -#include <vboot/entry_points.h> - -int do_vboot_main(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) -{ - main_entry(); - return 0; -} - -U_BOOT_CMD(vboot_main, 1, 1, do_vboot_main, - "verified boot main firmware", NULL); |