kbuild: automatically include ECs
This change switches all ECs and the generic EC ACPI code to be autoincluded by Makefile.inc, rather than having to be mentioned explicitly in ec/Makefile.inc or in ec/<vendor>/Makefile.inc. This means, vendor and ec directories are now "drop in", e.g. be placed in the coreboot directory hierarchy without having to modify any higher level coreboot files. The long term plan is to enable out of tree components to be built with a given coreboot version (given that the API did not change). Change-Id: I29d757d1f8c10a1d0167a76fd0d0f97bac576f6d Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/9798 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
e2c2bb9447
commit
77c04e95ba
|
@ -52,7 +52,9 @@ PHONY+= clean-abuild coreboot lint lint-stable build-dirs
|
|||
|
||||
#######################################################################
|
||||
# root source directories of coreboot
|
||||
subdirs-y := src/lib src/console src/device src/ec $(wildcard src/southbridge/*/*) src/soc
|
||||
subdirs-y := src/lib src/console src/device
|
||||
subdirs-y += src/ec/acpi $(wildcard src/ec/*/*) $(wildcard src/southbridge/*/*)
|
||||
subdirs-y += src/soc
|
||||
subdirs-y += src/northbridge src/superio src/drivers src/cpu src/vendorcode
|
||||
subdirs-y += util/cbfstool util/sconfig util/nvramtool util/broadcom
|
||||
subdirs-y += $(wildcard src/arch/*)
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
subdirs-$(CONFIG_EC_ACPI) += acpi
|
||||
subdirs-y += compal google kontron lenovo smsc quanta
|
|
@ -1,3 +1,7 @@
|
|||
ifeq ($(CONFIG_EC_ACPI),y)
|
||||
|
||||
ramstage-y += ec.c
|
||||
smm-$(CONFIG_HAVE_SMI_HANDLER) += ec.c
|
||||
romstage-$(CONFIG_BOARD_LENOVO_X201) += ec.c
|
||||
|
||||
endif
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
subdirs-$(CONFIG_EC_COMPAL_ENE932) += ene932
|
|
@ -1,3 +1,7 @@
|
|||
ifeq ($(CONFIG_EC_COMPAL_ENE932),y)
|
||||
|
||||
ramstage-y += ec.c
|
||||
smm-y += ec.c
|
||||
smm-y += ../../../lib/delay.c
|
||||
|
||||
endif
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
subdirs-$(CONFIG_EC_GOOGLE_CHROMEEC) += chromeec
|
|
@ -1,3 +1,5 @@
|
|||
ifeq ($(CONFIG_EC_GOOGLE_CHROMEEC),y)
|
||||
|
||||
ramstage-y += ec.c crosec_proto.c
|
||||
ramstage-$(CONFIG_EC_GOOGLE_CHROMEEC_I2C) += ec_i2c.c
|
||||
ramstage-$(CONFIG_EC_GOOGLE_CHROMEEC_LPC) += ec_lpc.c
|
||||
|
@ -18,3 +20,5 @@ verstage-$(CONFIG_EC_GOOGLE_CHROMEEC_I2C) += ec_i2c.c
|
|||
verstage-$(CONFIG_EC_GOOGLE_CHROMEEC_LPC) += ec_lpc.c
|
||||
verstage-$(CONFIG_EC_GOOGLE_CHROMEEC_MEC) += ec_mec.c
|
||||
verstage-$(CONFIG_EC_GOOGLE_CHROMEEC_SPI) += ec_spi.c
|
||||
|
||||
endif
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
subdirs-$(CONFIG_EC_KONTRON_IT8516E) += it8516e
|
|
@ -1 +1,5 @@
|
|||
ifeq ($(CONFIG_EC_KONTRON_IT8516E),y)
|
||||
|
||||
ramstage-y += ec.c
|
||||
|
||||
endif
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
subdirs-$(CONFIG_EC_LENOVO_H8) += h8
|
||||
subdirs-$(CONFIG_EC_LENOVO_PMH7) += pmh7
|
|
@ -1 +1,5 @@
|
|||
ifeq ($(CONFIG_EC_LENOVO_H8),y)
|
||||
|
||||
ramstage-y += h8.c
|
||||
|
||||
endif
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
ifeq ($(CONFIG_EC_LENOVO_PMH7),y)
|
||||
|
||||
ramstage-y += pmh7.c
|
||||
smm-$(CONFIG_HAVE_SMI_HANDLER) += pmh7.c
|
||||
romstage-y += pmh7.c
|
||||
|
||||
endif
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
subdirs-$(CONFIG_EC_QUANTA_ENE_KB3940Q) += ene_kb3940q
|
||||
subdirs-$(CONFIG_EC_QUANTA_IT8518) += it8518
|
|
@ -1,4 +1,7 @@
|
|||
ifeq ($(CONFIG_EC_QUANTA_ENE_KB3940Q),y)
|
||||
|
||||
ramstage-y += ec.c
|
||||
smm-y += ec.c
|
||||
|
||||
smm-y += ../../../lib/delay.c
|
||||
|
||||
endif
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
ifeq ($(CONFIG_EC_QUANTA_IT8518),y)
|
||||
|
||||
romstage-y += ec.c
|
||||
ramstage-y += ec.c
|
||||
smm-y += ec.c
|
||||
smm-y += ../../../lib/delay.c
|
||||
|
||||
endif
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
subdirs-$(CONFIG_EC_SMSC_MEC1308) += mec1308
|
|
@ -1,2 +1,6 @@
|
|||
ifeq ($(CONFIG_EC_SMSC_MEC1308),y)
|
||||
|
||||
ramstage-y += ec.c
|
||||
smm-y += ec.c
|
||||
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue