mirror of
https://github.com/linuxboot/linuxboot
synced 2024-11-22 08:09:41 +00:00
43 lines
1.0 KiB
Makefile
43 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 \
|
||
|
$(BUILD)/Linux.ffs \
|
||
|
$(BUILD)/Initrd.ffs \
|
||
|
$(dxe-files) \
|