linuxboot/boards/tioga/Makefile.board

44 lines
1.0 KiB
Makefile

#
# Specific targets and things for the OCP Tioga Pass (Wiwynn)
#
# 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.
#
# 4 MB DXE ROM, compressed from 15 MB
dxe-compress := 0xFF0000
dxe-size := 0xA9F000
dxe-path := $(BUILD)/rom/0x01110000
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/0x00010000.bin \
$(BUILD)/rom/0x01000000.fv \
$(BUILD)/rom/0x01080000.bin \
$(BUILD)/dxe.vol \
$(BUILD)/rom/0x01baf000.bin \
$(BUILD)/rom/0x01c00000.fv \
# Replace the DxeCore and SmmCore with our own
$(BUILD)/dxe.vol: \
$(BUILD)/DxeCore.ffs \
$(BUILD)/PiSmmCore.ffs \
./dxe/linuxboot.ffs \
$(BUILD)/Linux.ffs \
$(BUILD)/Initrd.ffs \
$(dxe-files) \