blob: 704a346209fe2f665dae8bc2a9e58b06e3fa859d [file] [log] [blame]
Gabe Black607c0b62013-05-16 05:45:57 -07001# Run an intermediate step when producing coreboot.rom
2# that adds additional components to the final firmware
3# image outside of CBFS
4INTERMEDIATE += exynos5420_add_bl1
5
6bootblock-y += spi.c
7bootblock-y += pinmux.c mct.c power.c
8# Clock is required for UART
Gabe Blackfbb11cf2013-06-06 00:21:20 -07009bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += clock_init.c
10bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += clock.c
11bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += monotonic_timer.c
Stefan Reinauer062c17b2013-06-19 15:51:04 -070012ifeq ($(CONFIG_CONSOLE_SERIAL_UART),y)
Gabe Blackfbb11cf2013-06-06 00:21:20 -070013bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += uart.c
Stefan Reinauer062c17b2013-06-19 15:51:04 -070014endif
Gabe Black607c0b62013-05-16 05:45:57 -070015bootblock-y += wakeup.c
16bootblock-y += gpio.c
Gabe Blackfbb11cf2013-06-06 00:21:20 -070017bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += timer.c
Gabe Black607c0b62013-05-16 05:45:57 -070018
19romstage-y += spi.c
20romstage-y += clock.c
21romstage-y += clock_init.c
22romstage-y += pinmux.c # required by s3c24x0_i2c and uart.
23romstage-y += dmc_common.c
24romstage-y += dmc_init_ddr3.c
25romstage-y += power.c
26romstage-y += mct.c
27romstage-y += monotonic_timer.c
Stefan Reinauer062c17b2013-06-19 15:51:04 -070028ifeq ($(CONFIG_CONSOLE_SERIAL_UART),y)
Gabe Black607c0b62013-05-16 05:45:57 -070029romstage-$(CONFIG_EARLY_CONSOLE) += uart.c
Stefan Reinauer062c17b2013-06-19 15:51:04 -070030endif
Gabe Black607c0b62013-05-16 05:45:57 -070031romstage-y += wakeup.c
Gabe Black607c0b62013-05-16 05:45:57 -070032romstage-y += gpio.c
33romstage-y += timer.c
34romstage-y += i2c.c
35#romstage-y += wdt.c
Stefan Reinauer80e62932013-07-29 15:52:23 -070036romstage-y += cbmem.c
Gabe Black607c0b62013-05-16 05:45:57 -070037
38ramstage-y += spi.c
39ramstage-y += clock.c
40ramstage-y += clock_init.c
41ramstage-y += pinmux.c
42ramstage-y += power.c
43ramstage-$(CONFIG_CONSOLE_SERIAL_UART) += uart.c
44ramstage-y += cpu.c
45ramstage-y += tmu.c
46ramstage-y += mct.c
47ramstage-y += monotonic_timer.c
Gabe Black607c0b62013-05-16 05:45:57 -070048ramstage-y += timer.c
49ramstage-y += gpio.c
50ramstage-y += i2c.c
51ramstage-y += dp-reg.c
52ramstage-y += fb.c
Stefan Reinauer3a0d0d82013-06-20 16:13:19 -070053ramstage-y += usb.c
Stefan Reinauer80e62932013-07-29 15:52:23 -070054ramstage-y += cbmem.c
Gabe Black607c0b62013-05-16 05:45:57 -070055
56exynos5420_add_bl1: $(obj)/coreboot.pre
57 printf " DD Adding Samsung Exynos5420 BL1\n"
58 dd if=3rdparty/cpu/samsung/exynos5420/bl1.bin \
59 of=$(obj)/coreboot.pre conv=notrunc >/dev/null 2>&1