1 # This will include the correct configuration for the
4 # These are default settings that may be overridden by
5 # the individual platform settings at the bottom
7 # This will select the Makefile that actually builds the
8 # payload - this is included at the bottom of the main Makefile
16 ### Include the correct payload configuration
19 PAYLOAD-$(CONFIG_PAYLOAD_LAB) = lab
20 PAYLOAD-$(CONFIG_PAYLOAD_ETHERBOOT) = etherboot
21 PAYLOAD-$(CONFIG_PAYLOAD_GPXE) = gpxe
22 PAYLOAD-$(CONFIG_PAYLOAD_FILO) = filo
23 PAYLOAD-$(CONFIG_PAYLOAD_OFW) = ofw
24 PAYLOAD-$(CONFIG_PAYLOAD_OPENBIOS) = openbios
25 PAYLOAD-$(CONFIG_PAYLOAD_MEMTEST) = memtest
26 PAYLOAD-$(CONFIG_PAYLOAD_KERNEL) = kernel
27 PAYLOAD-$(CONFIG_PAYLOAD_CUSTOM) =
28 PAYLOAD-$(CONFIG_PAYLOAD_COREINFO) = coreinfo
29 PAYLOAD-$(CONFIG_PAYLOAD_TINT) = tint
30 PAYLOAD-$(CONFIG_PAYLOAD_GRUB2) = grub2
32 # This is for custom configuration strings
36 PCONF-$(CONFIG_PAYLOAD_COREINFO) = libpayload-dep.conf
37 PCONF-$(CONFIG_PAYLOAD_CUSTOM) = custom.conf
38 PCONF-$(CONFIG_PAYLOAD_KERNEL) = kernel.conf
39 PCONF-$(CONFIG_PAYLOAD_LAB) = lab.conf
40 PCONF-$(CONFIG_PAYLOAD_OFW) = ofw.conf
41 PCONF-$(CONFIG_PAYLOAD_OPENBIOS) = openbios.conf
42 PCONF-$(CONFIG_PAYLOAD_TINT) = libpayload-dep.conf
44 include $(CONFIG_DIR)/payloads/$(PCONF-y)
46 # Add LZMA if it is enabled and we are using v2
47 ifeq ($(CONFIG_COREBOOT_V2),y)
48 HOSTTOOLS-$(CONFIG_USE_LZMA) += lzma
51 HOSTTOOLS-$(CONFIG_BUILD_QEMU) += qemu
52 HOSTTOOLS-$(CONFIG_USE_NRV2B) += nrv2b
56 ifeq ($(PAYLOAD_ELF),)
57 $(error You must specify a ELF target)
60 ifeq ($(CONFIG_USE_LZMA),y)
61 ifeq ($(CONFIG_COREBOOT_V2),y)
62 ifeq ($(PAYLOAD_COMPRESSED),)
63 $(error You must specify a compressed target)
68 # Set the payload target (if it wasn't set by the config - warning
69 # there be dragons here if everything isn't aligned)
71 ifeq ($(PAYLOAD_TARGET),)
72 ifeq ($(CONFIG_COREBOOT_V2),y)
73 ifeq ($(CONFIG_USE_LZMA),y)
74 PAYLOAD_TARGET=$(PAYLOAD_COMPRESSED)
76 PAYLOAD_TARGET=$(PAYLOAD_ELF)
79 PAYLOAD_TARGET=$(PAYLOAD_ELF)