48dbc663d7
Move drivers/storage into commonlib/storage to enable access by libpayload and indirectly by payloads. * Remove SD/MMC specific include files from include/device * Remove files from drivers/storage * Add SD/MMC specific include files to commonlib/include * Add files to commonlib/storage * Fix header file references * Add subdir entry in commonlib/Makefile.inc to build the SD/MMC driver * Add Kconfig source for commonlib/storage * Rename *DEVICE* to *COMMONLIB* * Rename *DRIVERS_STORAGE* to *COMMONLIB_STORAGE* TEST=Build and run on Galileo Gen2 Change-Id: I4339e4378491db9a0da1f2dc34e1906a5ba31ad6 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/19672 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
##
|
|
## This file is part of the coreboot project.
|
|
##
|
|
## Copyright (C) 2015-2016 Intel Corp.
|
|
##
|
|
## 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.
|
|
##
|
|
|
|
ifeq ($(CONFIG_PLATFORM_USES_FSP2_0)$(CONFIG_PLATFORM_USES_FSP1_1),y)
|
|
CPPFLAGS_common += -I$(src)/vendorcode/intel/fsp/$(CONFIG_FSP_VERSION)/quark
|
|
endif
|
|
|
|
bootblock-y += gpio.c
|
|
bootblock-y += reg_access.c
|
|
|
|
verstage-y += gpio.c
|
|
verstage-y += reg_access.c
|
|
verstage-$(CONFIG_VBOOT) += vboot.c
|
|
|
|
romstage-y += gpio.c
|
|
romstage-y += reg_access.c
|
|
romstage-$(CONFIG_COMMONLIB_STORAGE_SD) += sd.c
|
|
romstage-$(CONFIG_VBOOT) += vboot.c
|
|
|
|
postcar-y += gpio.c
|
|
postcar-y += reg_access.c
|
|
|
|
ramstage-y += gpio.c
|
|
ramstage-y += reg_access.c
|
|
ramstage-$(CONFIG_COMMONLIB_STORAGE_SD) += sd.c
|