Makefile, Kconfig: Add AMD dependency for amd_blobs repo

Add a Kconfig option for indicating agreement to use the contents of
amd_blobs.  Users should only download the repo after implicitely
agreeing to AMD's License text.  No formal documented agreement
is required.

Update Makfile.inc, similar to other submodules, to initialize and
checkout the submodule once the Kconfig option is selected.

Change-Id: I4ae807659db16756453dc3db2c51848291c681b8
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36416
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Marshall Dawson 2019-10-28 15:55:03 -06:00 committed by Nico Huber
parent d9ccaefabe
commit 20ce4007eb
2 changed files with 17 additions and 0 deletions

View File

@ -204,6 +204,9 @@ forgetthis:=$(if $(GIT),$(shell git submodule update --init --checkout 3rdparty/
ifeq ($(CONFIG_PLATFORM_USES_FSP1_0)$(CONFIG_PLATFORM_USES_FSP1_1)$(CONFIG_PLATFORM_USES_FSP2_0),y) ifeq ($(CONFIG_PLATFORM_USES_FSP1_0)$(CONFIG_PLATFORM_USES_FSP1_1)$(CONFIG_PLATFORM_USES_FSP2_0),y)
forgetthis:=$(if $(GIT),$(shell git submodule update --init --checkout 3rdparty/fsp)) forgetthis:=$(if $(GIT),$(shell git submodule update --init --checkout 3rdparty/fsp))
endif endif
ifeq ($(CONFIG_USE_AMD_BLOBS),y)
forgetthis:=$(if $(GIT),$(shell git submodule update --init --checkout 3rdparty/amd_blobs))
endif
endif endif
UPDATED_SUBMODULES:=1 UPDATED_SUBMODULES:=1
COREBOOT_EXPORTS += UPDATED_SUBMODULES COREBOOT_EXPORTS += UPDATED_SUBMODULES

View File

@ -235,6 +235,20 @@ config USE_BLOBS
might be required for some chipsets or boards. might be required for some chipsets or boards.
This flag ensures that a "Free" option remains available for users. This flag ensures that a "Free" option remains available for users.
config USE_AMD_BLOBS
bool "Allow AMD blobs repository (with license agreement)"
depends on USE_BLOBS
help
This draws in the amd_blobs repository, which contains binary files
distributed by AMD, including VBIOS, PSP bootloaders, SMU firmwares,
etc. Selecting this item to download or clone the repo implies your
agreement to the AMD license agreement. A copy of the license text
may be reviewed by reading Documentation/soc/amd/amdblobs_license.md,
and your copy of the license is present in the repo once downloaded.
Note that for some products, omitting PSP, SMU images, or other items
may result in a nonbooting coreboot.rom.
config COVERAGE config COVERAGE
bool "Code coverage support" bool "Code coverage support"
depends on COMPILER_GCC depends on COMPILER_GCC