starting to integrate the kvm tools into the build system
[kvm-coreboot.git] / config / payloads / payloads.conf
blobea86043e4730d7fec07d3331ed74a22a3ea78499
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_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
33 PAYLOAD:=$(PAYLOAD-y)
35 PCONF-y= generic.conf
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
49 endif
51 HOSTTOOLS-$(CONFIG_BUILD_QEMU) += qemu
52 HOSTTOOLS-$(CONFIG_USE_NRV2B) += nrv2b
54 # Sanity check
56 ifeq ($(PAYLOAD_ELF),)
57 $(error You must specify a ELF target)
58 endif
60 ifeq ($(CONFIG_USE_LZMA),y)
61 ifeq ($(CONFIG_COREBOOT_V2),y)
62 ifeq ($(PAYLOAD_COMPRESSED),)
63 $(error You must specify a compressed target)
64 endif
65 endif
66 endif
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)
75                 else
76                                 PAYLOAD_TARGET=$(PAYLOAD_ELF)
77                 endif
78         else
79                 PAYLOAD_TARGET=$(PAYLOAD_ELF)
80         endif
81 endif