## This file is part of the coreboot project. ## ## Copyright (C) 2011 The ChromiumOS Authors. All rights reserved. ## ## 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. ## config MAINBOARD_HAS_CHROMEOS def_bool n menu "ChromeOS" depends on MAINBOARD_HAS_CHROMEOS config CHROMEOS bool "Build for ChromeOS" default n select TPM select TPM_INIT_FAILURE_IS_FATAL if PC80_SYSTEM && LPC_TPM select SKIP_TPM_STARTUP_ON_NORMAL_BOOT if PC80_SYSTEM && LPC_TPM select BOOTMODE_STRAPS select ELOG if SPI_FLASH select COLLECT_TIMESTAMPS select VBOOT_VERIFY_FIRMWARE select MULTIPLE_CBFS_INSTANCES help Enable ChromeOS specific features like the GPIO sub table in the coreboot table. NOTE: Enabling this option on an unsupported board will most likely break your build. if CHROMEOS config VBNV_OFFSET hex default 0x26 depends on PC80_SYSTEM help CMOS offset for VbNv data. This value must match cmos.layout in the mainboard directory, minus 14 bytes for the RTC. config CHROMEOS_VBNV_CMOS bool "Vboot non-volatile storage in CMOS." default n help VBNV is stored in CMOS config CHROMEOS_VBNV_CMOS_BACKUP_TO_FLASH bool "Back up Vboot non-volatile storage from CMOS to flash." default n depends on CHROMEOS_VBNV_CMOS help Vboot non-volatile storage data will be backed up from CMOS to flash and restored from flash if the CMOS is invalid due to power loss. config CHROMEOS_VBNV_EC bool "Vboot non-volatile storage in EC." default n help VBNV is stored in EC config CHROMEOS_VBNV_FLASH def_bool n help VBNV is stored in flash storage config CHROMEOS_RAMOOPS bool "Reserve space for Chrome OS ramoops" default y config CHROMEOS_RAMOOPS_DYNAMIC bool "Allocate RAM oops buffer in cbmem" default n depends on CHROMEOS_RAMOOPS && HAVE_ACPI_TABLES config CHROMEOS_RAMOOPS_NON_ACPI bool "Allocate RAM oops buffer in cbmem passed through cb tables to payload" default n depends on CHROMEOS_RAMOOPS && !HAVE_ACPI_TABLES config CHROMEOS_RAMOOPS_RAM_START hex "Physical address of preserved RAM" default 0x00f00000 depends on CHROMEOS_RAMOOPS && !CHROMEOS_RAMOOPS_DYNAMIC config CHROMEOS_RAMOOPS_RAM_SIZE hex "Size of preserved RAM" default 0x00100000 depends on CHROMEOS_RAMOOPS config EC_SOFTWARE_SYNC bool "Enable EC software sync" default n depends on VBOOT_VERIFY_FIRMWARE help EC software sync is a mechanism where the AP helps the EC verify its firmware similar to how vboot verifies the main system firmware. This option selects whether depthcharge should support EC software sync. config VBOOT_EC_SLOW_UPDATE bool "EC is slow to update" default n depends on EC_SOFTWARE_SYNC help Whether the EC (or PD) is slow to update and needs to display a screen that informs the user the update is happening. config VBOOT_OPROM_MATTERS bool "Video option ROM matters (= can skip display init)" default n depends on VBOOT_VERIFY_FIRMWARE help Set this option to indicate to vboot that this platform will skip its display initialization on a normal (non-recovery, non-developer) boot. Vboot calls this "oprom matters" because on x86 devices this traditionally meant that the video option ROM will not be loaded, but it works functionally the same for other platforms that can skip their native display initialization code instead. config VIRTUAL_DEV_SWITCH bool "Virtual developer switch support" default n depends on VBOOT_VERIFY_FIRMWARE help Whether this platform has a virtual developer switch. config VBOOT_VERIFY_FIRMWARE bool "Verify firmware with vboot." default n depends on HAVE_HARD_RESET help Enabling VBOOT_VERIFY_FIRMWARE will use vboot to verify the components of the firmware (stages, payload, etc). config NO_TPM_RESUME bool default n help On some boards the TPM stays powered up in S3. On those boards, booting Windows will break if the TPM resume command is sent during an S3 resume. config PHYSICAL_REC_SWITCH bool "Physical recovery switch is present" default n help Whether this platform has a physical recovery switch config LID_SWITCH bool "Lid switch is present" default n help Whether this platform has a lid switch config WIPEOUT_SUPPORTED bool "User is able to request factory reset" default n help When this option is enabled, the firmware provides the ability to signal the application the need for factory reset (a.k.a. wipe out) of the device config HAVE_REGULATORY_DOMAIN bool "Add regulatory domain methods" default n help This option is needed to add ACPI regulatory domain methods source src/vendorcode/google/chromeos/vboot2/Kconfig menu "GBB configuration" config GBB_HWID string "Hardware ID" default "NOCONF HWID" config GBB_BMPFV_FILE string "Path to bmpfv image" default "" config GBB_FLAG_DEV_SCREEN_SHORT_DELAY bool "Reduce dev screen delay" default n config GBB_FLAG_LOAD_OPTION_ROMS bool "Load option ROMs" default n config GBB_FLAG_ENABLE_ALTERNATE_OS bool "Allow booting a non-Chrome OS kernel if dev switch is on" default n config GBB_FLAG_FORCE_DEV_SWITCH_ON bool "Force dev switch on" default n config GBB_FLAG_FORCE_DEV_BOOT_USB bool "Allow booting from USB in dev mode even if dev_boot_usb=0" default y config GBB_FLAG_DISABLE_FW_ROLLBACK_CHECK bool "Disable firmware rollback protection" default y config GBB_FLAG_ENTER_TRIGGERS_TONORM bool "Return to normal boot with Enter" default n config GBB_FLAG_FORCE_DEV_BOOT_LEGACY bool "Allow booting to legacy in dev mode even if dev_boot_legacy=0" default n config GBB_FLAG_FAFT_KEY_OVERIDE bool "Allow booting using alternative keys for FAFT servo testing" default n config GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC bool "Disable EC software sync" default n config GBB_FLAG_DEFAULT_DEV_BOOT_LEGACY bool "Default to booting to legacy in dev mode" default n config GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC bool "Disable PD software sync" default n config GBB_FLAG_DISABLE_LID_SHUTDOWN bool "Disable shutdown on closed lid" default n config GBB_FLAG_FORCE_DEV_BOOT_FASTBOOT_FULL_CAP bool "Allow fastboot even if dev_boot_fastboot_full_cap=0" default n config GBB_FLAG_ENABLE_SERIAL bool "Tell vboot to enable serial console" default n endmenu # GBB menu "Vboot Keys" config VBOOT_ROOT_KEY string "Root key (public)" default "3rdparty/vboot/tests/devkeys/root_key.vbpubk" config VBOOT_RECOVERY_KEY string "Recovery key (public)" default "3rdparty/vboot/tests/devkeys/recovery_key.vbpubk" config VBOOT_FIRMWARE_PRIVKEY string "Firmware key (private)" default "3rdparty/vboot/tests/devkeys/firmware_data_key.vbprivk" config VBOOT_KERNEL_KEY string "Kernel subkey (public)" default "3rdparty/vboot/tests/devkeys/kernel_subkey.vbpubk" config VBOOT_KEYBLOCK string "Keyblock to use for the RW regions" default "3rdparty/vboot/tests/devkeys/firmware.keyblock" config VBOOT_KEYBLOCK_VERSION int "Keyblock version number" default 1 config VBOOT_KEYBLOCK_PREAMBLE_FLAGS hex "Keyblock preamble flags" default 0 endmenu # Keys endif # CHROMEOS endmenu