2 uses CONFIG_PRECOMPRESSED_PAYLOAD
4 uses HAVE_FAILOVER_BOOT
5 uses USE_FAILOVER_IMAGE
6 uses USE_FALLBACK_IMAGE
12 ldscript init/ldscript_failover.lb
14 ldscript init/ldscript.lb
18 ldscript init/ldscript_fallback.lb
20 ldscript init/ldscript.lb
25 depends "coreboot.rom"
30 action "mcopy -o coreboot.rom a:"
34 depends "$(TOP)/util/nrv2b/nrv2b.c"
35 action "$(HOSTCC) -O2 -DENCODE -DDECODE -DMAIN -DVERBOSE -DNDEBUG -DBITSIZE=32 -DENDIAN=0 $< -o $@"
43 makerule payload.nrv2b
44 depends "$(PAYLOAD) nrv2b"
45 action "./nrv2b e $(PAYLOAD) $@"
48 # unlike nrv2b, lzma is a huge build mess. If they want lzma, they have to have built it
51 action "lzma -zc $(PAYLOAD) > $@ || lzma e $(PAYLOAD) $@"
55 # this one example shows the mess that has occurred. People are now mixing
56 # conditional if in the make style with if in the config language style.
57 # The -1 is linux standard.
58 # I don't much like it but it is the mode nowadays. So coreboot will change
60 # catch the case where there is no compression
61 makedefine PAYLOAD-1:=payload
63 # match the case where a compression type is specified.
64 makedefine PAYLOAD-$(CONFIG_COMPRESSED_PAYLOAD_NRV2B):=payload.nrv2b
65 makedefine PAYLOAD-$(CONFIG_COMPRESSED_PAYLOAD_LZMA):=payload.lzma
67 # catch the case where there is precompression. Yes, this bites.
68 if CONFIG_PRECOMPRESSED_PAYLOAD
69 makedefine PAYLOAD-1:=payload
73 makedefine COREBOOT_APC:=
74 makedefine COREBOOT_RAM_ROM:=
77 depends "coreboot.strip"
82 depends "coreboot.strip buildrom $(PAYLOAD-1)"
83 action "PAYLOAD=$(PAYLOAD-1); if [ $(CONFIG_ROMFS) -eq 1 ]; then PAYLOAD=/dev/null; touch romfs-support; fi; ./buildrom $< $@ $$PAYLOAD $(ROM_IMAGE_SIZE) $(ROM_SECTION_SIZE)"
84 action "if [ $(CONFIG_COMPRESSED_PAYLOAD_LZMA) -eq 1 -a $(CONFIG_ROMFS) -eq 1 ]; then echo l > romfs-support; fi"
93 addaction clean "rm -f romimage payload.*"
97 depends "$(INIT-OBJECTS)"
98 action "$(LD) -melf_i386 -r -o init.pre.o $(INIT-OBJECTS)"
99 action "$(OBJCOPY) --rename-section .text=.init.text --rename-section .data=.init.data --rename-section .rodata=.init.rodata --rename-section .rodata.str1.1=.init.rodata.str1.1 init.pre.o init.o"
103 depends "crt0.o init.o $(COREBOOT_APC) $(COREBOOT_RAM_ROM) ldscript.ld"
104 action "$(CC) -nostdlib -nostartfiles -static -o $@ -T ldscript.ld crt0.o init.o"
105 action "$(CROSS_COMPILE)nm -n coreboot | sort > coreboot.map"