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