Patrick Georgi | 8480c0b | 2020-05-08 22:50:46 +0200 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 2 | |
Martin Roth | 7b928cd | 2015-06-19 20:50:59 -0600 | [diff] [blame] | 3 | # set up payload config and version files for later inclusion |
Bill XIE | 3dda4da | 2022-01-01 11:56:00 +0800 | [diff] [blame] | 4 | ifeq ($(CONFIG_PAYLOAD_BUILD_SEABIOS),y) |
Martin Roth | 7b928cd | 2015-06-19 20:50:59 -0600 | [diff] [blame] | 5 | PAYLOAD_CONFIG=payloads/external/SeaBIOS/seabios/.config |
Martin Roth | 886f478 | 2015-11-28 13:23:48 -0700 | [diff] [blame] | 6 | PAYLOAD_VERSION=payloads/external/SeaBIOS/seabios/out/autoversion.h |
Martin Roth | 7b928cd | 2015-06-19 20:50:59 -0600 | [diff] [blame] | 7 | endif |
| 8 | ifeq ($(CONFIG_PAYLOAD_FILO),y) |
| 9 | PAYLOAD_CONFIG=payloads/external/FILO/filo/.config |
| 10 | PAYLOAD_VERSION=payloads/external/FILO/filo/build/version.h |
| 11 | endif |
Stefan Reinauer | 9125073 | 2015-07-15 10:24:18 -0700 | [diff] [blame] | 12 | ifeq ($(CONFIG_PAYLOAD_DEPTHCHARGE),y) |
| 13 | PAYLOAD_CONFIG=payloads/external/depthcharge/depthcharge/.config |
Nico Huber | 45ccab3 | 2017-10-23 14:53:52 +0200 | [diff] [blame] | 14 | $(PAYLOAD_CONFIG): payloads/external/depthcharge/depthcharge/build/depthcharge.elf |
Selma BENSAID | a3a8ff9 | 2019-11-15 13:01:32 -0800 | [diff] [blame] | 15 | ifeq ($(call strip_quotes,$(CONFIG_MAINBOARD_DEPTHCHARGE)),) |
Selma BENSAID | b458a4f | 2019-09-20 17:38:59 -0700 | [diff] [blame] | 16 | BOARD=$(call ws_to_under,$(call strip_quotes,$(call tolower,$(CONFIG_MAINBOARD_PART_NUMBER)))) |
Selma BENSAID | 6aa81fa | 2019-10-25 11:36:17 -0700 | [diff] [blame] | 17 | else |
| 18 | BOARD=$(CONFIG_MAINBOARD_DEPTHCHARGE) |
Selma BENSAID | b458a4f | 2019-09-20 17:38:59 -0700 | [diff] [blame] | 19 | endif |
Stefan Reinauer | 9125073 | 2015-07-15 10:24:18 -0700 | [diff] [blame] | 20 | #TODO: Figure out version |
| 21 | endif |
Martin Roth | 7b928cd | 2015-06-19 20:50:59 -0600 | [diff] [blame] | 22 | |
Marcello Sylvester Bauer | a426669 | 2018-11-06 12:32:14 +0100 | [diff] [blame] | 23 | ifeq ($(CONFIG_PAYLOAD_LINUX)$(CONFIG_PAYLOAD_LINUXBOOT),y) |
Stefan Reinauer | 785a31d | 2016-04-13 13:13:02 -0700 | [diff] [blame] | 24 | ifneq ($(strip $(call strip_quotes,$(CONFIG_LINUX_COMMAND_LINE))),) |
| 25 | ADDITIONAL_PAYLOAD_CONFIG+=-C $(CONFIG_LINUX_COMMAND_LINE) |
| 26 | endif |
| 27 | ifneq ($(strip $(call strip_quotes,$(CONFIG_LINUX_INITRD))),) |
Marcello Sylvester Bauer | 78d0256 | 2018-11-11 18:03:26 +0100 | [diff] [blame] | 28 | ifneq ($(CONFIG_LINUXBOOT_ARM64),y) |
Marcello Sylvester Bauer | e102c5d | 2018-11-21 17:45:43 +0100 | [diff] [blame] | 29 | ADDITIONAL_PAYLOAD_CONFIG+=-I $(CONFIG_LINUX_INITRD)$(CONFIG_LINUXBOOT_INITRAMFS_SUFFIX) |
Marcello Sylvester Bauer | 78d0256 | 2018-11-11 18:03:26 +0100 | [diff] [blame] | 30 | prebuilt-files += $(strip $(call strip_quotes,$(CONFIG_LINUX_INITRD))) |
| 31 | endif |
Stefan Reinauer | 785a31d | 2016-04-13 13:13:02 -0700 | [diff] [blame] | 32 | endif |
| 33 | endif |
| 34 | ifneq ($(strip $(call strip_quotes,$(CONFIG_PAYLOAD_OPTIONS))),) |
| 35 | ADDITIONAL_PAYLOAD_CONFIG+=$(strip $(call strip_quotes,$(CONFIG_PAYLOAD_OPTIONS))) |
| 36 | endif |
| 37 | |
Werner Zeh | bc2d151 | 2016-05-03 09:52:12 +0200 | [diff] [blame] | 38 | cbfs-files-y += $(CONFIG_CBFS_PREFIX)/payload |
| 39 | $(CONFIG_CBFS_PREFIX)/payload-file := $(CONFIG_PAYLOAD_FILE) |
| 40 | ifeq ($(CONFIG_PAYLOAD_IS_FLAT_BINARY),y) |
| 41 | $(CONFIG_CBFS_PREFIX)/payload-type := flat-binary |
| 42 | else |
Ronald G. Minnich | c6d1349 | 2018-05-15 18:05:07 -0700 | [diff] [blame] | 43 | $(CONFIG_CBFS_PREFIX)/payload-type := payload |
Werner Zeh | bc2d151 | 2016-05-03 09:52:12 +0200 | [diff] [blame] | 44 | endif |
| 45 | $(CONFIG_CBFS_PREFIX)/payload-compression := $(CBFS_PAYLOAD_COMPRESS_FLAG) |
| 46 | $(CONFIG_CBFS_PREFIX)/payload-options := $(ADDITIONAL_PAYLOAD_CONFIG) |
| 47 | |
Martin Roth | d4c2484 | 2015-12-16 16:09:11 -0700 | [diff] [blame] | 48 | cbfs-files-$(CONFIG_INCLUDE_CONFIG_FILE) += payload_config |
| 49 | payload_config-file := $(PAYLOAD_CONFIG) |
| 50 | payload_config-type := raw |
| 51 | |
| 52 | cbfs-files-$(CONFIG_INCLUDE_CONFIG_FILE) += payload_revision |
| 53 | payload_revision-file := $(PAYLOAD_VERSION) |
| 54 | payload_revision-type := raw |
| 55 | |
Denis 'GNUtoo' Carikli | 8fb72c9 | 2017-01-08 06:43:01 +0100 | [diff] [blame] | 56 | cbfs-files-$(CONFIG_GRUB2_INCLUDE_RUNTIME_CONFIG_FILE) += etc/grub.cfg |
| 57 | etc/grub.cfg-file := $(CONFIG_GRUB2_RUNTIME_CONFIG_FILE) |
| 58 | etc/grub.cfg-type := raw |
| 59 | etc/grub.cfg-required := the GRUB runtime configuration file ($(CONFIG_GRUB2_RUNTIME_CONFIG_FILE)) |
| 60 | |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 61 | # SeaBIOS |
| 62 | |
Patrick Georgi | c983671 | 2015-08-08 21:35:38 +0200 | [diff] [blame] | 63 | SEABIOS_CC_OFFSET=$(if $(filter %ccache,$(HOSTCC)),2,1) |
Bill XIE | 3dda4da | 2022-01-01 11:56:00 +0800 | [diff] [blame] | 64 | SEABIOS_TARGET_PATH=payloads/external/SeaBIOS/seabios/out/bios.bin.elf |
| 65 | $(SEABIOS_TARGET_PATH): $(DOTCONFIG) |
Martin Roth | c8ed340 | 2016-03-16 10:39:30 -0600 | [diff] [blame] | 66 | $(MAKE) -C payloads/external/SeaBIOS \ |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 67 | HOSTCC="$(HOSTCC)" \ |
Martin Roth | 342cf7f | 2016-03-07 22:04:01 -0700 | [diff] [blame] | 68 | CC=$(word $(SEABIOS_CC_OFFSET),$(CC_x86_32)) \ |
| 69 | CFLAGS="$(patsubst $(word $(SEABIOS_CC_OFFSET),$(CC_x86_32))%,,$(wordlist $(SEABIOS_CC_OFFSET),9999,$(CC_x86_32)))" \ |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 70 | LD=$(word 1,$(LD_x86_32)) LDFLAGS="$(patsubst $(word 1,$(LD_x86_32))%,,$(LD_x86_32))" \ |
| 71 | OBJDUMP="$(OBJDUMP_x86_32)" \ |
| 72 | OBJCOPY="$(OBJCOPY_x86_32)" STRIP="$(STRIP_x86_32)" \ |
| 73 | AS="$(AS_x86_32)" IASL="$(IASL)" \ |
| 74 | CONFIG_SEABIOS_MASTER=$(CONFIG_SEABIOS_MASTER) \ |
| 75 | CONFIG_SEABIOS_STABLE=$(CONFIG_SEABIOS_STABLE) \ |
Antonello Dettori | 3aa91dc | 2016-03-07 23:56:57 +0000 | [diff] [blame] | 76 | CONFIG_SEABIOS_REVISION=$(CONFIG_SEABIOS_REVISION) \ |
| 77 | CONFIG_SEABIOS_REVISION_ID=$(CONFIG_SEABIOS_REVISION_ID) \ |
Martin Roth | 99d05c7 | 2015-11-28 15:44:34 -0700 | [diff] [blame] | 78 | CONFIG_PAYLOAD_CONFIGFILE=$(CONFIG_PAYLOAD_CONFIGFILE) \ |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 79 | CONFIG_SEABIOS_THREAD_OPTIONROMS=$(CONFIG_SEABIOS_THREAD_OPTIONROMS) \ |
| 80 | CONFIG_SEABIOS_VGA_COREBOOT=$(CONFIG_SEABIOS_VGA_COREBOOT) \ |
Martin Roth | f80331f | 2016-02-06 12:47:05 -0700 | [diff] [blame] | 81 | CONFIG_DRIVERS_UART_8250IO=$(CONFIG_DRIVERS_UART_8250IO) \ |
Ricardo Ribalda Delgado | 77ced40 | 2017-01-03 11:56:22 +0100 | [diff] [blame] | 82 | CONFIG_DRIVERS_UART_8250MEM=$(CONFIG_DRIVERS_UART_8250MEM) \ |
| 83 | CONFIG_HUDSON_UART=$(CONFIG_HUDSON_UART) \ |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 84 | CONFIG_CONSOLE_SERIAL=$(CONFIG_CONSOLE_SERIAL) \ |
Stefan Tauner | c48d791 | 2017-01-15 11:49:25 +0100 | [diff] [blame] | 85 | CONFIG_TTYS0_BASE=$(CONFIG_TTYS0_BASE) \ |
Philipp Deppenwiese | d8b4139 | 2017-11-29 16:58:05 +0100 | [diff] [blame] | 86 | CONFIG_SEABIOS_DEBUG_LEVEL=$(CONFIG_SEABIOS_DEBUG_LEVEL) \ |
| 87 | CONFIG_DRIVERS_UART_8250MEM_32=$(CONFIG_DRIVERS_UART_8250MEM_32) \ |
| 88 | CONFIG_ENABLE_HSUART=$(CONFIG_ENABLE_HSUART) \ |
Michał Żygowski | 6d592c6 | 2020-05-07 15:14:24 +0200 | [diff] [blame] | 89 | CONFIG_CONSOLE_UART_BASE_ADDRESS=$(CONFIG_CONSOLE_UART_BASE_ADDRESS) \ |
| 90 | CONFIG_SEABIOS_HARDWARE_IRQ=$(CONFIG_SEABIOS_HARDWARE_IRQ) |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 91 | |
Bill XIE | 3dda4da | 2022-01-01 11:56:00 +0800 | [diff] [blame] | 92 | payloads/external/SeaBIOS/seabios/out/vgabios.bin: $(SEABIOS_TARGET_PATH) |
| 93 | payloads/external/SeaBIOS/seabios/.config: $(SEABIOS_TARGET_PATH) |
| 94 | payloads/external/SeaBIOS/seabios/out/autoversion.h: $(SEABIOS_TARGET_PATH) |
| 95 | |
| 96 | cbfs-files-$(CONFIG_SEABIOS_SECONDARY_PAYLOAD) += img/seabios |
| 97 | img/seabios-file := $(SEABIOS_TARGET_PATH) |
| 98 | img/seabios-type := payload |
| 99 | img/seabios-compression := $(CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG) |
Patrick Georgi | 4013469 | 2015-11-30 20:00:33 +0100 | [diff] [blame] | 100 | |
Martin Roth | bc46ac5 | 2016-06-05 10:30:34 -0600 | [diff] [blame] | 101 | # add a SeaBIOS bootorder file |
| 102 | ifneq ($(strip $(CONFIG_SEABIOS_BOOTORDER_FILE)),) |
| 103 | cbfs-files-y += bootorder |
| 104 | bootorder-file := $(strip $(CONFIG_SEABIOS_BOOTORDER_FILE)) |
| 105 | bootorder-type := raw |
| 106 | endif |
| 107 | |
Arthur Heymans | 14ca740 | 2020-10-14 16:46:02 +0200 | [diff] [blame] | 108 | ifneq ($(CONFIG_SEABIOS_PS2_TIMEOUT),) |
| 109 | ifneq ($(CONFIG_SEABIOS_PS2_TIMEOUT),0) |
Patrick Georgi | 2cc5bcb | 2021-01-13 09:15:07 +0100 | [diff] [blame] | 110 | $(call add_intermediate, seabios_ps2_timeout, $(CBFSTOOL)) |
Arthur Heymans | 14ca740 | 2020-10-14 16:46:02 +0200 | [diff] [blame] | 111 | @printf " SeaBIOS Wait up to $(CONFIG_SEABIOS_PS2_TIMEOUT) ms for PS/2 keyboard controller initialization\n" |
Arthur Heymans | c6bdabd | 2020-12-24 12:15:38 +0100 | [diff] [blame] | 112 | $(if $(CONFIG_UPDATE_IMAGE),-$(CBFSTOOL) $< remove -n etc/ps2-keyboard-spinup 2>/dev/null) |
Arthur Heymans | 14ca740 | 2020-10-14 16:46:02 +0200 | [diff] [blame] | 113 | $(CBFSTOOL) $< add-int -i $(CONFIG_SEABIOS_PS2_TIMEOUT) -n etc/ps2-keyboard-spinup |
| 114 | endif |
| 115 | endif |
Arthur Heymans | 14ca740 | 2020-10-14 16:46:02 +0200 | [diff] [blame] | 116 | |
| 117 | ifeq ($(CONFIG_SEABIOS_ADD_SERCON_PORT_FILE),y) |
Patrick Georgi | 2cc5bcb | 2021-01-13 09:15:07 +0100 | [diff] [blame] | 118 | $(call add_intermediate, seabios_sercon, $(CBFSTOOL)) |
Arthur Heymans | 14ca740 | 2020-10-14 16:46:02 +0200 | [diff] [blame] | 119 | @printf " SeaBIOS Add sercon-port file\n" |
Arthur Heymans | c6bdabd | 2020-12-24 12:15:38 +0100 | [diff] [blame] | 120 | $(if $(CONFIG_UPDATE_IMAGE),-$(CBFSTOOL) $< remove -n etc/sercon-port 2>/dev/null) |
Angel Pons | 6d4de7e | 2020-11-20 18:28:38 +0100 | [diff] [blame] | 121 | $(CBFSTOOL) $< add-int -i $(CONFIG_SEABIOS_SERCON_PORT_ADDR) -n etc/sercon-port |
Arthur Heymans | 14ca740 | 2020-10-14 16:46:02 +0200 | [diff] [blame] | 122 | endif |
| 123 | |
| 124 | ifeq ($(CONFIG_SEABIOS_THREAD_OPTIONROMS),y) |
Patrick Georgi | 2cc5bcb | 2021-01-13 09:15:07 +0100 | [diff] [blame] | 125 | $(call add_intermediate, seabios_thread_optionroms, $(CBFSTOOL)) |
Arthur Heymans | 14ca740 | 2020-10-14 16:46:02 +0200 | [diff] [blame] | 126 | @printf " SeaBIOS Thread optionroms\n" |
Arthur Heymans | c6bdabd | 2020-12-24 12:15:38 +0100 | [diff] [blame] | 127 | $(if $(CONFIG_UPDATE_IMAGE),-$(CBFSTOOL) $< remove -n etc/threads 2>/dev/null) |
Angel Pons | 6d4de7e | 2020-11-20 18:28:38 +0100 | [diff] [blame] | 128 | $(CBFSTOOL) $< add-int -i 2 -n etc/threads |
Arthur Heymans | 14ca740 | 2020-10-14 16:46:02 +0200 | [diff] [blame] | 129 | endif |
| 130 | |
Bill XIE | 3dda4da | 2022-01-01 11:56:00 +0800 | [diff] [blame] | 131 | ifeq ($(CONFIG_PAYLOAD_SEAGRUB),y) |
| 132 | ifneq ($(CONFIG_SEAGRUB_ALLOW_SEABIOS_BOOTMENU),y) |
| 133 | $(call add_intermediate, seabios_bootmenu, $(CBFSTOOL)) |
| 134 | @printf " SeaBIOS Disable boot menu\n" |
| 135 | $(if $(CONFIG_UPDATE_IMAGE),-$(CBFSTOOL) $< remove -n etc/show-boot-menu 2>/dev/null) |
| 136 | $(CBFSTOOL) $< add-int -i 0 -n etc/show-boot-menu |
| 137 | else |
| 138 | $(call add_intermediate, seabios_bootmenu, $(CBFSTOOL)) |
| 139 | $(if $(CONFIG_UPDATE_IMAGE),-$(CBFSTOOL) $< remove -n etc/show-boot-menu 2>/dev/null) |
| 140 | endif |
| 141 | endif |
| 142 | |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 143 | # Depthcharge |
| 144 | |
Paul Kocialkowski | fde3275 | 2016-07-24 12:25:07 +0200 | [diff] [blame] | 145 | payloads/external/depthcharge/depthcharge/build/depthcharge.elf depthcharge: $(DOTCONFIG) $(CBFSTOOL) |
Martin Roth | c8ed340 | 2016-03-16 10:39:30 -0600 | [diff] [blame] | 146 | $(MAKE) -C payloads/external/depthcharge \ |
Selma BENSAID | b458a4f | 2019-09-20 17:38:59 -0700 | [diff] [blame] | 147 | BOARD=$(BOARD) \ |
Marshall Dawson | f9973b5 | 2016-12-22 18:16:48 -0500 | [diff] [blame] | 148 | MFLAGS= MAKEFLAGS= \ |
| 149 | DEPTHCHARGE_MASTER=$(CONFIG_DEPTHCHARGE_MASTER) \ |
| 150 | DEPTHCHARGE_STABLE=$(CONFIG_DEPTHCHARGE_STABLE) \ |
| 151 | DEPTHCHARGE_REVISION=$(CONFIG_DEPTHCHARGE_REVISION) \ |
Marshall Dawson | fc18507 | 2016-12-22 20:25:29 -0500 | [diff] [blame] | 152 | DEPTHCHARGE_REVISION_ID=$(CONFIG_DEPTHCHARGE_REVISION_ID) \ |
| 153 | OVERRIDE_DEFCONFIG=$(CONFIG_LP_DEFCONFIG_OVERRIDE) |
Stefan Reinauer | 9125073 | 2015-07-15 10:24:18 -0700 | [diff] [blame] | 154 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 155 | # edk2 |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 156 | |
Sean Rhodes | 306550d | 2022-08-02 09:12:13 +0100 | [diff] [blame] | 157 | $(obj)/UEFIPAYLOAD.fd: $(DOTCONFIG) |
| 158 | $(MAKE) -C payloads/external/edk2 UefiPayloadPkg \ |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 159 | HOSTCC="$(HOSTCC)" \ |
| 160 | CC="$(HOSTCC)" \ |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 161 | CONFIG_EDK2_REPOSITORY=$(CONFIG_EDK2_REPOSITORY) \ |
| 162 | CONFIG_EDK2_TAG_OR_REV=$(CONFIG_EDK2_TAG_OR_REV) \ |
| 163 | CONFIG_EDK2_UEFIPAYLOAD=$(CONFIG_EDK2_UEFIPAYLOAD) \ |
Sean Rhodes | 91564fc | 2022-07-22 10:10:38 +0100 | [diff] [blame] | 164 | CONFIG_EDK2_REPO_OFFICIAL=$(CONFIG_EDK2_REPO_OFFICIAL) \ |
| 165 | CONFIG_EDK2_REPO_MRCHROMEBOX=$(CONFIG_EDK2_REPO_MRCHROMEBOX) \ |
| 166 | CONFIG_EDK2_REPO_CUSTOM=$(CONFIG_EDK2_REPO_CUSTOM) \ |
Sean Rhodes | 7bbc9a5 | 2022-07-18 11:31:00 +0100 | [diff] [blame] | 167 | CONFIG_EDK2_CPU_TIMER_LIB=$(CONFIG_EDK2_CPU_TIMER_LIB) \ |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 168 | CONFIG_EDK2_CUSTOM_BUILD_PARAMS=$(CONFIG_EDK2_CUSTOM_BUILD_PARAMS) \ |
| 169 | CONFIG_EDK2_DEBUG=$(CONFIG_EDK2_DEBUG) \ |
| 170 | CONFIG_EDK2_RELEASE=$(CONFIG_EDK2_RELEASE) \ |
Sean Rhodes | 0d6dc48 | 2022-09-16 09:18:38 +0100 | [diff] [blame] | 171 | CONFIG_EDK2_VERBOSE_BUILD=$(CONFIG_EDK2_VERBOSE_BUILD) \ |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 172 | CONFIG_EDK2_ABOVE_4G_MEMORY=$(CONFIG_EDK2_ABOVE_4G_MEMORY) \ |
| 173 | CONFIG_EDK2_BOOTSPLASH_FILE=$(CONFIG_EDK2_BOOTSPLASH_FILE) \ |
| 174 | CONFIG_EDK2_BOOT_MANAGER_ESCAPE=$(CONFIG_EDK2_BOOT_MANAGER_ESCAPE) \ |
| 175 | CONFIG_EDK2_BOOT_TIMEOUT=$(CONFIG_EDK2_BOOT_TIMEOUT) \ |
| 176 | CONFIG_EDK2_CBMEM_LOGGING=$(CONFIG_EDK2_CBMEM_LOGGING) \ |
| 177 | CONFIG_EDK2_FOLLOW_BGRT_SPEC=$(CONFIG_EDK2_FOLLOW_BGRT_SPEC) \ |
| 178 | CONFIG_EDK2_FULL_SCREEN_SETUP=$(CONFIG_EDK2_FULL_SCREEN_SETUP) \ |
| 179 | CONFIG_EDK2_HAVE_EFI_SHELL=$(CONFIG_EDK2_HAVE_EFI_SHELL) \ |
| 180 | CONFIG_EDK2_PRIORITIZE_INTERNAL=$(CONFIG_EDK2_PRIORITIZE_INTERNAL) \ |
| 181 | CONFIG_EDK2_PS2_SUPPORT=$(CONFIG_EDK2_PS2_SUPPORT) \ |
| 182 | CONFIG_EDK2_SERIAL_SUPPORT=$(CONFIG_EDK2_SERIAL_SUPPORT) \ |
| 183 | CONFIG_EDK2_SD_MMC_TIMEOUT=$(CONFIG_EDK2_SD_MMC_TIMEOUT) \ |
Sean Rhodes | 0884f210 | 2022-02-04 07:41:16 +0000 | [diff] [blame] | 184 | CONFIG_ECAM_MMCONF_BASE_ADDRESS=$(CONFIG_ECAM_MMCONF_BASE_ADDRESS) \ |
Sean Rhodes | 5a26d81 | 2022-07-04 21:44:32 +0100 | [diff] [blame] | 185 | CONFIG_ECAM_MMCONF_LENGTH=$(CONFIG_ECAM_MMCONF_LENGTH) \ |
Sean Rhodes | 7bbc9a5 | 2022-07-18 11:31:00 +0100 | [diff] [blame] | 186 | CONFIG_CPU_XTAL_HZ=$(CONFIG_CPU_XTAL_HZ) \ |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 187 | CONFIG_SMMSTORE_V2=$(CONFIG_SMMSTORE_v2) \ |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 188 | GCC_CC_x86_32=$(GCC_CC_x86_32) \ |
| 189 | GCC_CC_x86_64=$(GCC_CC_x86_64) \ |
| 190 | GCC_CC_arm=$(GCC_CC_arm) \ |
| 191 | GCC_CC_arm64=$(GCC_CC_arm64) \ |
| 192 | OBJCOPY_x86_32=$(OBJCOPY_x86_32) \ |
| 193 | OBJCOPY_x86_64=$(OBJCOPY_x86_64) \ |
| 194 | OBJCOPY_arm=$(OBJCOPY_arm) \ |
| 195 | OBJCOPY_arm64=$(OBJCOPY_arm64) \ |
| 196 | MFLAGS= MAKEFLAGS= |
| 197 | |
Sean Rhodes | 27c8bf0 | 2022-07-17 19:01:29 +0100 | [diff] [blame] | 198 | $(obj)/ShimmedUniversalPayload.elf: $(DOTCONFIG) |
| 199 | $(MAKE) -C payloads/external/edk2 UniversalPayload \ |
| 200 | HOSTCC="$(HOSTCC)" \ |
| 201 | CC="$(HOSTCC)" \ |
| 202 | CONFIG_EDK2_REPOSITORY=$(CONFIG_EDK2_REPOSITORY) \ |
| 203 | CONFIG_EDK2_TAG_OR_REV=$(CONFIG_EDK2_TAG_OR_REV) \ |
| 204 | CONFIG_EDK2_UEFIPAYLOAD=$(CONFIG_EDK2_UEFIPAYLOAD) \ |
| 205 | CONFIG_EDK2_REPO_OFFICIAL=$(CONFIG_EDK2_REPO_OFFICIAL) \ |
| 206 | CONFIG_EDK2_REPO_MRCHROMEBOX=$(CONFIG_EDK2_REPO_MRCHROMEBOX) \ |
| 207 | CONFIG_EDK2_REPO_CUSTOM=$(CONFIG_EDK2_REPO_CUSTOM) \ |
Sean Rhodes | 7bbc9a5 | 2022-07-18 11:31:00 +0100 | [diff] [blame] | 208 | CONFIG_EDK2_CPU_TIMER_LIB=$(CONFIG_EDK2_CPU_TIMER_LIB) \ |
Sean Rhodes | 27c8bf0 | 2022-07-17 19:01:29 +0100 | [diff] [blame] | 209 | CONFIG_EDK2_CUSTOM_BUILD_PARAMS=$(CONFIG_EDK2_CUSTOM_BUILD_PARAMS) \ |
| 210 | CONFIG_EDK2_DEBUG=$(CONFIG_EDK2_DEBUG) \ |
| 211 | CONFIG_EDK2_RELEASE=$(CONFIG_EDK2_RELEASE) \ |
| 212 | CONFIG_EDK2_ABOVE_4G_MEMORY=$(CONFIG_EDK2_ABOVE_4G_MEMORY) \ |
| 213 | CONFIG_EDK2_BOOTSPLASH_FILE=$(CONFIG_EDK2_BOOTSPLASH_FILE) \ |
| 214 | CONFIG_EDK2_BOOT_MANAGER_ESCAPE=$(CONFIG_EDK2_BOOT_MANAGER_ESCAPE) \ |
| 215 | CONFIG_EDK2_BOOT_TIMEOUT=$(CONFIG_EDK2_BOOT_TIMEOUT) \ |
| 216 | CONFIG_EDK2_CBMEM_LOGGING=$(CONFIG_EDK2_CBMEM_LOGGING) \ |
| 217 | CONFIG_EDK2_FOLLOW_BGRT_SPEC=$(CONFIG_EDK2_FOLLOW_BGRT_SPEC) \ |
| 218 | CONFIG_EDK2_FULL_SCREEN_SETUP=$(CONFIG_EDK2_FULL_SCREEN_SETUP) \ |
| 219 | CONFIG_EDK2_HAVE_EFI_SHELL=$(CONFIG_EDK2_HAVE_EFI_SHELL) \ |
| 220 | CONFIG_EDK2_PRIORITIZE_INTERNAL=$(CONFIG_EDK2_PRIORITIZE_INTERNAL) \ |
| 221 | CONFIG_EDK2_PS2_SUPPORT=$(CONFIG_EDK2_PS2_SUPPORT) \ |
| 222 | CONFIG_EDK2_SERIAL_SUPPORT=$(CONFIG_EDK2_SERIAL_SUPPORT) \ |
| 223 | CONFIG_EDK2_SD_MMC_TIMEOUT=$(CONFIG_EDK2_SD_MMC_TIMEOUT) \ |
| 224 | CONFIG_EDK2_UNIVERSAL_PAYLOAD=$(CONFIG_EDK2_UNIVERSAL_PAYLOAD) \ |
| 225 | CONFIG_ECAM_MMCONF_BASE_ADDRESS=$(CONFIG_ECAM_MMCONF_BASE_ADDRESS) \ |
| 226 | CONFIG_ECAM_MMCONF_LENGTH=$(CONFIG_ECAM_MMCONF_LENGTH) \ |
Sean Rhodes | 7bbc9a5 | 2022-07-18 11:31:00 +0100 | [diff] [blame] | 227 | CONFIG_CPU_XTAL_HZ=$(CONFIG_CPU_XTAL_HZ) \ |
Sean Rhodes | 27c8bf0 | 2022-07-17 19:01:29 +0100 | [diff] [blame] | 228 | CONFIG_SMMSTORE_V2=$(CONFIG_SMMSTORE_v2) \ |
| 229 | GCC_CC_x86_32=$(GCC_CC_x86_32) \ |
| 230 | GCC_CC_x86_64=$(GCC_CC_x86_64) \ |
| 231 | GCC_CC_arm=$(GCC_CC_arm) \ |
| 232 | GCC_CC_arm64=$(GCC_CC_arm64) \ |
| 233 | OBJCOPY_x86_32=$(OBJCOPY_x86_32) \ |
| 234 | OBJCOPY_x86_64=$(OBJCOPY_x86_64) \ |
| 235 | OBJCOPY_arm=$(OBJCOPY_arm) \ |
| 236 | OBJCOPY_arm64=$(OBJCOPY_arm64) \ |
| 237 | MFLAGS= MAKEFLAGS= |
| 238 | |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 239 | # FILO |
| 240 | |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 241 | filo: |
Martin Roth | c8ed340 | 2016-03-16 10:39:30 -0600 | [diff] [blame] | 242 | $(MAKE) -C payloads/external/FILO \ |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 243 | HOSTCC="$(HOSTCC)" \ |
| 244 | CC="$(CC_x86_32)" LD="$(LD_x86_32)" OBJDUMP="$(OBJDUMP_x86_32)" \ |
| 245 | OBJCOPY="$(OBJCOPY_x86_32)" STRIP="$(STRIP_x86_32)" \ |
| 246 | CONFIG_FILO_MASTER=$(CONFIG_FILO_MASTER) \ |
Paul Menzel | f72568c | 2021-07-08 19:16:17 +0200 | [diff] [blame] | 247 | CONFIG_FILO_STABLE=$(CONFIG_FILO_STABLE) \ |
| 248 | CONFIG_FILO_USE_AUTOBOOT=$(CONFIG_FILO_USE_AUTOBOOT) \ |
| 249 | CONFIG_FILO_AUTOBOOT_FILE=$(CONFIG_FILO_AUTOBOOT_FILE) \ |
| 250 | CONFIG_FILO_AUTOBOOT_DELAY=$(CONFIG_FILO_AUTOBOOT_DELAY) |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 251 | |
Patrick Georgi | 864b48d | 2015-12-04 16:52:18 +0100 | [diff] [blame] | 252 | payloads/external/FILO/filo/build/filo.elf: filo |
Patrick Georgi | 67e11d1 | 2016-01-14 20:41:58 +0100 | [diff] [blame] | 253 | payloads/external/FILO/filo/.config: filo |
| 254 | payloads/external/FILO/filo/build/version.h: filo |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 255 | |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 256 | # Grub |
| 257 | |
Bill XIE | 3dda4da | 2022-01-01 11:56:00 +0800 | [diff] [blame] | 258 | GRUB_TARGET_PATH=payloads/external/GRUB2/grub2/build/default_payload.elf |
| 259 | |
| 260 | cbfs-files-$(CONFIG_GRUB2_SECONDARY_PAYLOAD) += img/grub2 |
| 261 | img/grub2-file := $(GRUB_TARGET_PATH) |
| 262 | img/grub2-type := payload |
| 263 | img/grub2-compression := $(CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG) |
| 264 | |
Nico Huber | 4ff4492 | 2017-08-14 01:58:28 +0200 | [diff] [blame] | 265 | grub2: $(obj)/config.h |
Martin Roth | c8ed340 | 2016-03-16 10:39:30 -0600 | [diff] [blame] | 266 | $(MAKE) -C payloads/external/GRUB2 \ |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 267 | HOSTCC="$(HOSTCC)" \ |
Nico Huber | a2ab1fd | 2017-08-14 01:38:24 +0200 | [diff] [blame] | 268 | CC="$(CC_x86_32)" LD="$(LD_x86_32)" \ |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 269 | OBJCOPY="$(OBJCOPY_x86_32)" STRIP="$(STRIP_x86_32)" \ |
Nico Huber | 4ff4492 | 2017-08-14 01:58:28 +0200 | [diff] [blame] | 270 | CONFIG_DEP="$(abspath $(obj)/config.h)" \ |
Jonathan Neuschäfer | 2eb95f3 | 2017-11-20 01:56:41 +0100 | [diff] [blame] | 271 | CONFIG_GRUB2_STABLE=$(CONFIG_GRUB2_STABLE) \ |
Benjamin Barenblat | 9993286 | 2016-06-15 12:08:06 -0700 | [diff] [blame] | 272 | CONFIG_GRUB2_MASTER=$(CONFIG_GRUB2_MASTER) \ |
Denis 'GNUtoo' Carikli | 08cf195 | 2016-09-14 14:41:36 +0200 | [diff] [blame] | 273 | CONFIG_GRUB2_REVISION=$(CONFIG_GRUB2_REVISION) \ |
| 274 | CONFIG_GRUB2_REVISION_ID=$(CONFIG_GRUB2_REVISION_ID) \ |
Benjamin Barenblat | 9993286 | 2016-06-15 12:08:06 -0700 | [diff] [blame] | 275 | CONFIG_GRUB2_EXTRA_MODULES=$(CONFIG_GRUB2_EXTRA_MODULES) |
Patrick Georgi | 864b48d | 2015-12-04 16:52:18 +0100 | [diff] [blame] | 276 | |
Bill XIE | 3dda4da | 2022-01-01 11:56:00 +0800 | [diff] [blame] | 277 | $(GRUB_TARGET_PATH): grub2 |
Martin Roth | dbae4d0 | 2015-12-11 12:24:33 -0700 | [diff] [blame] | 278 | |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 279 | # U-Boot |
| 280 | |
Bill XIE | d85cee8 | 2021-12-11 17:37:57 +0800 | [diff] [blame] | 281 | payloads/external/U-Boot/build/u-boot.bin u-boot: $(DOTCONFIG) |
Martin Roth | c8ed340 | 2016-03-16 10:39:30 -0600 | [diff] [blame] | 282 | $(MAKE) -C payloads/external/U-Boot \ |
Bill XIE | d85cee8 | 2021-12-11 17:37:57 +0800 | [diff] [blame] | 283 | STABLE_COMMIT_ID=$(CONFIG_UBOOT_STABLE_COMMIT_ID) \ |
Martin Roth | dbae4d0 | 2015-12-11 12:24:33 -0700 | [diff] [blame] | 284 | CONFIG_UBOOT_MASTER=$(CONFIG_UBOOT_MASTER) \ |
| 285 | CONFIG_UBOOT_STABLE=$(CONFIG_UBOOT_STABLE) |
Martin Roth | be63a24 | 2016-02-28 15:56:27 -0800 | [diff] [blame] | 286 | |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 287 | # TINT |
| 288 | |
Antonello Dettori | 4f7d329 | 2016-05-27 23:44:47 +0200 | [diff] [blame] | 289 | payloads/external/tint/tint/tint.elf tint: |
| 290 | $(MAKE) -C payloads/external/tint |
| 291 | |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 292 | cbfs-files-$(CONFIG_TINT_SECONDARY_PAYLOAD) += img/tint |
| 293 | img/tint-file := payloads/external/tint/tint/tint.elf |
Ronald G. Minnich | c6d1349 | 2018-05-15 18:05:07 -0700 | [diff] [blame] | 294 | img/tint-type := payload |
Arthur Heymans | 47dd96d | 2018-02-07 13:01:43 +0100 | [diff] [blame] | 295 | img/tint-compression := $(CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG) |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 296 | |
| 297 | # Memtest86+ |
| 298 | |
Martin Roth | be63a24 | 2016-02-28 15:56:27 -0800 | [diff] [blame] | 299 | cbfs-files-$(CONFIG_MEMTEST_SECONDARY_PAYLOAD) += img/memtest |
| 300 | img/memtest-file := payloads/external/Memtest86Plus/memtest86plus/memtest |
Ronald G. Minnich | c6d1349 | 2018-05-15 18:05:07 -0700 | [diff] [blame] | 301 | img/memtest-type := payload |
Arthur Heymans | 47dd96d | 2018-02-07 13:01:43 +0100 | [diff] [blame] | 302 | img/memtest-compression := $(CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG) |
Martin Roth | be63a24 | 2016-02-28 15:56:27 -0800 | [diff] [blame] | 303 | |
| 304 | ifeq ($(CONFIG_CONSOLE_SERIAL)$(CONFIG_DRIVERS_UART_8250IO),yy) |
| 305 | MEMTEST_SERIAL_OPTIONS=SERIAL_CONSOLE_DEFAULT=1 \ |
| 306 | SERIAL_TTY=$(CONFIG_UART_FOR_CONSOLE) \ |
| 307 | SERIAL_BAUD_RATE=$(CONFIG_TTYS0_BAUD) |
| 308 | endif |
| 309 | |
Paul Kocialkowski | fde3275 | 2016-07-24 12:25:07 +0200 | [diff] [blame] | 310 | payloads/external/Memtest86Plus/memtest86plus/memtest: $(DOTCONFIG) |
Martin Roth | c8ed340 | 2016-03-16 10:39:30 -0600 | [diff] [blame] | 311 | $(MAKE) -C payloads/external/Memtest86Plus all \ |
Martin Roth | be63a24 | 2016-02-28 15:56:27 -0800 | [diff] [blame] | 312 | CC="$(CC_x86_32)" \ |
| 313 | LD="$(LD_x86_32)" \ |
| 314 | OBJCOPY="$(OBJCOPY_x86_32)" \ |
| 315 | AS="$(AS_x86_32)" \ |
Stefan Tauner | a07366c | 2018-08-19 17:48:53 +0200 | [diff] [blame] | 316 | CONFIG_MEMTEST_REVISION=$(CONFIG_MEMTEST_REVISION) \ |
| 317 | CONFIG_MEMTEST_REVISION_ID=$(CONFIG_MEMTEST_REVISION_ID) \ |
Martin Roth | 4005d9b | 2016-04-26 09:51:41 -0600 | [diff] [blame] | 318 | CONFIG_MEMTEST_MASTER=$(CONFIG_MEMTEST_MASTER) \ |
| 319 | CONFIG_MEMTEST_STABLE=$(CONFIG_MEMTEST_STABLE) \ |
Martin Roth | be63a24 | 2016-02-28 15:56:27 -0800 | [diff] [blame] | 320 | $(MEMTEST_SERIAL_OPTIONS) \ |
| 321 | MFLAGS= MAKEFLAGS= |
Martin Roth | 888a98b | 2016-03-13 13:00:43 -0600 | [diff] [blame] | 322 | |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 323 | # iPXE |
| 324 | |
Martin Roth | 888a98b | 2016-03-13 13:00:43 -0600 | [diff] [blame] | 325 | PXE_ROM_PCI_ID:=$(subst $(comma),,$(CONFIG_PXE_ROM_ID)) |
| 326 | |
| 327 | ifeq ($(CONFIG_PXE_ROM),y) |
| 328 | PXE_ROM_FILE:=$(CONFIG_PXE_ROM_FILE) |
| 329 | endif |
| 330 | ifeq ($(CONFIG_BUILD_IPXE),y) |
| 331 | PXE_ROM_FILE:=payloads/external/iPXE/ipxe/ipxe.rom |
| 332 | endif |
Patrick Rudolph | 23cb12b | 2017-07-25 19:36:25 +0200 | [diff] [blame] | 333 | ifeq ($(CONFIG_PXE_ADD_SCRIPT),y) |
| 334 | PXE_CONFIG_SCRIPT:=$(abspath $(patsubst "%",%,$(CONFIG_PXE_SCRIPT))) |
| 335 | endif |
Martin Roth | 888a98b | 2016-03-13 13:00:43 -0600 | [diff] [blame] | 336 | ifeq ($(CONFIG_CONSOLE_SERIAL)$(CONFIG_DRIVERS_UART_8250IO),yy) |
| 337 | IPXE_UART=COM$(call int-add,$(CONFIG_UART_FOR_CONSOLE) 1) |
| 338 | endif |
| 339 | |
Michał Żygowski | 9839eff | 2018-06-26 13:12:49 +0200 | [diff] [blame] | 340 | ifeq ($(CONFIG_PXE_SERIAL_CONSOLE),y) |
| 341 | IPXE_SERIAL_CONSOLE = $(CONFIG_CONSOLE_SERIAL)$(CONFIG_DRIVERS_UART_8250IO) |
| 342 | else |
| 343 | IPXE_SERIAL_CONSOLE = n |
| 344 | endif |
| 345 | |
Martin Roth | 888a98b | 2016-03-13 13:00:43 -0600 | [diff] [blame] | 346 | cbfs-files-$(CONFIG_PXE_ROM)$(CONFIG_BUILD_IPXE) += pci$(CONFIG_PXE_ROM_ID).rom |
| 347 | pci$(CONFIG_PXE_ROM_ID).rom-file := $(PXE_ROM_FILE) |
| 348 | pci$(CONFIG_PXE_ROM_ID).rom-type := raw |
| 349 | |
Patrick Rudolph | 23cb12b | 2017-07-25 19:36:25 +0200 | [diff] [blame] | 350 | payloads/external/iPXE/ipxe/ipxe.rom ipxe: $(DOTCONFIG) $(PXE_CONFIG_SCRIPT) |
Martin Roth | 888a98b | 2016-03-13 13:00:43 -0600 | [diff] [blame] | 351 | $(MAKE) -C payloads/external/iPXE all \ |
| 352 | CROSS_COMPILE="$(CROSS_COMPILE_$(ARCH-ramstage-y))" \ |
| 353 | PXE_ROM_PCI_ID=$(PXE_ROM_PCI_ID) \ |
| 354 | CONFIG_IPXE_MASTER=$(CONFIG_IPXE_MASTER) \ |
| 355 | CONFIG_IPXE_STABLE=$(CONFIG_IPXE_STABLE) \ |
Michał Żygowski | 9839eff | 2018-06-26 13:12:49 +0200 | [diff] [blame] | 356 | CONSOLE_SERIAL=$(IPXE_SERIAL_CONSOLE) \ |
Martin Roth | 888a98b | 2016-03-13 13:00:43 -0600 | [diff] [blame] | 357 | IPXE_UART=$(IPXE_UART) \ |
| 358 | CONFIG_TTYS0_BAUD=$(CONFIG_TTYS0_BAUD) \ |
Patrick Rudolph | 23cb12b | 2017-07-25 19:36:25 +0200 | [diff] [blame] | 359 | CONFIG_SCRIPT=$(PXE_CONFIG_SCRIPT) \ |
| 360 | CONFIG_HAS_SCRIPT=$(CONFIG_PXE_ADD_SCRIPT) \ |
Angel Pons | fa27686 | 2020-05-28 23:40:24 +0200 | [diff] [blame] | 361 | CONFIG_PXE_NO_PROMPT=$(CONFIG_PXE_NO_PROMPT) \ |
Felix Singer | c7f4736 | 2019-01-25 03:44:20 +0100 | [diff] [blame] | 362 | CONFIG_PXE_HAS_HTTPS=$(CONFIG_PXE_HAS_HTTPS) \ |
Martin Roth | 888a98b | 2016-03-13 13:00:43 -0600 | [diff] [blame] | 363 | MFLAGS= MAKEFLAGS= |
Philipp Deppenwiese | 0f0e4e6 | 2018-06-19 20:22:32 +0200 | [diff] [blame] | 364 | |
| 365 | # LinuxBoot |
| 366 | |
| 367 | linuxboot: |
| 368 | $(MAKE) -C payloads/external/LinuxBoot \ |
Philipp Deppenwiese | 0f0e4e6 | 2018-06-19 20:22:32 +0200 | [diff] [blame] | 369 | CPUS=$(CPUS) \ |
Marcello Sylvester Bauer | 79f9291 | 2018-12-05 08:45:26 +0100 | [diff] [blame] | 370 | CONFIG_LINUXBOOT_X86_64=$(CONFIG_LINUXBOOT_X86_64) \ |
| 371 | CONFIG_LINUXBOOT_X86=$(CONFIG_LINUXBOOT_X86) \ |
| 372 | CONFIG_LINUXBOOT_ARM64=$(CONFIG_LINUXBOOT_ARM64) \ |
Marcello Sylvester Bauer | 78d0256 | 2018-11-11 18:03:26 +0100 | [diff] [blame] | 373 | CONFIG_LINUXBOOT_KERNEL=$(CONFIG_PAYLOAD_FILE) \ |
| 374 | CONFIG_LINUXBOOT_INITRAMFS=$(CONFIG_LINUX_INITRD) \ |
Marcello Sylvester Bauer | e102c5d | 2018-11-21 17:45:43 +0100 | [diff] [blame] | 375 | CONFIG_LINUXBOOT_INITRAMFS_SUFFIX=$(CONFIG_LINUXBOOT_INITRAMFS_SUFFIX) \ |
Marcello Sylvester Bauer | 78d0256 | 2018-11-11 18:03:26 +0100 | [diff] [blame] | 376 | CONFIG_LINUXBOOT_COMPILE_KERNEL=$(CONFIG_LINUXBOOT_COMPILE_KERNEL) \ |
| 377 | CONFIG_LINUXBOOT_BUILD_INITRAMFS=$(CONFIG_LINUXBOOT_BUILD_INITRAMFS) \ |
Marcello Sylvester Bauer | 79f9291 | 2018-12-05 08:45:26 +0100 | [diff] [blame] | 378 | CONFIG_LINUXBOOT_KERNEL_MAINLINE=$(CONFIG_LINUXBOOT_KERNEL_MAINLINE) \ |
| 379 | CONFIG_LINUXBOOT_KERNEL_STABLE=$(CONFIG_LINUXBOOT_KERNEL_STABLE) \ |
| 380 | CONFIG_LINUXBOOT_KERNEL_LONGTERM=$(CONFIG_LINUXBOOT_KERNEL_LONGTERM) \ |
| 381 | CONFIG_LINUXBOOT_KERNEL_CUSTOM=$(CONFIG_LINUXBOOT_KERNEL_CUSTOM) \ |
| 382 | CONFIG_LINUXBOOT_KERNEL_CUSTOM_VERSION=$(CONFIG_LINUXBOOT_KERNEL_CUSTOM_VERSION) \ |
| 383 | CONFIG_LINUXBOOT_KERNEL_CUSTOM_CONFIG=$(CONFIG_LINUXBOOT_KERNEL_CUSTOM_CONFIG) \ |
| 384 | CONFIG_LINUXBOOT_KERNEL_BZIMAGE=$(CONFIG_LINUXBOOT_KERNEL_BZIMAGE) \ |
| 385 | CONFIG_LINUXBOOT_KERNEL_UIMAGE=$(CONFIG_LINUXBOOT_KERNEL_UIMAGE) \ |
Philipp Deppenwiese | 0f0e4e6 | 2018-06-19 20:22:32 +0200 | [diff] [blame] | 386 | CONFIG_LINUXBOOT_KERNEL_CONFIGFILE=$(CONFIG_LINUXBOOT_KERNEL_CONFIGFILE) \ |
Marcello Sylvester Bauer | e102c5d | 2018-11-21 17:45:43 +0100 | [diff] [blame] | 387 | CONFIG_LINUXBOOT_INITRAMFS_COMPRESSION_XZ=$(CONFIG_LINUXBOOT_INITRAMFS_COMPRESSION_XZ) \ |
Marcello Sylvester Bauer | 78d0256 | 2018-11-11 18:03:26 +0100 | [diff] [blame] | 388 | CONFIG_LINUXBOOT_UROOT=$(CONFIG_LINUXBOOT_UROOT) \ |
Philipp Deppenwiese | 0f0e4e6 | 2018-06-19 20:22:32 +0200 | [diff] [blame] | 389 | CONFIG_LINUXBOOT_UROOT_VERSION=$(CONFIG_LINUXBOOT_UROOT_VERSION) \ |
Marcello Sylvester Bauer | e102c5d | 2018-11-21 17:45:43 +0100 | [diff] [blame] | 390 | CONFIG_LINUXBOOT_UROOT_FORMAT=$(CONFIG_LINUXBOOT_UROOT_FORMAT) \ |
| 391 | CONFIG_LINUXBOOT_UROOT_INITCMD=$(CONFIG_LINUXBOOT_UROOT_INITCMD) \ |
Patrik Tesarik | 868282e | 2020-04-11 16:17:35 +0200 | [diff] [blame] | 392 | CONFIG_LINUXBOOT_UROOT_UINITCMD=$(CONFIG_LINUXBOOT_UROOT_UINITCMD)\ |
Marcello Sylvester Bauer | e102c5d | 2018-11-21 17:45:43 +0100 | [diff] [blame] | 393 | CONFIG_LINUXBOOT_UROOT_SHELL=$(CONFIG_LINUXBOOT_UROOT_SHELL) \ |
David Hendricks | fb03dd6 | 2018-08-08 19:16:55 -0700 | [diff] [blame] | 394 | CONFIG_LINUXBOOT_UROOT_COMMANDS=$(CONFIG_LINUXBOOT_UROOT_COMMANDS) \ |
Patrick Rudolph | 02c0814 | 2018-03-13 11:22:26 +0100 | [diff] [blame] | 395 | CONFIG_LINUXBOOT_UROOT_FILES=$(CONFIG_LINUXBOOT_UROOT_FILES) \ |
Marcello Sylvester Bauer | 78d0256 | 2018-11-11 18:03:26 +0100 | [diff] [blame] | 396 | CONFIG_LINUXBOOT_DTB_FILE=$(CONFIG_LINUXBOOT_DTB_FILE) |
Patrick Rudolph | 02c0814 | 2018-03-13 11:22:26 +0100 | [diff] [blame] | 397 | |
Marcello Sylvester Bauer | 78d0256 | 2018-11-11 18:03:26 +0100 | [diff] [blame] | 398 | payloads/external/LinuxBoot/linuxboot/bzImage: linuxboot |
| 399 | payloads/external/LinuxBoot/linuxboot/uImage: linuxboot |
Marcello Sylvester Bauer | e102c5d | 2018-11-21 17:45:43 +0100 | [diff] [blame] | 400 | payloads/external/LinuxBoot/linuxboot/initramfs_u-root.cpio: linuxboot |
Philipp Deppenwiese | 0f0e4e6 | 2018-06-19 20:22:32 +0200 | [diff] [blame] | 401 | |
Marcello Sylvester Bauer | 78d0256 | 2018-11-11 18:03:26 +0100 | [diff] [blame] | 402 | # Yabits |
Martin Roth | f2c3d80 | 2018-09-13 04:06:39 -0600 | [diff] [blame] | 403 | |
| 404 | payloads/external/Yabits/uefi/build/uefi.elf yabits: |
| 405 | $(MAKE) -C payloads/external/Yabits all \ |
Nico Huber | cf96c2a | 2019-07-24 20:17:14 +0200 | [diff] [blame] | 406 | XGCCPATH="$(XGCCPATH)" \ |
Martin Roth | f2c3d80 | 2018-09-13 04:06:39 -0600 | [diff] [blame] | 407 | CONFIG_YABITS_REVISION=$(CONFIG_YABITS_REVISION) \ |
| 408 | CONFIG_YABITS_REVISION_ID=$(CONFIG_YABITS_REVISION_ID) \ |
| 409 | CONFIG_YABITS_MASTER=$(CONFIG_YABITS_MASTER) \ |
| 410 | CONFIG_YABITS_STABLE=$(CONFIG_YABITS_STABLE) \ |
| 411 | MFLAGS= MAKEFLAGS= |
Zoltan Baldaszti | be58923 | 2020-09-17 19:45:21 +0200 | [diff] [blame] | 412 | |
| 413 | # BOOTBOOT |
| 414 | |
| 415 | payloads/external/BOOTBOOT/bootboot/dist/bootbootcb.elf: |
| 416 | $(MAKE) -C payloads/external/BOOTBOOT all |
Sergii Dmytruk | a816c29 | 2021-10-27 00:23:14 +0300 | [diff] [blame] | 417 | |
| 418 | # skiboot |
| 419 | |
| 420 | payloads/external/skiboot/build/skiboot.elf: |
| 421 | $(MAKE) -C payloads/external/skiboot all \ |
| 422 | CONFIG_SKIBOOT_GIT_REPO=$(CONFIG_SKIBOOT_GIT_REPO) \ |
| 423 | CONFIG_SKIBOOT_REVISION=$(CONFIG_SKIBOOT_REVISION) |
Nicholas Chin | 8d88557 | 2021-08-28 09:40:41 -0600 | [diff] [blame] | 424 | # COREDOOM |
| 425 | |
| 426 | payloads/external/coreDOOM/coredoom/doomgeneric/coredoom.elf coredoom: |
| 427 | $(MAKE) -C payloads/external/coreDOOM |
| 428 | |
| 429 | cbfs-files-$(CONFIG_COREDOOM_SECONDARY_PAYLOAD) += img/coreDOOM |
| 430 | img/coreDOOM-file := payloads/external/coreDOOM/coredoom/doomgeneric/coredoom.elf |
| 431 | img/coreDOOM-type := payload |
| 432 | img/coreDOOM-compression := $(CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG) |
| 433 | # WAD file |
| 434 | ifneq ($(strip $(CONFIG_COREDOOM_WAD_FILE)),) |
| 435 | cbfs-files-y += doom.wad |
| 436 | doom.wad-file := $(strip $(CONFIG_COREDOOM_WAD_FILE)) |
| 437 | doom.wad-type := raw |
| 438 | doom.wad-compression := $(CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG) |
| 439 | endif |