merged in some changes from the main buildrom tree
[kvm-coreboot.git] / config / payloads / payloads.conf
blobf9a810d3e30135c4db5801614c07d4a0be325982
1 # This will include the correct configuration for the
2 # selected payload 
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
11 PAYLOAD_BUILD=
12 PAYLOAD_ELF=
13 PAYLOAD_COMPRESSED=
14 PAYLOAD_TARGET=
16 ### Include the correct payload configuration
18 PAYLOAD-y=
19 PAYLOAD-$(CONFIG_PAYLOAD_SEABIOS) = seabios
20 PAYLOAD-$(CONFIG_PAYLOAD_LAB) = lab
21 PAYLOAD-$(CONFIG_PAYLOAD_AVATT) = avatt
22 PAYLOAD-$(CONFIG_PAYLOAD_ETHERBOOT) = etherboot
23 PAYLOAD-$(CONFIG_PAYLOAD_GPXE) = gpxe
24 PAYLOAD-$(CONFIG_PAYLOAD_FILO) = filo
25 PAYLOAD-$(CONFIG_PAYLOAD_OFW) = ofw
26 PAYLOAD-$(CONFIG_PAYLOAD_OPENBIOS) = openbios
27 PAYLOAD-$(CONFIG_PAYLOAD_MEMTEST) = memtest
28 PAYLOAD-$(CONFIG_PAYLOAD_KERNEL) = kernel
29 PAYLOAD-$(CONFIG_PAYLOAD_CUSTOM) =
30 PAYLOAD-$(CONFIG_PAYLOAD_COREINFO) = coreinfo
31 PAYLOAD-$(CONFIG_PAYLOAD_TINT) = tint
32 PAYLOAD-$(CONFIG_PAYLOAD_GRUB2) = grub2
34 # This is for custom configuration strings
35 PAYLOAD:=$(PAYLOAD-y)
37 PCONF-y= generic.conf
38 PCONF-$(CONFIG_PAYLOAD_COREINFO) = libpayload-dep.conf
39 PCONF-$(CONFIG_PAYLOAD_CUSTOM) = custom.conf
40 PCONF-$(CONFIG_PAYLOAD_KERNEL) = kernel.conf
41 PCONF-$(CONFIG_PAYLOAD_LAB) = lab.conf
42 PCONF-$(CONFIG_PAYLOAD_AVATT) = avatt.conf
43 PCONF-$(CONFIG_PAYLOAD_OFW) = ofw.conf
44 PCONF-$(CONFIG_PAYLOAD_OPENBIOS) = openbios.conf
45 PCONF-$(CONFIG_PAYLOAD_TINT) = libpayload-dep.conf
47 include $(CONFIG_DIR)/payloads/$(PCONF-y)
49 # Add LZMA if it is enabled and we are using v2
50 ifeq ($(CONFIG_COREBOOT_V2),y)
51 HOSTTOOLS-$(CONFIG_USE_LZMA) += lzma
52 endif
54 HOSTTOOLS-$(CONFIG_BUILD_QEMU) += qemu
55 HOSTTOOLS-$(CONFIG_USE_NRV2B) += nrv2b
57 # Sanity check
59 ifeq ($(PAYLOAD_ELF),)
60 $(error You must specify a ELF target)
61 endif
63 ifeq ($(CONFIG_USE_LZMA),y)
64 ifeq ($(CONFIG_COREBOOT_V2),y)
65 ifeq ($(PAYLOAD_COMPRESSED),)
66 $(error You must specify a compressed target)
67 endif
68 endif
69 endif
71 # Set the payload target (if it wasn't set by the config - warning
72 # there be dragons here if everything isn't aligned)
74 ifeq ($(PAYLOAD_TARGET),)
75         ifeq ($(CONFIG_COREBOOT_V2),y)
76                 ifeq ($(CONFIG_USE_LZMA),y)
77                                 PAYLOAD_TARGET=$(PAYLOAD_COMPRESSED)
78                 else
79                                 PAYLOAD_TARGET=$(PAYLOAD_ELF)
80                 endif
81         else
82                 PAYLOAD_TARGET=$(PAYLOAD_ELF)
83         endif
84 endif