mirror of
https://github.com/ipxe/ipxe
synced 2026-05-04 03:03:43 +03:00
[riscv] Add a .pf32 build target for padded parallel flash images
QEMU's -pflash option requires an image that has been padded to the exact expected size (32MB for all of the supported RISC-V virtual machines). Add a .pf32 build target which is simply the equivalent .sbi target padded to 32MB in size, to simplify testing. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -26,6 +26,7 @@ PRINTF := printf
|
|||||||
PERL := perl
|
PERL := perl
|
||||||
PYTHON := python
|
PYTHON := python
|
||||||
TRUE := true
|
TRUE := true
|
||||||
|
TRUNCATE := truncate
|
||||||
CC = $(CROSS_COMPILE)gcc
|
CC = $(CROSS_COMPILE)gcc
|
||||||
CPP = $(CC) -E
|
CPP = $(CC) -E
|
||||||
AS = $(CROSS_COMPILE)as
|
AS = $(CROSS_COMPILE)as
|
||||||
|
|||||||
@@ -15,3 +15,10 @@ LDSCRIPT = arch/riscv/scripts/sbi.lds
|
|||||||
#
|
#
|
||||||
MEDIA += sbi
|
MEDIA += sbi
|
||||||
MEDIA += lkrn
|
MEDIA += lkrn
|
||||||
|
|
||||||
|
# Padded flash device images (e.g. for QEMU's -pflash option)
|
||||||
|
#
|
||||||
|
NON_AUTO_MEDIA += pf32
|
||||||
|
%.pf32 : %.sbi $(MAKEDEPS)
|
||||||
|
$(Q)$(CP) $< $@
|
||||||
|
$(Q)$(TRUNCATE) -s 32M $@
|
||||||
|
|||||||
Reference in New Issue
Block a user