linuxboot/boards/winterfell/Makefile.board

60 lines
1.6 KiB
Makefile
Raw Normal View History

2018-01-27 03:51:43 +00:00
#
# Specific targets and things for the OCP Winterfell board
#
# This is responsible for extracting the DXE section from the ROM,
# extracting each of the images from it, and setting the sizes for
# the different firmware images.
#
# Replace just the dxe volume:
# ( echo u860000 6a0000 ; pv build/winterfell/dxe.vol ) > /dev/ttyACM0
2018-01-27 03:51:43 +00:00
2018-01-27 03:53:43 +00:00
# 6.9 MB DXE+Linux ROM, uncompressed
2018-01-27 03:51:43 +00:00
dxe-size := 0x6A0000
#dxe-compress := 0xF00000
2018-01-27 03:51:43 +00:00
dxe-path := $(BUILD)/rom/0x00860000
2018-01-27 03:51:43 +00:00
dxe-files := $(shell awk \
'/^[0-9A-Fa-f]/ {print "$(dxe-path)/"$$1".ffs"}' \
boards/$(BOARD)/image-files.txt \
)
$(dixe-files): extract.intermediate
2018-01-27 03:51:43 +00:00
# The Intel firmware has lots of small pieces.
# We replace the DXE recovery image and one of the other
# images with the LinuxBoot one. Potentially we
# can clean up more space.
FVS := \
$(BUILD)/rom/0x00000000.ifd \
2018-01-31 22:22:46 +00:00
$(BUILD)/rom/0x00010000.bin \
2018-01-27 03:51:43 +00:00
$(BUILD)/rom/0x00800000.fv \
$(BUILD)/rom/0x00820000.fv \
$(BUILD)/rom/0x00840000.bin \
$(BUILD)/dxe.vol \
$(BUILD)/rom/0x00f00000.fv \
# Replace the DxeCore and SmmCore with our own
2018-01-27 03:53:43 +00:00
# and add in the Linux kernel / initrd
2018-01-27 03:51:43 +00:00
$(BUILD)/dxe.vol: \
$(dxe-files) \
2018-01-27 03:51:43 +00:00
$(BUILD)/Linux.ffs \
$(BUILD)/Initrd.ffs \
# I wish we could use our own builds of these, but
# the AMI firmware modules do not play nice with us.
NO = \
$(BUILD)/DxeCore.ffs \
$(BUILD)/ReportStatusCodeRouterRuntimeDxe.ffs \
$(BUILD)/StatusCodeHandlerRuntimeDxe.ffs \
$(BUILD)/RuntimeDxe.ffs \
$(BUILD)/PiSmmCore.ffs \
$(BUILD)/RuntimeDxe.ffs \
$(BUILD)/AcpiTableDxe.ffs \
$(BUILD)/AcpiPlatform.ffs \
$(BUILD)/PciBusDxe.ffs \
$(BUILD)/PciHostBridgeDxe.ffs \
$(BUILD)/PciSioSerialDxe.ffs \