Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 1 | ################################################################################ |
| 2 | ## |
| 3 | ## This file is part of the coreboot project. |
| 4 | ## |
| 5 | ## Copyright (C) 2009-2010 coresystems GmbH |
| 6 | ## Copyright (C) 2015 Google Inc. |
Philipp Deppenwiese | 0f0e4e6 | 2018-06-19 20:22:32 +0200 | [diff] [blame] | 7 | ## Copyright (C) 2017 Facebook Inc. |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 8 | ## |
| 9 | ## This program is free software; you can redistribute it and/or modify |
| 10 | ## it under the terms of the GNU General Public License as published by |
| 11 | ## the Free Software Foundation; version 2 of the License. |
| 12 | ## |
| 13 | ## This program is distributed in the hope that it will be useful, |
| 14 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | ## GNU General Public License for more details. |
| 17 | ## |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 18 | |
Martin Roth | 7b928cd | 2015-06-19 20:50:59 -0600 | [diff] [blame] | 19 | ###################################################################### |
| 20 | # set up payload config and version files for later inclusion |
| 21 | ifeq ($(CONFIG_PAYLOAD_SEABIOS),y) |
| 22 | PAYLOAD_CONFIG=payloads/external/SeaBIOS/seabios/.config |
Martin Roth | 886f478 | 2015-11-28 13:23:48 -0700 | [diff] [blame] | 23 | PAYLOAD_VERSION=payloads/external/SeaBIOS/seabios/out/autoversion.h |
Martin Roth | 7b928cd | 2015-06-19 20:50:59 -0600 | [diff] [blame] | 24 | endif |
| 25 | ifeq ($(CONFIG_PAYLOAD_FILO),y) |
| 26 | PAYLOAD_CONFIG=payloads/external/FILO/filo/.config |
| 27 | PAYLOAD_VERSION=payloads/external/FILO/filo/build/version.h |
| 28 | endif |
Stefan Reinauer | 9125073 | 2015-07-15 10:24:18 -0700 | [diff] [blame] | 29 | ifeq ($(CONFIG_PAYLOAD_DEPTHCHARGE),y) |
| 30 | PAYLOAD_CONFIG=payloads/external/depthcharge/depthcharge/.config |
Nico Huber | 45ccab3 | 2017-10-23 14:53:52 +0200 | [diff] [blame] | 31 | $(PAYLOAD_CONFIG): payloads/external/depthcharge/depthcharge/build/depthcharge.elf |
Selma BENSAID | 6aa81fa | 2019-10-25 11:36:17 -0700 | [diff] [blame] | 32 | ifeq ($(call strip_quotes,$(CONFIG_MAINBOARD_DEPTHCHARGE))),) |
Selma BENSAID | b458a4f | 2019-09-20 17:38:59 -0700 | [diff] [blame] | 33 | 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] | 34 | else |
| 35 | BOARD=$(CONFIG_MAINBOARD_DEPTHCHARGE) |
Selma BENSAID | b458a4f | 2019-09-20 17:38:59 -0700 | [diff] [blame] | 36 | endif |
Stefan Reinauer | 9125073 | 2015-07-15 10:24:18 -0700 | [diff] [blame] | 37 | #TODO: Figure out version |
| 38 | endif |
Martin Roth | 7b928cd | 2015-06-19 20:50:59 -0600 | [diff] [blame] | 39 | |
Marcello Sylvester Bauer | a426669 | 2018-11-06 12:32:14 +0100 | [diff] [blame] | 40 | ifeq ($(CONFIG_PAYLOAD_LINUX)$(CONFIG_PAYLOAD_LINUXBOOT),y) |
Stefan Reinauer | 785a31d | 2016-04-13 13:13:02 -0700 | [diff] [blame] | 41 | ifneq ($(strip $(call strip_quotes,$(CONFIG_LINUX_COMMAND_LINE))),) |
| 42 | ADDITIONAL_PAYLOAD_CONFIG+=-C $(CONFIG_LINUX_COMMAND_LINE) |
| 43 | endif |
| 44 | ifneq ($(strip $(call strip_quotes,$(CONFIG_LINUX_INITRD))),) |
Marcello Sylvester Bauer | 78d0256 | 2018-11-11 18:03:26 +0100 | [diff] [blame] | 45 | ifneq ($(CONFIG_LINUXBOOT_ARM64),y) |
Marcello Sylvester Bauer | e102c5d | 2018-11-21 17:45:43 +0100 | [diff] [blame] | 46 | ADDITIONAL_PAYLOAD_CONFIG+=-I $(CONFIG_LINUX_INITRD)$(CONFIG_LINUXBOOT_INITRAMFS_SUFFIX) |
Marcello Sylvester Bauer | 78d0256 | 2018-11-11 18:03:26 +0100 | [diff] [blame] | 47 | prebuilt-files += $(strip $(call strip_quotes,$(CONFIG_LINUX_INITRD))) |
| 48 | endif |
Stefan Reinauer | 785a31d | 2016-04-13 13:13:02 -0700 | [diff] [blame] | 49 | endif |
| 50 | endif |
| 51 | ifneq ($(strip $(call strip_quotes,$(CONFIG_PAYLOAD_OPTIONS))),) |
| 52 | ADDITIONAL_PAYLOAD_CONFIG+=$(strip $(call strip_quotes,$(CONFIG_PAYLOAD_OPTIONS))) |
| 53 | endif |
| 54 | |
Werner Zeh | bc2d151 | 2016-05-03 09:52:12 +0200 | [diff] [blame] | 55 | cbfs-files-y += $(CONFIG_CBFS_PREFIX)/payload |
| 56 | $(CONFIG_CBFS_PREFIX)/payload-file := $(CONFIG_PAYLOAD_FILE) |
| 57 | ifeq ($(CONFIG_PAYLOAD_IS_FLAT_BINARY),y) |
| 58 | $(CONFIG_CBFS_PREFIX)/payload-type := flat-binary |
| 59 | else |
Ronald G. Minnich | c6d1349 | 2018-05-15 18:05:07 -0700 | [diff] [blame] | 60 | $(CONFIG_CBFS_PREFIX)/payload-type := payload |
Werner Zeh | bc2d151 | 2016-05-03 09:52:12 +0200 | [diff] [blame] | 61 | endif |
| 62 | $(CONFIG_CBFS_PREFIX)/payload-compression := $(CBFS_PAYLOAD_COMPRESS_FLAG) |
| 63 | $(CONFIG_CBFS_PREFIX)/payload-options := $(ADDITIONAL_PAYLOAD_CONFIG) |
| 64 | |
Martin Roth | d4c2484 | 2015-12-16 16:09:11 -0700 | [diff] [blame] | 65 | cbfs-files-$(CONFIG_INCLUDE_CONFIG_FILE) += payload_config |
| 66 | payload_config-file := $(PAYLOAD_CONFIG) |
| 67 | payload_config-type := raw |
| 68 | |
| 69 | cbfs-files-$(CONFIG_INCLUDE_CONFIG_FILE) += payload_revision |
| 70 | payload_revision-file := $(PAYLOAD_VERSION) |
| 71 | payload_revision-type := raw |
| 72 | |
Denis 'GNUtoo' Carikli | 8fb72c9 | 2017-01-08 06:43:01 +0100 | [diff] [blame] | 73 | cbfs-files-$(CONFIG_GRUB2_INCLUDE_RUNTIME_CONFIG_FILE) += etc/grub.cfg |
| 74 | etc/grub.cfg-file := $(CONFIG_GRUB2_RUNTIME_CONFIG_FILE) |
| 75 | etc/grub.cfg-type := raw |
| 76 | etc/grub.cfg-required := the GRUB runtime configuration file ($(CONFIG_GRUB2_RUNTIME_CONFIG_FILE)) |
| 77 | |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 78 | # SeaBIOS |
| 79 | |
Patrick Georgi | c983671 | 2015-08-08 21:35:38 +0200 | [diff] [blame] | 80 | SEABIOS_CC_OFFSET=$(if $(filter %ccache,$(HOSTCC)),2,1) |
Paul Kocialkowski | fde3275 | 2016-07-24 12:25:07 +0200 | [diff] [blame] | 81 | payloads/external/SeaBIOS/seabios/out/bios.bin.elf seabios: $(DOTCONFIG) |
Martin Roth | c8ed340 | 2016-03-16 10:39:30 -0600 | [diff] [blame] | 82 | $(MAKE) -C payloads/external/SeaBIOS \ |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 83 | HOSTCC="$(HOSTCC)" \ |
Martin Roth | 342cf7f | 2016-03-07 22:04:01 -0700 | [diff] [blame] | 84 | CC=$(word $(SEABIOS_CC_OFFSET),$(CC_x86_32)) \ |
| 85 | 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] | 86 | LD=$(word 1,$(LD_x86_32)) LDFLAGS="$(patsubst $(word 1,$(LD_x86_32))%,,$(LD_x86_32))" \ |
| 87 | OBJDUMP="$(OBJDUMP_x86_32)" \ |
| 88 | OBJCOPY="$(OBJCOPY_x86_32)" STRIP="$(STRIP_x86_32)" \ |
| 89 | AS="$(AS_x86_32)" IASL="$(IASL)" \ |
| 90 | CONFIG_SEABIOS_MASTER=$(CONFIG_SEABIOS_MASTER) \ |
| 91 | CONFIG_SEABIOS_STABLE=$(CONFIG_SEABIOS_STABLE) \ |
Antonello Dettori | 3aa91dc | 2016-03-07 23:56:57 +0000 | [diff] [blame] | 92 | CONFIG_SEABIOS_REVISION=$(CONFIG_SEABIOS_REVISION) \ |
| 93 | CONFIG_SEABIOS_REVISION_ID=$(CONFIG_SEABIOS_REVISION_ID) \ |
Martin Roth | 99d05c7 | 2015-11-28 15:44:34 -0700 | [diff] [blame] | 94 | CONFIG_PAYLOAD_CONFIGFILE=$(CONFIG_PAYLOAD_CONFIGFILE) \ |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 95 | CONFIG_SEABIOS_THREAD_OPTIONROMS=$(CONFIG_SEABIOS_THREAD_OPTIONROMS) \ |
| 96 | CONFIG_SEABIOS_VGA_COREBOOT=$(CONFIG_SEABIOS_VGA_COREBOOT) \ |
Martin Roth | f80331f | 2016-02-06 12:47:05 -0700 | [diff] [blame] | 97 | CONFIG_DRIVERS_UART_8250IO=$(CONFIG_DRIVERS_UART_8250IO) \ |
Ricardo Ribalda Delgado | 77ced40 | 2017-01-03 11:56:22 +0100 | [diff] [blame] | 98 | CONFIG_DRIVERS_UART_8250MEM=$(CONFIG_DRIVERS_UART_8250MEM) \ |
| 99 | CONFIG_HUDSON_UART=$(CONFIG_HUDSON_UART) \ |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 100 | CONFIG_CONSOLE_SERIAL=$(CONFIG_CONSOLE_SERIAL) \ |
Stefan Tauner | c48d791 | 2017-01-15 11:49:25 +0100 | [diff] [blame] | 101 | CONFIG_TTYS0_BASE=$(CONFIG_TTYS0_BASE) \ |
Philipp Deppenwiese | d8b4139 | 2017-11-29 16:58:05 +0100 | [diff] [blame] | 102 | CONFIG_SEABIOS_DEBUG_LEVEL=$(CONFIG_SEABIOS_DEBUG_LEVEL) \ |
| 103 | CONFIG_DRIVERS_UART_8250MEM_32=$(CONFIG_DRIVERS_UART_8250MEM_32) \ |
| 104 | CONFIG_ENABLE_HSUART=$(CONFIG_ENABLE_HSUART) \ |
| 105 | CONFIG_CONSOLE_UART_BASE_ADDRESS=$(CONFIG_CONSOLE_UART_BASE_ADDRESS) |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 106 | |
Patrick Georgi | 4013469 | 2015-11-30 20:00:33 +0100 | [diff] [blame] | 107 | payloads/external/SeaBIOS/seabios/out/vgabios.bin: seabios |
Martin Roth | 342cf7f | 2016-03-07 22:04:01 -0700 | [diff] [blame] | 108 | payloads/external/SeaBIOS/seabios/.config: payloads/external/SeaBIOS/seabios/out/bios.bin.elf |
| 109 | payloads/external/SeaBIOS/seabios/out/autoversion.h: payloads/external/SeaBIOS/seabios/out/bios.bin.elf |
Patrick Georgi | 4013469 | 2015-11-30 20:00:33 +0100 | [diff] [blame] | 110 | |
Martin Roth | bc46ac5 | 2016-06-05 10:30:34 -0600 | [diff] [blame] | 111 | # add a SeaBIOS bootorder file |
| 112 | ifneq ($(strip $(CONFIG_SEABIOS_BOOTORDER_FILE)),) |
| 113 | cbfs-files-y += bootorder |
| 114 | bootorder-file := $(strip $(CONFIG_SEABIOS_BOOTORDER_FILE)) |
| 115 | bootorder-type := raw |
| 116 | endif |
| 117 | |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 118 | # Depthcharge |
| 119 | |
Paul Kocialkowski | fde3275 | 2016-07-24 12:25:07 +0200 | [diff] [blame] | 120 | payloads/external/depthcharge/depthcharge/build/depthcharge.elf depthcharge: $(DOTCONFIG) $(CBFSTOOL) |
Martin Roth | c8ed340 | 2016-03-16 10:39:30 -0600 | [diff] [blame] | 121 | $(MAKE) -C payloads/external/depthcharge \ |
Selma BENSAID | b458a4f | 2019-09-20 17:38:59 -0700 | [diff] [blame] | 122 | BOARD=$(BOARD) \ |
Marshall Dawson | f9973b5 | 2016-12-22 18:16:48 -0500 | [diff] [blame] | 123 | MFLAGS= MAKEFLAGS= \ |
| 124 | DEPTHCHARGE_MASTER=$(CONFIG_DEPTHCHARGE_MASTER) \ |
| 125 | DEPTHCHARGE_STABLE=$(CONFIG_DEPTHCHARGE_STABLE) \ |
| 126 | DEPTHCHARGE_REVISION=$(CONFIG_DEPTHCHARGE_REVISION) \ |
Marshall Dawson | fc18507 | 2016-12-22 20:25:29 -0500 | [diff] [blame] | 127 | DEPTHCHARGE_REVISION_ID=$(CONFIG_DEPTHCHARGE_REVISION_ID) \ |
| 128 | OVERRIDE_DEFCONFIG=$(CONFIG_LP_DEFCONFIG_OVERRIDE) |
Stefan Reinauer | 9125073 | 2015-07-15 10:24:18 -0700 | [diff] [blame] | 129 | |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 130 | # Tianocore |
| 131 | |
| 132 | payloads/external/tianocore/tianocore/Build/UEFIPAYLOAD.fd tianocore: $(DOTCONFIG) |
| 133 | $(MAKE) -C payloads/external/tianocore all \ |
| 134 | HOSTCC="$(HOSTCC)" \ |
| 135 | CC="$(HOSTCC)" \ |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 136 | CONFIG_TIANOCORE_REVISION_ID=$(CONFIG_TIANOCORE_REVISION_ID) \ |
| 137 | CONFIG_TIANOCORE_DEBUG=$(CONFIG_TIANOCORE_DEBUG) \ |
| 138 | CONFIG_TIANOCORE_TARGET_IA32=$(CONFIG_TIANOCORE_TARGET_IA32) \ |
Lijian Zhao | cf9ea55 | 2018-09-07 17:58:08 -0700 | [diff] [blame] | 139 | CONFIG_TIANOCORE_USE_8254_TIMER=$(CONFIG_TIANOCORE_USE_8254_TIMER) \ |
Matt DeVillier | ff79341 | 2019-02-21 22:41:59 -0600 | [diff] [blame] | 140 | CONFIG_TIANOCORE_BOOTSPLASH_FILE=$(CONFIG_TIANOCORE_BOOTSPLASH_FILE) \ |
Lijian Zhao | 16562cb | 2019-07-20 13:06:03 +0800 | [diff] [blame] | 141 | CONFIG_TIANOCORE_UEFIPAYLOAD=$(CONFIG_TIANOCORE_UEFIPAYLOAD) \ |
| 142 | CONFIG_TIANOCORE_COREBOOTPAYLOAD=$(CONFIG_TIANOCORE_COREBOOTPAYLOAD) \ |
| 143 | CONFIG_MMCONF_BASE_ADDRESS=$(CONFIG_MMCONF_BASE_ADDRESS) \ |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 144 | GCC_CC_x86_32=$(GCC_CC_x86_32) \ |
| 145 | GCC_CC_x86_64=$(GCC_CC_x86_64) \ |
| 146 | GCC_CC_arm=$(GCC_CC_arm) \ |
| 147 | GCC_CC_arm64=$(GCC_CC_arm64) \ |
| 148 | OBJCOPY_x86_32=$(OBJCOPY_x86_32) \ |
| 149 | OBJCOPY_x86_64=$(OBJCOPY_x86_64) \ |
| 150 | OBJCOPY_arm=$(OBJCOPY_arm) \ |
| 151 | OBJCOPY_arm64=$(OBJCOPY_arm64) \ |
| 152 | MFLAGS= MAKEFLAGS= |
| 153 | |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 154 | # FILO |
| 155 | |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 156 | filo: |
Martin Roth | c8ed340 | 2016-03-16 10:39:30 -0600 | [diff] [blame] | 157 | $(MAKE) -C payloads/external/FILO \ |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 158 | HOSTCC="$(HOSTCC)" \ |
| 159 | CC="$(CC_x86_32)" LD="$(LD_x86_32)" OBJDUMP="$(OBJDUMP_x86_32)" \ |
| 160 | OBJCOPY="$(OBJCOPY_x86_32)" STRIP="$(STRIP_x86_32)" \ |
| 161 | CONFIG_FILO_MASTER=$(CONFIG_FILO_MASTER) \ |
| 162 | CONFIG_FILO_STABLE=$(CONFIG_FILO_STABLE) |
| 163 | |
Patrick Georgi | 864b48d | 2015-12-04 16:52:18 +0100 | [diff] [blame] | 164 | payloads/external/FILO/filo/build/filo.elf: filo |
Patrick Georgi | 67e11d1 | 2016-01-14 20:41:58 +0100 | [diff] [blame] | 165 | payloads/external/FILO/filo/.config: filo |
| 166 | payloads/external/FILO/filo/build/version.h: filo |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 167 | |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 168 | # Grub |
| 169 | |
Nico Huber | 4ff4492 | 2017-08-14 01:58:28 +0200 | [diff] [blame] | 170 | grub2: $(obj)/config.h |
Martin Roth | c8ed340 | 2016-03-16 10:39:30 -0600 | [diff] [blame] | 171 | $(MAKE) -C payloads/external/GRUB2 \ |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 172 | HOSTCC="$(HOSTCC)" \ |
Nico Huber | a2ab1fd | 2017-08-14 01:38:24 +0200 | [diff] [blame] | 173 | CC="$(CC_x86_32)" LD="$(LD_x86_32)" \ |
Stefan Reinauer | 0fa5d8f | 2015-06-30 17:09:17 -0700 | [diff] [blame] | 174 | OBJCOPY="$(OBJCOPY_x86_32)" STRIP="$(STRIP_x86_32)" \ |
Nico Huber | 4ff4492 | 2017-08-14 01:58:28 +0200 | [diff] [blame] | 175 | CONFIG_DEP="$(abspath $(obj)/config.h)" \ |
Jonathan Neuschäfer | 2eb95f3 | 2017-11-20 01:56:41 +0100 | [diff] [blame] | 176 | CONFIG_GRUB2_STABLE=$(CONFIG_GRUB2_STABLE) \ |
Benjamin Barenblat | 9993286 | 2016-06-15 12:08:06 -0700 | [diff] [blame] | 177 | CONFIG_GRUB2_MASTER=$(CONFIG_GRUB2_MASTER) \ |
Denis 'GNUtoo' Carikli | 08cf195 | 2016-09-14 14:41:36 +0200 | [diff] [blame] | 178 | CONFIG_GRUB2_REVISION=$(CONFIG_GRUB2_REVISION) \ |
| 179 | CONFIG_GRUB2_REVISION_ID=$(CONFIG_GRUB2_REVISION_ID) \ |
Benjamin Barenblat | 9993286 | 2016-06-15 12:08:06 -0700 | [diff] [blame] | 180 | CONFIG_GRUB2_EXTRA_MODULES=$(CONFIG_GRUB2_EXTRA_MODULES) |
Patrick Georgi | 864b48d | 2015-12-04 16:52:18 +0100 | [diff] [blame] | 181 | |
| 182 | payloads/external/GRUB2/grub2/build/default_payload.elf: grub2 |
Martin Roth | dbae4d0 | 2015-12-11 12:24:33 -0700 | [diff] [blame] | 183 | |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 184 | # U-Boot |
| 185 | |
Paul Kocialkowski | fde3275 | 2016-07-24 12:25:07 +0200 | [diff] [blame] | 186 | payloads/external/U-Boot/u-boot/u-boot-dtb.bin u-boot: $(DOTCONFIG) |
Martin Roth | c8ed340 | 2016-03-16 10:39:30 -0600 | [diff] [blame] | 187 | $(MAKE) -C payloads/external/U-Boot \ |
Martin Roth | dbae4d0 | 2015-12-11 12:24:33 -0700 | [diff] [blame] | 188 | CONFIG_UBOOT_MASTER=$(CONFIG_UBOOT_MASTER) \ |
| 189 | CONFIG_UBOOT_STABLE=$(CONFIG_UBOOT_STABLE) |
Martin Roth | be63a24 | 2016-02-28 15:56:27 -0800 | [diff] [blame] | 190 | |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 191 | # TINT |
| 192 | |
Antonello Dettori | 4f7d329 | 2016-05-27 23:44:47 +0200 | [diff] [blame] | 193 | payloads/external/tint/tint/tint.elf tint: |
| 194 | $(MAKE) -C payloads/external/tint |
| 195 | |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 196 | cbfs-files-$(CONFIG_TINT_SECONDARY_PAYLOAD) += img/tint |
| 197 | img/tint-file := payloads/external/tint/tint/tint.elf |
Ronald G. Minnich | c6d1349 | 2018-05-15 18:05:07 -0700 | [diff] [blame] | 198 | img/tint-type := payload |
Arthur Heymans | 47dd96d | 2018-02-07 13:01:43 +0100 | [diff] [blame] | 199 | img/tint-compression := $(CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG) |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 200 | |
| 201 | # Memtest86+ |
| 202 | |
Martin Roth | be63a24 | 2016-02-28 15:56:27 -0800 | [diff] [blame] | 203 | cbfs-files-$(CONFIG_MEMTEST_SECONDARY_PAYLOAD) += img/memtest |
| 204 | img/memtest-file := payloads/external/Memtest86Plus/memtest86plus/memtest |
Ronald G. Minnich | c6d1349 | 2018-05-15 18:05:07 -0700 | [diff] [blame] | 205 | img/memtest-type := payload |
Arthur Heymans | 47dd96d | 2018-02-07 13:01:43 +0100 | [diff] [blame] | 206 | img/memtest-compression := $(CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG) |
Martin Roth | be63a24 | 2016-02-28 15:56:27 -0800 | [diff] [blame] | 207 | |
| 208 | ifeq ($(CONFIG_CONSOLE_SERIAL)$(CONFIG_DRIVERS_UART_8250IO),yy) |
| 209 | MEMTEST_SERIAL_OPTIONS=SERIAL_CONSOLE_DEFAULT=1 \ |
| 210 | SERIAL_TTY=$(CONFIG_UART_FOR_CONSOLE) \ |
| 211 | SERIAL_BAUD_RATE=$(CONFIG_TTYS0_BAUD) |
| 212 | endif |
| 213 | |
Paul Kocialkowski | fde3275 | 2016-07-24 12:25:07 +0200 | [diff] [blame] | 214 | payloads/external/Memtest86Plus/memtest86plus/memtest: $(DOTCONFIG) |
Martin Roth | c8ed340 | 2016-03-16 10:39:30 -0600 | [diff] [blame] | 215 | $(MAKE) -C payloads/external/Memtest86Plus all \ |
Martin Roth | be63a24 | 2016-02-28 15:56:27 -0800 | [diff] [blame] | 216 | CC="$(CC_x86_32)" \ |
| 217 | LD="$(LD_x86_32)" \ |
| 218 | OBJCOPY="$(OBJCOPY_x86_32)" \ |
| 219 | AS="$(AS_x86_32)" \ |
Stefan Tauner | a07366c | 2018-08-19 17:48:53 +0200 | [diff] [blame] | 220 | CONFIG_MEMTEST_REVISION=$(CONFIG_MEMTEST_REVISION) \ |
| 221 | CONFIG_MEMTEST_REVISION_ID=$(CONFIG_MEMTEST_REVISION_ID) \ |
Martin Roth | 4005d9b | 2016-04-26 09:51:41 -0600 | [diff] [blame] | 222 | CONFIG_MEMTEST_MASTER=$(CONFIG_MEMTEST_MASTER) \ |
| 223 | CONFIG_MEMTEST_STABLE=$(CONFIG_MEMTEST_STABLE) \ |
Martin Roth | be63a24 | 2016-02-28 15:56:27 -0800 | [diff] [blame] | 224 | $(MEMTEST_SERIAL_OPTIONS) \ |
| 225 | MFLAGS= MAKEFLAGS= |
Martin Roth | 888a98b | 2016-03-13 13:00:43 -0600 | [diff] [blame] | 226 | |
Martin Roth | 9369e10 | 2016-10-17 10:11:10 -0600 | [diff] [blame] | 227 | # iPXE |
| 228 | |
Martin Roth | 888a98b | 2016-03-13 13:00:43 -0600 | [diff] [blame] | 229 | PXE_ROM_PCI_ID:=$(subst $(comma),,$(CONFIG_PXE_ROM_ID)) |
| 230 | |
| 231 | ifeq ($(CONFIG_PXE_ROM),y) |
| 232 | PXE_ROM_FILE:=$(CONFIG_PXE_ROM_FILE) |
| 233 | endif |
| 234 | ifeq ($(CONFIG_BUILD_IPXE),y) |
| 235 | PXE_ROM_FILE:=payloads/external/iPXE/ipxe/ipxe.rom |
| 236 | endif |
Patrick Rudolph | 23cb12b | 2017-07-25 19:36:25 +0200 | [diff] [blame] | 237 | ifeq ($(CONFIG_PXE_ADD_SCRIPT),y) |
| 238 | PXE_CONFIG_SCRIPT:=$(abspath $(patsubst "%",%,$(CONFIG_PXE_SCRIPT))) |
| 239 | endif |
Martin Roth | 888a98b | 2016-03-13 13:00:43 -0600 | [diff] [blame] | 240 | ifeq ($(CONFIG_CONSOLE_SERIAL)$(CONFIG_DRIVERS_UART_8250IO),yy) |
| 241 | IPXE_UART=COM$(call int-add,$(CONFIG_UART_FOR_CONSOLE) 1) |
| 242 | endif |
| 243 | |
Michał Żygowski | 9839eff | 2018-06-26 13:12:49 +0200 | [diff] [blame] | 244 | ifeq ($(CONFIG_PXE_SERIAL_CONSOLE),y) |
| 245 | IPXE_SERIAL_CONSOLE = $(CONFIG_CONSOLE_SERIAL)$(CONFIG_DRIVERS_UART_8250IO) |
| 246 | else |
| 247 | IPXE_SERIAL_CONSOLE = n |
| 248 | endif |
| 249 | |
Martin Roth | 888a98b | 2016-03-13 13:00:43 -0600 | [diff] [blame] | 250 | cbfs-files-$(CONFIG_PXE_ROM)$(CONFIG_BUILD_IPXE) += pci$(CONFIG_PXE_ROM_ID).rom |
| 251 | pci$(CONFIG_PXE_ROM_ID).rom-file := $(PXE_ROM_FILE) |
| 252 | pci$(CONFIG_PXE_ROM_ID).rom-type := raw |
| 253 | |
Patrick Rudolph | 23cb12b | 2017-07-25 19:36:25 +0200 | [diff] [blame] | 254 | payloads/external/iPXE/ipxe/ipxe.rom ipxe: $(DOTCONFIG) $(PXE_CONFIG_SCRIPT) |
Martin Roth | 888a98b | 2016-03-13 13:00:43 -0600 | [diff] [blame] | 255 | $(MAKE) -C payloads/external/iPXE all \ |
| 256 | CROSS_COMPILE="$(CROSS_COMPILE_$(ARCH-ramstage-y))" \ |
| 257 | PXE_ROM_PCI_ID=$(PXE_ROM_PCI_ID) \ |
| 258 | CONFIG_IPXE_MASTER=$(CONFIG_IPXE_MASTER) \ |
| 259 | CONFIG_IPXE_STABLE=$(CONFIG_IPXE_STABLE) \ |
Michał Żygowski | 9839eff | 2018-06-26 13:12:49 +0200 | [diff] [blame] | 260 | CONSOLE_SERIAL=$(IPXE_SERIAL_CONSOLE) \ |
Martin Roth | 888a98b | 2016-03-13 13:00:43 -0600 | [diff] [blame] | 261 | IPXE_UART=$(IPXE_UART) \ |
| 262 | CONFIG_TTYS0_BAUD=$(CONFIG_TTYS0_BAUD) \ |
Patrick Rudolph | 23cb12b | 2017-07-25 19:36:25 +0200 | [diff] [blame] | 263 | CONFIG_SCRIPT=$(PXE_CONFIG_SCRIPT) \ |
| 264 | CONFIG_HAS_SCRIPT=$(CONFIG_PXE_ADD_SCRIPT) \ |
| 265 | CONFIG_PXE_NO_PROMT=$(CONFIG_PXE_NO_PROMT) \ |
Martin Roth | 888a98b | 2016-03-13 13:00:43 -0600 | [diff] [blame] | 266 | MFLAGS= MAKEFLAGS= |
Philipp Deppenwiese | 0f0e4e6 | 2018-06-19 20:22:32 +0200 | [diff] [blame] | 267 | |
| 268 | # LinuxBoot |
| 269 | |
| 270 | linuxboot: |
| 271 | $(MAKE) -C payloads/external/LinuxBoot \ |
Philipp Deppenwiese | 0f0e4e6 | 2018-06-19 20:22:32 +0200 | [diff] [blame] | 272 | CPUS=$(CPUS) \ |
Marcello Sylvester Bauer | 79f9291 | 2018-12-05 08:45:26 +0100 | [diff] [blame] | 273 | CONFIG_LINUXBOOT_X86_64=$(CONFIG_LINUXBOOT_X86_64) \ |
| 274 | CONFIG_LINUXBOOT_X86=$(CONFIG_LINUXBOOT_X86) \ |
| 275 | CONFIG_LINUXBOOT_ARM64=$(CONFIG_LINUXBOOT_ARM64) \ |
Marcello Sylvester Bauer | 78d0256 | 2018-11-11 18:03:26 +0100 | [diff] [blame] | 276 | CONFIG_LINUXBOOT_KERNEL=$(CONFIG_PAYLOAD_FILE) \ |
| 277 | CONFIG_LINUXBOOT_INITRAMFS=$(CONFIG_LINUX_INITRD) \ |
Marcello Sylvester Bauer | e102c5d | 2018-11-21 17:45:43 +0100 | [diff] [blame] | 278 | CONFIG_LINUXBOOT_INITRAMFS_SUFFIX=$(CONFIG_LINUXBOOT_INITRAMFS_SUFFIX) \ |
Marcello Sylvester Bauer | 78d0256 | 2018-11-11 18:03:26 +0100 | [diff] [blame] | 279 | CONFIG_LINUXBOOT_COMPILE_KERNEL=$(CONFIG_LINUXBOOT_COMPILE_KERNEL) \ |
| 280 | CONFIG_LINUXBOOT_BUILD_INITRAMFS=$(CONFIG_LINUXBOOT_BUILD_INITRAMFS) \ |
Marcello Sylvester Bauer | 79f9291 | 2018-12-05 08:45:26 +0100 | [diff] [blame] | 281 | CONFIG_LINUXBOOT_KERNEL_MAINLINE=$(CONFIG_LINUXBOOT_KERNEL_MAINLINE) \ |
| 282 | CONFIG_LINUXBOOT_KERNEL_STABLE=$(CONFIG_LINUXBOOT_KERNEL_STABLE) \ |
| 283 | CONFIG_LINUXBOOT_KERNEL_LONGTERM=$(CONFIG_LINUXBOOT_KERNEL_LONGTERM) \ |
| 284 | CONFIG_LINUXBOOT_KERNEL_CUSTOM=$(CONFIG_LINUXBOOT_KERNEL_CUSTOM) \ |
| 285 | CONFIG_LINUXBOOT_KERNEL_CUSTOM_VERSION=$(CONFIG_LINUXBOOT_KERNEL_CUSTOM_VERSION) \ |
| 286 | CONFIG_LINUXBOOT_KERNEL_CUSTOM_CONFIG=$(CONFIG_LINUXBOOT_KERNEL_CUSTOM_CONFIG) \ |
| 287 | CONFIG_LINUXBOOT_KERNEL_BZIMAGE=$(CONFIG_LINUXBOOT_KERNEL_BZIMAGE) \ |
| 288 | CONFIG_LINUXBOOT_KERNEL_UIMAGE=$(CONFIG_LINUXBOOT_KERNEL_UIMAGE) \ |
Philipp Deppenwiese | 0f0e4e6 | 2018-06-19 20:22:32 +0200 | [diff] [blame] | 289 | CONFIG_LINUXBOOT_KERNEL_CONFIGFILE=$(CONFIG_LINUXBOOT_KERNEL_CONFIGFILE) \ |
Marcello Sylvester Bauer | e102c5d | 2018-11-21 17:45:43 +0100 | [diff] [blame] | 290 | CONFIG_LINUXBOOT_INITRAMFS_COMPRESSION_XZ=$(CONFIG_LINUXBOOT_INITRAMFS_COMPRESSION_XZ) \ |
Marcello Sylvester Bauer | 78d0256 | 2018-11-11 18:03:26 +0100 | [diff] [blame] | 291 | CONFIG_LINUXBOOT_UROOT=$(CONFIG_LINUXBOOT_UROOT) \ |
Philipp Deppenwiese | 0f0e4e6 | 2018-06-19 20:22:32 +0200 | [diff] [blame] | 292 | CONFIG_LINUXBOOT_UROOT_VERSION=$(CONFIG_LINUXBOOT_UROOT_VERSION) \ |
Marcello Sylvester Bauer | e102c5d | 2018-11-21 17:45:43 +0100 | [diff] [blame] | 293 | CONFIG_LINUXBOOT_UROOT_FORMAT=$(CONFIG_LINUXBOOT_UROOT_FORMAT) \ |
| 294 | CONFIG_LINUXBOOT_UROOT_INITCMD=$(CONFIG_LINUXBOOT_UROOT_INITCMD) \ |
| 295 | CONFIG_LINUXBOOT_UROOT_SHELL=$(CONFIG_LINUXBOOT_UROOT_SHELL) \ |
David Hendricks | fb03dd6 | 2018-08-08 19:16:55 -0700 | [diff] [blame] | 296 | CONFIG_LINUXBOOT_UROOT_COMMANDS=$(CONFIG_LINUXBOOT_UROOT_COMMANDS) \ |
Patrick Rudolph | 02c0814 | 2018-03-13 11:22:26 +0100 | [diff] [blame] | 297 | CONFIG_LINUXBOOT_UROOT_FILES=$(CONFIG_LINUXBOOT_UROOT_FILES) \ |
Marcello Sylvester Bauer | 78d0256 | 2018-11-11 18:03:26 +0100 | [diff] [blame] | 298 | CONFIG_LINUXBOOT_DTB_FILE=$(CONFIG_LINUXBOOT_DTB_FILE) |
Patrick Rudolph | 02c0814 | 2018-03-13 11:22:26 +0100 | [diff] [blame] | 299 | |
Marcello Sylvester Bauer | 78d0256 | 2018-11-11 18:03:26 +0100 | [diff] [blame] | 300 | payloads/external/LinuxBoot/linuxboot/bzImage: linuxboot |
| 301 | payloads/external/LinuxBoot/linuxboot/uImage: linuxboot |
Marcello Sylvester Bauer | e102c5d | 2018-11-21 17:45:43 +0100 | [diff] [blame] | 302 | payloads/external/LinuxBoot/linuxboot/initramfs_u-root.cpio: linuxboot |
Philipp Deppenwiese | 0f0e4e6 | 2018-06-19 20:22:32 +0200 | [diff] [blame] | 303 | |
Marcello Sylvester Bauer | 78d0256 | 2018-11-11 18:03:26 +0100 | [diff] [blame] | 304 | # Yabits |
Martin Roth | f2c3d80 | 2018-09-13 04:06:39 -0600 | [diff] [blame] | 305 | |
| 306 | payloads/external/Yabits/uefi/build/uefi.elf yabits: |
| 307 | $(MAKE) -C payloads/external/Yabits all \ |
Nico Huber | cf96c2a | 2019-07-24 20:17:14 +0200 | [diff] [blame] | 308 | XGCCPATH="$(XGCCPATH)" \ |
Martin Roth | f2c3d80 | 2018-09-13 04:06:39 -0600 | [diff] [blame] | 309 | CONFIG_YABITS_REVISION=$(CONFIG_YABITS_REVISION) \ |
| 310 | CONFIG_YABITS_REVISION_ID=$(CONFIG_YABITS_REVISION_ID) \ |
| 311 | CONFIG_YABITS_MASTER=$(CONFIG_YABITS_MASTER) \ |
| 312 | CONFIG_YABITS_STABLE=$(CONFIG_YABITS_STABLE) \ |
| 313 | MFLAGS= MAKEFLAGS= |