removed the .config file, separated the AVATT payload from the LAB one
[kvm-coreboot.git] / config / payloads / payloads.conf
blob6586d9ea7463aa34bc91155434d4e3c5677692aa
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_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
34 PAYLOAD:=$(PAYLOAD-y)
36 PCONF-y= generic.conf
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
51 endif
53 HOSTTOOLS-$(CONFIG_BUILD_QEMU) += qemu
54 HOSTTOOLS-$(CONFIG_USE_NRV2B) += nrv2b
56 # Sanity check
58 ifeq ($(PAYLOAD_ELF),)
59 $(error You must specify a ELF target)
60 endif
62 ifeq ($(CONFIG_USE_LZMA),y)
63 ifeq ($(CONFIG_COREBOOT_V2),y)
64 ifeq ($(PAYLOAD_COMPRESSED),)
65 $(error You must specify a compressed target)
66 endif
67 endif
68 endif
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)
77                 else
78                                 PAYLOAD_TARGET=$(PAYLOAD_ELF)
79                 endif
80         else
81                 PAYLOAD_TARGET=$(PAYLOAD_ELF)
82         endif
83 endif