2013-09-27 18:38:36 +02:00
|
|
|
subdirs-y += bootblock
|
2013-09-07 07:41:48 +02:00
|
|
|
subdirs-y += microcode
|
|
|
|
subdirs-y += romstage
|
|
|
|
subdirs-y += ../../../cpu/x86/lapic
|
|
|
|
subdirs-y += ../../../cpu/x86/mtrr
|
2013-10-22 05:32:00 +02:00
|
|
|
subdirs-y += ../../../cpu/x86/smm
|
2013-09-07 07:41:48 +02:00
|
|
|
subdirs-y += ../../../cpu/x86/tsc
|
2013-09-24 23:47:49 +02:00
|
|
|
subdirs-y += ../../../cpu/intel/microcode
|
2013-11-05 21:59:50 +01:00
|
|
|
subdirs-y += ../../../cpu/intel/turbo
|
2013-09-07 07:41:48 +02:00
|
|
|
|
|
|
|
ramstage-y += memmap.c
|
|
|
|
romstage-y += memmap.c
|
|
|
|
ramstage-y += tsc_freq.c
|
|
|
|
romstage-y += tsc_freq.c
|
2013-10-22 05:32:00 +02:00
|
|
|
smm-y += tsc_freq.c
|
2013-09-07 07:41:48 +02:00
|
|
|
ramstage-$(CONFIG_CACHE_MRC_SETTINGS) += nvm.c
|
|
|
|
ramstage-$(CONFIG_CACHE_MRC_SETTINGS) += mrc_cache.c
|
|
|
|
romstage-$(CONFIG_CACHE_MRC_SETTINGS) += mrc_cache.c
|
|
|
|
ramstage-y += spi.c
|
2013-10-22 05:32:00 +02:00
|
|
|
smm-y += spi.c
|
2013-09-07 07:41:48 +02:00
|
|
|
ramstage-y += chip.c
|
2013-10-28 23:49:34 +01:00
|
|
|
ramstage-y += gfx.c
|
2013-09-07 07:41:48 +02:00
|
|
|
ramstage-y += iosf.c
|
|
|
|
romstage-y += iosf.c
|
2013-09-24 19:41:08 +02:00
|
|
|
ramstage-y += northcluster.c
|
2013-09-24 23:47:49 +02:00
|
|
|
ramstage-y += ramstage.c
|
2013-09-27 01:44:14 +02:00
|
|
|
ramstage-y += gpio.c
|
2013-10-11 03:54:57 +02:00
|
|
|
romstage-y += reset.c
|
|
|
|
ramstage-y += reset.c
|
2013-10-21 19:36:17 +02:00
|
|
|
ramstage-y += cpu.c
|
2013-10-22 05:32:00 +02:00
|
|
|
ramstage-y += pmutil.c
|
|
|
|
smm-y += pmutil.c
|
|
|
|
smm-y += smihandler.c
|
|
|
|
ramstage-y += smm.c
|
2013-11-01 21:34:00 +01:00
|
|
|
ramstage-y += ehci.c
|
2013-11-01 21:32:53 +01:00
|
|
|
ramstage-y += xhci.c
|
2013-10-24 07:05:31 +02:00
|
|
|
ramstage-y += southcluster.c
|
2013-10-24 17:21:43 +02:00
|
|
|
ramstage-$(CONFIG_HAVE_REFCODE_BLOB) += refcode.c
|
2013-10-29 00:15:02 +01:00
|
|
|
ramstage-y += sata.c
|
2013-10-30 20:36:11 +01:00
|
|
|
ramstage-y += acpi.c
|
2013-11-01 20:36:03 +01:00
|
|
|
ramstage-y += lpe.c
|
2013-09-07 07:41:48 +02:00
|
|
|
|
|
|
|
# Remove as ramstage gets fleshed out
|
|
|
|
ramstage-y += placeholders.c
|
|
|
|
|
|
|
|
INCLUDES += -Isrc/soc/intel/baytrail/
|
|
|
|
|
|
|
|
# Run an intermediate step when producing coreboot.rom
|
|
|
|
# that adds additional components to the final firmware
|
|
|
|
# image outside of CBFS
|
|
|
|
INTERMEDIATE:=baytrail_add_me
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_BUILD_WITH_FAKE_IFD),y)
|
|
|
|
IFD_BIN_PATH := $(objgenerated)/ifdfake.bin
|
|
|
|
IFD_SECTIONS := $(addprefix -b ,$(CONFIG_IFD_BIOS_SECTION:"%"=%)) \
|
|
|
|
$(addprefix -m ,$(CONFIG_IFD_ME_SECTION:"%"=%)) \
|
|
|
|
$(addprefix -p ,$(CONFIG_IFD_PLATFORM_SECTION:"%"=%))
|
|
|
|
else
|
|
|
|
IFD_BIN_PATH := $(CONFIG_IFD_BIN_PATH)
|
|
|
|
endif
|
|
|
|
|
|
|
|
baytrail_add_me: $(obj)/coreboot.pre $(IFDTOOL) $(IFDFAKE)
|
|
|
|
ifeq ($(CONFIG_BUILD_WITH_FAKE_IFD),y)
|
|
|
|
printf "\n** WARNING **\n"
|
|
|
|
printf "Coreboot will be built with a fake Intel Firmware Descriptor (IFD).\n"
|
|
|
|
printf "Never write a complete coreboot.rom with a fake IFD to your board's\n"
|
|
|
|
printf "flash ROM! Make sure that you only write valid flash regions.\n\n"
|
|
|
|
printf " IFDFAKE Building a fake Intel Firmware Descriptor\n"
|
|
|
|
$(IFDFAKE) $(IFD_SECTIONS) $(IFD_BIN_PATH)
|
|
|
|
endif
|
|
|
|
printf " DD Adding Intel Firmware Descriptor\n"
|
|
|
|
dd if=$(IFD_BIN_PATH) \
|
|
|
|
of=$(obj)/coreboot.pre conv=notrunc >/dev/null 2>&1
|
|
|
|
ifeq ($(CONFIG_HAVE_ME_BIN),y)
|
|
|
|
printf " IFDTOOL me.bin -> coreboot.pre\n"
|
|
|
|
$(objutil)/ifdtool/ifdtool \
|
|
|
|
-i ME:$(CONFIG_ME_BIN_PATH) \
|
|
|
|
$(obj)/coreboot.pre
|
|
|
|
mv $(obj)/coreboot.pre.new $(obj)/coreboot.pre
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Add memory reference code blob.
|
|
|
|
cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin
|
|
|
|
mrc.bin-file := $(call strip_quotes,$(CONFIG_MRC_FILE))
|
|
|
|
mrc.bin-position := $(CONFIG_MRC_BIN_ADDRESS)
|
|
|
|
mrc.bin-type := 0xab
|
|
|
|
|
|
|
|
PHONY += baytrail_add_me
|