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_AVATT) = avatt
21 PAYLOAD-$(CONFIG_PAYLOAD_ETHERBOOT) = etherboot
22 PAYLOAD-$(CONFIG_PAYLOAD_GPXE) = gpxe
23 PAYLOAD-$(CONFIG_PAYLOAD_FILO) = filo
24 PAYLOAD-$(CONFIG_PAYLOAD_OFW) = ofw
25 PAYLOAD-$(CONFIG_PAYLOAD_OPENBIOS) = openbios
26 PAYLOAD-$(CONFIG_PAYLOAD_MEMTEST) = memtest
27 PAYLOAD-$(CONFIG_PAYLOAD_KERNEL) = kernel
28 PAYLOAD-$(CONFIG_PAYLOAD_CUSTOM) =
29 PAYLOAD-$(CONFIG_PAYLOAD_COREINFO) = coreinfo
30 PAYLOAD-$(CONFIG_PAYLOAD_TINT) = tint
31 PAYLOAD-$(CONFIG_PAYLOAD_GRUB2) = grub2
33 # This is for custom configuration strings
37 PCONF-$(CONFIG_PAYLOAD_COREINFO) = libpayload-dep.conf
38 PCONF-$(CONFIG_PAYLOAD_CUSTOM) = custom.conf
39 PCONF-$(CONFIG_PAYLOAD_KERNEL) = kernel.conf
40 PCONF-$(CONFIG_PAYLOAD_LAB) = lab.conf
41 PCONF-$(CONFIG_PAYLOAD_AVATT) = avatt.conf
42 PCONF-$(CONFIG_PAYLOAD_OFW) = ofw.conf
43 PCONF-$(CONFIG_PAYLOAD_OPENBIOS) = openbios.conf
44 PCONF-$(CONFIG_PAYLOAD_TINT) = libpayload-dep.conf
46 include $(CONFIG_DIR)/payloads/$(PCONF-y)
48 # Add LZMA if it is enabled and we are using v2
49 ifeq ($(CONFIG_COREBOOT_V2),y)
50 HOSTTOOLS-$(CONFIG_USE_LZMA) += lzma
53 HOSTTOOLS-$(CONFIG_BUILD_QEMU) += qemu
54 HOSTTOOLS-$(CONFIG_USE_NRV2B) += nrv2b
58 ifeq ($(PAYLOAD_ELF),)
59 $(error You must specify a ELF target)
62 ifeq ($(CONFIG_USE_LZMA),y)
63 ifeq ($(CONFIG_COREBOOT_V2),y)
64 ifeq ($(PAYLOAD_COMPRESSED),)
65 $(error You must specify a compressed target)
70 # Set the payload target (if it wasn't set by the config - warning
71 # there be dragons here if everything isn't aligned)
73 ifeq ($(PAYLOAD_TARGET),)
74 ifeq ($(CONFIG_COREBOOT_V2),y)
75 ifeq ($(CONFIG_USE_LZMA),y)
76 PAYLOAD_TARGET=$(PAYLOAD_COMPRESSED)
78 PAYLOAD_TARGET=$(PAYLOAD_ELF)
81 PAYLOAD_TARGET=$(PAYLOAD_ELF)