2015-07-01 02:09:17 +02:00
|
|
|
################################################################################
|
|
|
|
##
|
|
|
|
## This file is part of the coreboot project.
|
|
|
|
##
|
|
|
|
## Copyright (C) 2009-2010 coresystems GmbH
|
|
|
|
## Copyright (C) 2015 Google Inc.
|
2018-06-19 20:22:32 +02:00
|
|
|
## Copyright (C) 2017 Facebook Inc.
|
2015-07-01 02:09:17 +02:00
|
|
|
##
|
|
|
|
## This program is free software; you can redistribute it and/or modify
|
|
|
|
## it under the terms of the GNU General Public License as published by
|
|
|
|
## the Free Software Foundation; version 2 of the License.
|
|
|
|
##
|
|
|
|
## This program is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU General Public License for more details.
|
|
|
|
##
|
|
|
|
|
2015-06-20 04:50:59 +02:00
|
|
|
######################################################################
|
|
|
|
# set up payload config and version files for later inclusion
|
|
|
|
ifeq ($(CONFIG_PAYLOAD_SEABIOS),y)
|
|
|
|
PAYLOAD_CONFIG=payloads/external/SeaBIOS/seabios/.config
|
2015-11-28 21:23:48 +01:00
|
|
|
PAYLOAD_VERSION=payloads/external/SeaBIOS/seabios/out/autoversion.h
|
2015-06-20 04:50:59 +02:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_PAYLOAD_FILO),y)
|
|
|
|
PAYLOAD_CONFIG=payloads/external/FILO/filo/.config
|
|
|
|
PAYLOAD_VERSION=payloads/external/FILO/filo/build/version.h
|
|
|
|
endif
|
2015-07-15 19:24:18 +02:00
|
|
|
ifeq ($(CONFIG_PAYLOAD_DEPTHCHARGE),y)
|
|
|
|
PAYLOAD_CONFIG=payloads/external/depthcharge/depthcharge/.config
|
2017-10-23 14:53:52 +02:00
|
|
|
$(PAYLOAD_CONFIG): payloads/external/depthcharge/depthcharge/build/depthcharge.elf
|
2015-07-15 19:24:18 +02:00
|
|
|
#TODO: Figure out version
|
|
|
|
endif
|
2015-06-20 04:50:59 +02:00
|
|
|
|
2018-11-06 12:32:14 +01:00
|
|
|
ifeq ($(CONFIG_PAYLOAD_LINUX)$(CONFIG_PAYLOAD_LINUXBOOT),y)
|
2016-04-13 22:13:02 +02:00
|
|
|
ifneq ($(strip $(call strip_quotes,$(CONFIG_LINUX_COMMAND_LINE))),)
|
|
|
|
ADDITIONAL_PAYLOAD_CONFIG+=-C $(CONFIG_LINUX_COMMAND_LINE)
|
|
|
|
endif
|
|
|
|
ifneq ($(strip $(call strip_quotes,$(CONFIG_LINUX_INITRD))),)
|
2018-11-11 18:03:26 +01:00
|
|
|
ifneq ($(CONFIG_LINUXBOOT_ARM64),y)
|
2018-11-21 17:45:43 +01:00
|
|
|
ADDITIONAL_PAYLOAD_CONFIG+=-I $(CONFIG_LINUX_INITRD)$(CONFIG_LINUXBOOT_INITRAMFS_SUFFIX)
|
2018-11-11 18:03:26 +01:00
|
|
|
prebuilt-files += $(strip $(call strip_quotes,$(CONFIG_LINUX_INITRD)))
|
|
|
|
endif
|
2016-04-13 22:13:02 +02:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifneq ($(strip $(call strip_quotes,$(CONFIG_PAYLOAD_OPTIONS))),)
|
|
|
|
ADDITIONAL_PAYLOAD_CONFIG+=$(strip $(call strip_quotes,$(CONFIG_PAYLOAD_OPTIONS)))
|
|
|
|
endif
|
|
|
|
|
2016-05-03 09:52:12 +02:00
|
|
|
cbfs-files-y += $(CONFIG_CBFS_PREFIX)/payload
|
|
|
|
$(CONFIG_CBFS_PREFIX)/payload-file := $(CONFIG_PAYLOAD_FILE)
|
|
|
|
ifeq ($(CONFIG_PAYLOAD_IS_FLAT_BINARY),y)
|
|
|
|
$(CONFIG_CBFS_PREFIX)/payload-type := flat-binary
|
|
|
|
else
|
2018-05-16 03:05:07 +02:00
|
|
|
$(CONFIG_CBFS_PREFIX)/payload-type := payload
|
2016-05-03 09:52:12 +02:00
|
|
|
endif
|
|
|
|
$(CONFIG_CBFS_PREFIX)/payload-compression := $(CBFS_PAYLOAD_COMPRESS_FLAG)
|
|
|
|
$(CONFIG_CBFS_PREFIX)/payload-options := $(ADDITIONAL_PAYLOAD_CONFIG)
|
|
|
|
|
2015-12-17 00:09:11 +01:00
|
|
|
cbfs-files-$(CONFIG_INCLUDE_CONFIG_FILE) += payload_config
|
|
|
|
payload_config-file := $(PAYLOAD_CONFIG)
|
|
|
|
payload_config-type := raw
|
|
|
|
|
|
|
|
cbfs-files-$(CONFIG_INCLUDE_CONFIG_FILE) += payload_revision
|
|
|
|
payload_revision-file := $(PAYLOAD_VERSION)
|
|
|
|
payload_revision-type := raw
|
|
|
|
|
2017-01-08 06:43:01 +01:00
|
|
|
cbfs-files-$(CONFIG_GRUB2_INCLUDE_RUNTIME_CONFIG_FILE) += etc/grub.cfg
|
|
|
|
etc/grub.cfg-file := $(CONFIG_GRUB2_RUNTIME_CONFIG_FILE)
|
|
|
|
etc/grub.cfg-type := raw
|
|
|
|
etc/grub.cfg-required := the GRUB runtime configuration file ($(CONFIG_GRUB2_RUNTIME_CONFIG_FILE))
|
|
|
|
|
2016-10-17 18:11:10 +02:00
|
|
|
# SeaBIOS
|
|
|
|
|
2015-08-08 21:35:38 +02:00
|
|
|
SEABIOS_CC_OFFSET=$(if $(filter %ccache,$(HOSTCC)),2,1)
|
2016-07-24 12:25:07 +02:00
|
|
|
payloads/external/SeaBIOS/seabios/out/bios.bin.elf seabios: $(DOTCONFIG)
|
2016-03-16 17:39:30 +01:00
|
|
|
$(MAKE) -C payloads/external/SeaBIOS \
|
2015-07-01 02:09:17 +02:00
|
|
|
HOSTCC="$(HOSTCC)" \
|
2016-03-08 06:04:01 +01:00
|
|
|
CC=$(word $(SEABIOS_CC_OFFSET),$(CC_x86_32)) \
|
|
|
|
CFLAGS="$(patsubst $(word $(SEABIOS_CC_OFFSET),$(CC_x86_32))%,,$(wordlist $(SEABIOS_CC_OFFSET),9999,$(CC_x86_32)))" \
|
2015-07-01 02:09:17 +02:00
|
|
|
LD=$(word 1,$(LD_x86_32)) LDFLAGS="$(patsubst $(word 1,$(LD_x86_32))%,,$(LD_x86_32))" \
|
|
|
|
OBJDUMP="$(OBJDUMP_x86_32)" \
|
|
|
|
OBJCOPY="$(OBJCOPY_x86_32)" STRIP="$(STRIP_x86_32)" \
|
|
|
|
AS="$(AS_x86_32)" IASL="$(IASL)" \
|
|
|
|
CONFIG_SEABIOS_MASTER=$(CONFIG_SEABIOS_MASTER) \
|
|
|
|
CONFIG_SEABIOS_STABLE=$(CONFIG_SEABIOS_STABLE) \
|
2016-03-08 00:56:57 +01:00
|
|
|
CONFIG_SEABIOS_REVISION=$(CONFIG_SEABIOS_REVISION) \
|
|
|
|
CONFIG_SEABIOS_REVISION_ID=$(CONFIG_SEABIOS_REVISION_ID) \
|
2015-11-28 23:44:34 +01:00
|
|
|
CONFIG_PAYLOAD_CONFIGFILE=$(CONFIG_PAYLOAD_CONFIGFILE) \
|
2015-07-01 02:09:17 +02:00
|
|
|
CONFIG_SEABIOS_THREAD_OPTIONROMS=$(CONFIG_SEABIOS_THREAD_OPTIONROMS) \
|
|
|
|
CONFIG_SEABIOS_VGA_COREBOOT=$(CONFIG_SEABIOS_VGA_COREBOOT) \
|
2016-02-06 20:47:05 +01:00
|
|
|
CONFIG_DRIVERS_UART_8250IO=$(CONFIG_DRIVERS_UART_8250IO) \
|
2017-01-03 11:56:22 +01:00
|
|
|
CONFIG_DRIVERS_UART_8250MEM=$(CONFIG_DRIVERS_UART_8250MEM) \
|
|
|
|
CONFIG_HUDSON_UART=$(CONFIG_HUDSON_UART) \
|
2015-07-01 02:09:17 +02:00
|
|
|
CONFIG_CONSOLE_SERIAL=$(CONFIG_CONSOLE_SERIAL) \
|
2017-01-15 11:49:25 +01:00
|
|
|
CONFIG_TTYS0_BASE=$(CONFIG_TTYS0_BASE) \
|
2017-11-29 16:58:05 +01:00
|
|
|
CONFIG_SEABIOS_DEBUG_LEVEL=$(CONFIG_SEABIOS_DEBUG_LEVEL) \
|
|
|
|
CONFIG_DRIVERS_UART_8250MEM_32=$(CONFIG_DRIVERS_UART_8250MEM_32) \
|
|
|
|
CONFIG_ENABLE_HSUART=$(CONFIG_ENABLE_HSUART) \
|
|
|
|
CONFIG_CONSOLE_UART_BASE_ADDRESS=$(CONFIG_CONSOLE_UART_BASE_ADDRESS)
|
2015-07-01 02:09:17 +02:00
|
|
|
|
2015-11-30 20:00:33 +01:00
|
|
|
payloads/external/SeaBIOS/seabios/out/vgabios.bin: seabios
|
2016-03-08 06:04:01 +01:00
|
|
|
payloads/external/SeaBIOS/seabios/.config: payloads/external/SeaBIOS/seabios/out/bios.bin.elf
|
|
|
|
payloads/external/SeaBIOS/seabios/out/autoversion.h: payloads/external/SeaBIOS/seabios/out/bios.bin.elf
|
2015-11-30 20:00:33 +01:00
|
|
|
|
2016-06-05 18:30:34 +02:00
|
|
|
# add a SeaBIOS bootorder file
|
|
|
|
ifneq ($(strip $(CONFIG_SEABIOS_BOOTORDER_FILE)),)
|
|
|
|
cbfs-files-y += bootorder
|
|
|
|
bootorder-file := $(strip $(CONFIG_SEABIOS_BOOTORDER_FILE))
|
|
|
|
bootorder-type := raw
|
|
|
|
endif
|
|
|
|
|
2016-10-17 18:11:10 +02:00
|
|
|
# Depthcharge
|
|
|
|
|
2016-07-24 12:25:07 +02:00
|
|
|
payloads/external/depthcharge/depthcharge/build/depthcharge.elf depthcharge: $(DOTCONFIG) $(CBFSTOOL)
|
2016-03-16 17:39:30 +01:00
|
|
|
$(MAKE) -C payloads/external/depthcharge \
|
2015-07-15 19:24:18 +02:00
|
|
|
BOARD=$(call ws_to_under,$(call strip_quotes,$(call tolower,$(CONFIG_MAINBOARD_PART_NUMBER)))) \
|
2016-12-23 00:16:48 +01:00
|
|
|
MFLAGS= MAKEFLAGS= \
|
|
|
|
DEPTHCHARGE_MASTER=$(CONFIG_DEPTHCHARGE_MASTER) \
|
|
|
|
DEPTHCHARGE_STABLE=$(CONFIG_DEPTHCHARGE_STABLE) \
|
|
|
|
DEPTHCHARGE_REVISION=$(CONFIG_DEPTHCHARGE_REVISION) \
|
2016-12-23 02:25:29 +01:00
|
|
|
DEPTHCHARGE_REVISION_ID=$(CONFIG_DEPTHCHARGE_REVISION_ID) \
|
|
|
|
OVERRIDE_DEFCONFIG=$(CONFIG_LP_DEFCONFIG_OVERRIDE)
|
2015-07-15 19:24:18 +02:00
|
|
|
|
2016-06-03 00:42:29 +02:00
|
|
|
# Tianocore
|
|
|
|
|
|
|
|
payloads/external/tianocore/tianocore/Build/UEFIPAYLOAD.fd tianocore: $(DOTCONFIG)
|
|
|
|
$(MAKE) -C payloads/external/tianocore all \
|
|
|
|
HOSTCC="$(HOSTCC)" \
|
|
|
|
CC="$(HOSTCC)" \
|
|
|
|
CONFIG_TIANOCORE_MASTER=$(CONFIG_TIANOCORE_MASTER) \
|
|
|
|
CONFIG_TIANOCORE_STABLE=$(CONFIG_TIANOCORE_STABLE) \
|
|
|
|
CONFIG_TIANOCORE_REVISION=$(CONFIG_TIANOCORE_REVISION) \
|
|
|
|
CONFIG_TIANOCORE_REVISION_ID=$(CONFIG_TIANOCORE_REVISION_ID) \
|
|
|
|
CONFIG_TIANOCORE_DEBUG=$(CONFIG_TIANOCORE_DEBUG) \
|
|
|
|
CONFIG_TIANOCORE_TARGET_IA32=$(CONFIG_TIANOCORE_TARGET_IA32) \
|
2018-09-08 02:58:08 +02:00
|
|
|
CONFIG_TIANOCORE_USE_8254_TIMER=$(CONFIG_TIANOCORE_USE_8254_TIMER) \
|
2019-02-22 05:41:59 +01:00
|
|
|
CONFIG_TIANOCORE_BOOTSPLASH_FILE=$(CONFIG_TIANOCORE_BOOTSPLASH_FILE) \
|
2016-06-03 00:42:29 +02:00
|
|
|
GCC_CC_x86_32=$(GCC_CC_x86_32) \
|
|
|
|
GCC_CC_x86_64=$(GCC_CC_x86_64) \
|
|
|
|
GCC_CC_arm=$(GCC_CC_arm) \
|
|
|
|
GCC_CC_arm64=$(GCC_CC_arm64) \
|
|
|
|
OBJCOPY_x86_32=$(OBJCOPY_x86_32) \
|
|
|
|
OBJCOPY_x86_64=$(OBJCOPY_x86_64) \
|
|
|
|
OBJCOPY_arm=$(OBJCOPY_arm) \
|
|
|
|
OBJCOPY_arm64=$(OBJCOPY_arm64) \
|
|
|
|
MFLAGS= MAKEFLAGS=
|
|
|
|
|
2016-10-17 18:11:10 +02:00
|
|
|
# FILO
|
|
|
|
|
2015-07-01 02:09:17 +02:00
|
|
|
filo:
|
2016-03-16 17:39:30 +01:00
|
|
|
$(MAKE) -C payloads/external/FILO \
|
2015-07-01 02:09:17 +02:00
|
|
|
HOSTCC="$(HOSTCC)" \
|
|
|
|
CC="$(CC_x86_32)" LD="$(LD_x86_32)" OBJDUMP="$(OBJDUMP_x86_32)" \
|
|
|
|
OBJCOPY="$(OBJCOPY_x86_32)" STRIP="$(STRIP_x86_32)" \
|
|
|
|
CONFIG_FILO_MASTER=$(CONFIG_FILO_MASTER) \
|
|
|
|
CONFIG_FILO_STABLE=$(CONFIG_FILO_STABLE)
|
|
|
|
|
2015-12-04 16:52:18 +01:00
|
|
|
payloads/external/FILO/filo/build/filo.elf: filo
|
2016-01-14 20:41:58 +01:00
|
|
|
payloads/external/FILO/filo/.config: filo
|
|
|
|
payloads/external/FILO/filo/build/version.h: filo
|
2015-07-01 02:09:17 +02:00
|
|
|
|
2016-10-17 18:11:10 +02:00
|
|
|
# Grub
|
|
|
|
|
2017-08-14 01:58:28 +02:00
|
|
|
grub2: $(obj)/config.h
|
2016-03-16 17:39:30 +01:00
|
|
|
$(MAKE) -C payloads/external/GRUB2 \
|
2015-07-01 02:09:17 +02:00
|
|
|
HOSTCC="$(HOSTCC)" \
|
2017-08-14 01:38:24 +02:00
|
|
|
CC="$(CC_x86_32)" LD="$(LD_x86_32)" \
|
2015-07-01 02:09:17 +02:00
|
|
|
OBJCOPY="$(OBJCOPY_x86_32)" STRIP="$(STRIP_x86_32)" \
|
2017-08-14 01:58:28 +02:00
|
|
|
CONFIG_DEP="$(abspath $(obj)/config.h)" \
|
2017-11-20 01:56:41 +01:00
|
|
|
CONFIG_GRUB2_STABLE=$(CONFIG_GRUB2_STABLE) \
|
2016-06-15 21:08:06 +02:00
|
|
|
CONFIG_GRUB2_MASTER=$(CONFIG_GRUB2_MASTER) \
|
2016-09-14 14:41:36 +02:00
|
|
|
CONFIG_GRUB2_REVISION=$(CONFIG_GRUB2_REVISION) \
|
|
|
|
CONFIG_GRUB2_REVISION_ID=$(CONFIG_GRUB2_REVISION_ID) \
|
2016-06-15 21:08:06 +02:00
|
|
|
CONFIG_GRUB2_EXTRA_MODULES=$(CONFIG_GRUB2_EXTRA_MODULES)
|
2015-12-04 16:52:18 +01:00
|
|
|
|
|
|
|
payloads/external/GRUB2/grub2/build/default_payload.elf: grub2
|
2015-12-11 20:24:33 +01:00
|
|
|
|
2016-10-17 18:11:10 +02:00
|
|
|
# U-Boot
|
|
|
|
|
2016-07-24 12:25:07 +02:00
|
|
|
payloads/external/U-Boot/u-boot/u-boot-dtb.bin u-boot: $(DOTCONFIG)
|
2016-03-16 17:39:30 +01:00
|
|
|
$(MAKE) -C payloads/external/U-Boot \
|
2015-12-11 20:24:33 +01:00
|
|
|
CONFIG_UBOOT_MASTER=$(CONFIG_UBOOT_MASTER) \
|
|
|
|
CONFIG_UBOOT_STABLE=$(CONFIG_UBOOT_STABLE)
|
2016-02-29 00:56:27 +01:00
|
|
|
|
2016-10-17 18:11:10 +02:00
|
|
|
# TINT
|
|
|
|
|
2016-05-27 23:44:47 +02:00
|
|
|
payloads/external/tint/tint/tint.elf tint:
|
|
|
|
$(MAKE) -C payloads/external/tint
|
|
|
|
|
2016-10-17 18:11:10 +02:00
|
|
|
cbfs-files-$(CONFIG_TINT_SECONDARY_PAYLOAD) += img/tint
|
|
|
|
img/tint-file := payloads/external/tint/tint/tint.elf
|
2018-05-16 03:05:07 +02:00
|
|
|
img/tint-type := payload
|
2018-02-07 13:01:43 +01:00
|
|
|
img/tint-compression := $(CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG)
|
2016-10-17 18:11:10 +02:00
|
|
|
|
|
|
|
# Memtest86+
|
|
|
|
|
2016-02-29 00:56:27 +01:00
|
|
|
cbfs-files-$(CONFIG_MEMTEST_SECONDARY_PAYLOAD) += img/memtest
|
|
|
|
img/memtest-file := payloads/external/Memtest86Plus/memtest86plus/memtest
|
2018-05-16 03:05:07 +02:00
|
|
|
img/memtest-type := payload
|
2018-02-07 13:01:43 +01:00
|
|
|
img/memtest-compression := $(CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG)
|
2016-02-29 00:56:27 +01:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_CONSOLE_SERIAL)$(CONFIG_DRIVERS_UART_8250IO),yy)
|
|
|
|
MEMTEST_SERIAL_OPTIONS=SERIAL_CONSOLE_DEFAULT=1 \
|
|
|
|
SERIAL_TTY=$(CONFIG_UART_FOR_CONSOLE) \
|
|
|
|
SERIAL_BAUD_RATE=$(CONFIG_TTYS0_BAUD)
|
|
|
|
endif
|
|
|
|
|
2016-07-24 12:25:07 +02:00
|
|
|
payloads/external/Memtest86Plus/memtest86plus/memtest: $(DOTCONFIG)
|
2016-03-16 17:39:30 +01:00
|
|
|
$(MAKE) -C payloads/external/Memtest86Plus all \
|
2016-02-29 00:56:27 +01:00
|
|
|
CC="$(CC_x86_32)" \
|
|
|
|
LD="$(LD_x86_32)" \
|
|
|
|
OBJCOPY="$(OBJCOPY_x86_32)" \
|
|
|
|
AS="$(AS_x86_32)" \
|
2018-08-19 17:48:53 +02:00
|
|
|
CONFIG_MEMTEST_REVISION=$(CONFIG_MEMTEST_REVISION) \
|
|
|
|
CONFIG_MEMTEST_REVISION_ID=$(CONFIG_MEMTEST_REVISION_ID) \
|
2016-04-26 17:51:41 +02:00
|
|
|
CONFIG_MEMTEST_MASTER=$(CONFIG_MEMTEST_MASTER) \
|
|
|
|
CONFIG_MEMTEST_STABLE=$(CONFIG_MEMTEST_STABLE) \
|
2016-02-29 00:56:27 +01:00
|
|
|
$(MEMTEST_SERIAL_OPTIONS) \
|
|
|
|
MFLAGS= MAKEFLAGS=
|
2016-03-13 20:00:43 +01:00
|
|
|
|
2016-10-17 18:11:10 +02:00
|
|
|
# iPXE
|
|
|
|
|
2016-03-13 20:00:43 +01:00
|
|
|
PXE_ROM_PCI_ID:=$(subst $(comma),,$(CONFIG_PXE_ROM_ID))
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_PXE_ROM),y)
|
|
|
|
PXE_ROM_FILE:=$(CONFIG_PXE_ROM_FILE)
|
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_BUILD_IPXE),y)
|
|
|
|
PXE_ROM_FILE:=payloads/external/iPXE/ipxe/ipxe.rom
|
|
|
|
endif
|
2017-07-25 19:36:25 +02:00
|
|
|
ifeq ($(CONFIG_PXE_ADD_SCRIPT),y)
|
|
|
|
PXE_CONFIG_SCRIPT:=$(abspath $(patsubst "%",%,$(CONFIG_PXE_SCRIPT)))
|
|
|
|
endif
|
2016-03-13 20:00:43 +01:00
|
|
|
ifeq ($(CONFIG_CONSOLE_SERIAL)$(CONFIG_DRIVERS_UART_8250IO),yy)
|
|
|
|
IPXE_UART=COM$(call int-add,$(CONFIG_UART_FOR_CONSOLE) 1)
|
|
|
|
endif
|
|
|
|
|
2018-06-26 13:12:49 +02:00
|
|
|
ifeq ($(CONFIG_PXE_SERIAL_CONSOLE),y)
|
|
|
|
IPXE_SERIAL_CONSOLE = $(CONFIG_CONSOLE_SERIAL)$(CONFIG_DRIVERS_UART_8250IO)
|
|
|
|
else
|
|
|
|
IPXE_SERIAL_CONSOLE = n
|
|
|
|
endif
|
|
|
|
|
2016-03-13 20:00:43 +01:00
|
|
|
cbfs-files-$(CONFIG_PXE_ROM)$(CONFIG_BUILD_IPXE) += pci$(CONFIG_PXE_ROM_ID).rom
|
|
|
|
pci$(CONFIG_PXE_ROM_ID).rom-file := $(PXE_ROM_FILE)
|
|
|
|
pci$(CONFIG_PXE_ROM_ID).rom-type := raw
|
|
|
|
|
2017-07-25 19:36:25 +02:00
|
|
|
payloads/external/iPXE/ipxe/ipxe.rom ipxe: $(DOTCONFIG) $(PXE_CONFIG_SCRIPT)
|
2016-03-13 20:00:43 +01:00
|
|
|
$(MAKE) -C payloads/external/iPXE all \
|
|
|
|
CROSS_COMPILE="$(CROSS_COMPILE_$(ARCH-ramstage-y))" \
|
|
|
|
PXE_ROM_PCI_ID=$(PXE_ROM_PCI_ID) \
|
|
|
|
CONFIG_IPXE_MASTER=$(CONFIG_IPXE_MASTER) \
|
|
|
|
CONFIG_IPXE_STABLE=$(CONFIG_IPXE_STABLE) \
|
2018-06-26 13:12:49 +02:00
|
|
|
CONSOLE_SERIAL=$(IPXE_SERIAL_CONSOLE) \
|
2016-03-13 20:00:43 +01:00
|
|
|
IPXE_UART=$(IPXE_UART) \
|
|
|
|
CONFIG_TTYS0_BAUD=$(CONFIG_TTYS0_BAUD) \
|
2017-07-25 19:36:25 +02:00
|
|
|
CONFIG_SCRIPT=$(PXE_CONFIG_SCRIPT) \
|
|
|
|
CONFIG_HAS_SCRIPT=$(CONFIG_PXE_ADD_SCRIPT) \
|
|
|
|
CONFIG_PXE_NO_PROMT=$(CONFIG_PXE_NO_PROMT) \
|
2016-03-13 20:00:43 +01:00
|
|
|
MFLAGS= MAKEFLAGS=
|
2018-06-19 20:22:32 +02:00
|
|
|
|
|
|
|
# LinuxBoot
|
|
|
|
|
|
|
|
linuxboot:
|
|
|
|
$(MAKE) -C payloads/external/LinuxBoot \
|
|
|
|
CPUS=$(CPUS) \
|
2018-12-05 08:45:26 +01:00
|
|
|
CONFIG_LINUXBOOT_X86_64=$(CONFIG_LINUXBOOT_X86_64) \
|
|
|
|
CONFIG_LINUXBOOT_X86=$(CONFIG_LINUXBOOT_X86) \
|
|
|
|
CONFIG_LINUXBOOT_ARM64=$(CONFIG_LINUXBOOT_ARM64) \
|
2018-11-11 18:03:26 +01:00
|
|
|
CONFIG_LINUXBOOT_KERNEL=$(CONFIG_PAYLOAD_FILE) \
|
|
|
|
CONFIG_LINUXBOOT_INITRAMFS=$(CONFIG_LINUX_INITRD) \
|
2018-11-21 17:45:43 +01:00
|
|
|
CONFIG_LINUXBOOT_INITRAMFS_SUFFIX=$(CONFIG_LINUXBOOT_INITRAMFS_SUFFIX) \
|
2018-11-11 18:03:26 +01:00
|
|
|
CONFIG_LINUXBOOT_COMPILE_KERNEL=$(CONFIG_LINUXBOOT_COMPILE_KERNEL) \
|
|
|
|
CONFIG_LINUXBOOT_BUILD_INITRAMFS=$(CONFIG_LINUXBOOT_BUILD_INITRAMFS) \
|
2018-12-05 08:45:26 +01:00
|
|
|
CONFIG_LINUXBOOT_KERNEL_MAINLINE=$(CONFIG_LINUXBOOT_KERNEL_MAINLINE) \
|
|
|
|
CONFIG_LINUXBOOT_KERNEL_STABLE=$(CONFIG_LINUXBOOT_KERNEL_STABLE) \
|
|
|
|
CONFIG_LINUXBOOT_KERNEL_LONGTERM=$(CONFIG_LINUXBOOT_KERNEL_LONGTERM) \
|
|
|
|
CONFIG_LINUXBOOT_KERNEL_CUSTOM=$(CONFIG_LINUXBOOT_KERNEL_CUSTOM) \
|
|
|
|
CONFIG_LINUXBOOT_KERNEL_CUSTOM_VERSION=$(CONFIG_LINUXBOOT_KERNEL_CUSTOM_VERSION) \
|
|
|
|
CONFIG_LINUXBOOT_KERNEL_CUSTOM_CONFIG=$(CONFIG_LINUXBOOT_KERNEL_CUSTOM_CONFIG) \
|
|
|
|
CONFIG_LINUXBOOT_KERNEL_BZIMAGE=$(CONFIG_LINUXBOOT_KERNEL_BZIMAGE) \
|
|
|
|
CONFIG_LINUXBOOT_KERNEL_UIMAGE=$(CONFIG_LINUXBOOT_KERNEL_UIMAGE) \
|
2018-06-19 20:22:32 +02:00
|
|
|
CONFIG_LINUXBOOT_KERNEL_CONFIGFILE=$(CONFIG_LINUXBOOT_KERNEL_CONFIGFILE) \
|
2018-11-21 17:45:43 +01:00
|
|
|
CONFIG_LINUXBOOT_INITRAMFS_COMPRESSION_XZ=$(CONFIG_LINUXBOOT_INITRAMFS_COMPRESSION_XZ) \
|
2018-11-11 18:03:26 +01:00
|
|
|
CONFIG_LINUXBOOT_UROOT=$(CONFIG_LINUXBOOT_UROOT) \
|
2018-06-19 20:22:32 +02:00
|
|
|
CONFIG_LINUXBOOT_UROOT_VERSION=$(CONFIG_LINUXBOOT_UROOT_VERSION) \
|
2018-11-21 17:45:43 +01:00
|
|
|
CONFIG_LINUXBOOT_UROOT_FORMAT=$(CONFIG_LINUXBOOT_UROOT_FORMAT) \
|
|
|
|
CONFIG_LINUXBOOT_UROOT_INITCMD=$(CONFIG_LINUXBOOT_UROOT_INITCMD) \
|
|
|
|
CONFIG_LINUXBOOT_UROOT_SHELL=$(CONFIG_LINUXBOOT_UROOT_SHELL) \
|
2018-08-09 04:16:55 +02:00
|
|
|
CONFIG_LINUXBOOT_UROOT_COMMANDS=$(CONFIG_LINUXBOOT_UROOT_COMMANDS) \
|
2018-03-13 11:22:26 +01:00
|
|
|
CONFIG_LINUXBOOT_UROOT_FILES=$(CONFIG_LINUXBOOT_UROOT_FILES) \
|
2018-11-11 18:03:26 +01:00
|
|
|
CONFIG_LINUXBOOT_DTB_FILE=$(CONFIG_LINUXBOOT_DTB_FILE)
|
2018-03-13 11:22:26 +01:00
|
|
|
|
2018-11-11 18:03:26 +01:00
|
|
|
payloads/external/LinuxBoot/linuxboot/bzImage: linuxboot
|
|
|
|
payloads/external/LinuxBoot/linuxboot/uImage: linuxboot
|
2018-11-21 17:45:43 +01:00
|
|
|
payloads/external/LinuxBoot/linuxboot/initramfs_u-root.cpio: linuxboot
|
2018-06-19 20:22:32 +02:00
|
|
|
|
2018-11-11 18:03:26 +01:00
|
|
|
# Yabits
|
2018-09-13 12:06:39 +02:00
|
|
|
|
|
|
|
payloads/external/Yabits/uefi/build/uefi.elf yabits:
|
|
|
|
$(MAKE) -C payloads/external/Yabits all \
|
2019-07-24 20:17:14 +02:00
|
|
|
XGCCPATH="$(XGCCPATH)" \
|
2018-09-13 12:06:39 +02:00
|
|
|
CONFIG_YABITS_REVISION=$(CONFIG_YABITS_REVISION) \
|
|
|
|
CONFIG_YABITS_REVISION_ID=$(CONFIG_YABITS_REVISION_ID) \
|
|
|
|
CONFIG_YABITS_MASTER=$(CONFIG_YABITS_MASTER) \
|
|
|
|
CONFIG_YABITS_STABLE=$(CONFIG_YABITS_STABLE) \
|
|
|
|
MFLAGS= MAKEFLAGS=
|