mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-29 15:44:07 +00:00
pre-build more of edk2 (issue #362)
This commit is contained in:
parent
ac537d0300
commit
921bda774f
@ -12,16 +12,17 @@ linuxboot_board := $(or $(CONFIG_LINUXBOOT_BOARD),$(BOARD))
|
|||||||
|
|
||||||
|
|
||||||
linuxboot_configure := \
|
linuxboot_configure := \
|
||||||
|
echo >&2 "Pre-building edk2" ; \
|
||||||
|
$(MAKE) \
|
||||||
|
BOARD=$(linuxboot_board) \
|
||||||
|
edk2.force \
|
||||||
|
|| exit 1 ; \
|
||||||
if [ "$(linuxboot_board)" = "qemu" ]; then \
|
if [ "$(linuxboot_board)" = "qemu" ]; then \
|
||||||
echo >&2 "Pre-building edk2 OVMF" ; \
|
echo >&2 "Pre-building edk2 OVMF" ; \
|
||||||
$(MAKE) \
|
( cd edk2/OvmfPkg ; ./build.sh -n `nproc` ) \
|
||||||
BOARD=$(linuxboot_board) \
|
|| exit 1 ; \
|
||||||
boards/$(linuxboot_board)/$(linuxboot_board).rom \
|
fi ; \
|
||||||
&& touch .config ; \
|
touch .config ; \
|
||||||
else \
|
|
||||||
echo >&2 "Using existing ROM file" ; \
|
|
||||||
touch .config ; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
linuxboot_target := \
|
linuxboot_target := \
|
||||||
BOARD=$(linuxboot_board) \
|
BOARD=$(linuxboot_board) \
|
||||||
@ -58,8 +59,11 @@ $(build)/$(BOARD)/linuxboot.rom: $(linuxboot_output)
|
|||||||
# The Linux kernel and Heads initrd must be built before linuxboot
|
# The Linux kernel and Heads initrd must be built before linuxboot
|
||||||
# unless the user has specified "FAST=1" on the make command line,
|
# unless the user has specified "FAST=1" on the make command line,
|
||||||
# which will assume that the kernel and initrd are fresh
|
# which will assume that the kernel and initrd are fresh
|
||||||
|
#
|
||||||
|
# There is not an explicit dependency of linuxboot on linux
|
||||||
|
# or initrd so that the configuration can pre-build all of edk2
|
||||||
|
# overlapping with the other builds.
|
||||||
ifneq "$(FAST)" "1"
|
ifneq "$(FAST)" "1"
|
||||||
linuxboot_depends := linux initrd
|
|
||||||
linuxboot.intermediate: $(build)/$(BOARD)/bzImage
|
linuxboot.intermediate: $(build)/$(BOARD)/bzImage
|
||||||
linuxboot.intermediate: $(build)/$(BOARD)/initrd.cpio.xz
|
linuxboot.intermediate: $(build)/$(BOARD)/initrd.cpio.xz
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user