linuxboot/boards/winterfell/Makefile.board

48 lines
1.1 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.
#
#
# 16 MB ROM total size
linuxboot-size := 0x1000000
# 6.9 MB DXE+Linux ROM, uncompressed
dxe-size := 0x6A0000
dxe-path := $(BUILD)/rom/0x00860000/
dxe-files := $(shell awk \
'/^[0-9A-Fa-f]/ {print "$(dxe-path)/"$$1".ffs"}' \
boards/$(BOARD)/image-files.txt \
)
# 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/0x000f0000.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: \
$(BUILD)/DxeCore.ffs \
$(BUILD)/PiSmmCore.ffs \
$(dxe-files) \
$(BUILD)/Linux.ffs \
$(BUILD)/Initrd.ffs \