mirror of
https://github.com/linuxboot/linuxboot
synced 2024-11-22 17:01:28 +00:00
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
#
|
|
# 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
|
|
|
|
# 6.9 MB DXE+Linux ROM, uncompressed
|
|
dxe-size := 0x6A0000
|
|
#dxe-compress := 0xF00000
|
|
|
|
dxe-path := $(BUILD)/rom/0x00860000
|
|
|
|
dxe-files := $(shell awk \
|
|
'/^[0-9A-Fa-f]/ {print "$(dxe-path)/"$$1".ffs"}' \
|
|
boards/$(BOARD)/image-files.txt \
|
|
)
|
|
|
|
$(dixe-files): extract.intermediate
|
|
|
|
|
|
# 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 \
|
|
$(BUILD)/rom/0x00010000.bin \
|
|
$(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
|
|
# and add in the Linux kernel / initrd
|
|
$(BUILD)/dxe.vol: \
|
|
$(dxe-files) \
|
|
$(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 \
|