blob: bb6d8fed3a4501397083f9491dff80ab6108fd08 [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
Julius Werner45d2ff32013-08-12 18:04:06 -07006bootblock-y += spi.c alternate_cbfs.c
Gabe Black607c0b62013-05-16 05:45:57 -07007bootblock-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
Kyösti Mälkkiafa7b132014-02-13 17:16:22 +020012ifeq ($(CONFIG_DRIVERS_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
Julius Werner45d2ff32013-08-12 18:04:06 -070019romstage-y += spi.c alternate_cbfs.c
Hung-Te Lin0682cfe2013-08-06 20:37:55 +080020romstage-y += smp.c
Gabe Black607c0b62013-05-16 05:45:57 -070021romstage-y += clock.c
22romstage-y += clock_init.c
23romstage-y += pinmux.c # required by s3c24x0_i2c and uart.
24romstage-y += dmc_common.c
25romstage-y += dmc_init_ddr3.c
26romstage-y += power.c
27romstage-y += mct.c
28romstage-y += monotonic_timer.c
Kyösti Mälkkiafa7b132014-02-13 17:16:22 +020029ifeq ($(CONFIG_DRIVERS_UART),y)
Kyösti Mälkki48713a12014-04-15 18:19:48 +030030romstage-y += uart.c
Stefan Reinauer062c17b2013-06-19 15:51:04 -070031endif
Gabe Black607c0b62013-05-16 05:45:57 -070032romstage-y += wakeup.c
Gabe Black607c0b62013-05-16 05:45:57 -070033romstage-y += gpio.c
34romstage-y += timer.c
35romstage-y += i2c.c
36#romstage-y += wdt.c
Stefan Reinauer80e62932013-07-29 15:52:23 -070037romstage-y += cbmem.c
Gabe Black607c0b62013-05-16 05:45:57 -070038
Julius Werner45d2ff32013-08-12 18:04:06 -070039ramstage-y += spi.c alternate_cbfs.c
Gabe Black607c0b62013-05-16 05:45:57 -070040ramstage-y += clock.c
41ramstage-y += clock_init.c
42ramstage-y += pinmux.c
43ramstage-y += power.c
Kyösti Mälkkiafa7b132014-02-13 17:16:22 +020044ramstage-$(CONFIG_DRIVERS_UART) += uart.c
Gabe Black607c0b62013-05-16 05:45:57 -070045ramstage-y += cpu.c
46ramstage-y += tmu.c
47ramstage-y += mct.c
48ramstage-y += monotonic_timer.c
Gabe Black607c0b62013-05-16 05:45:57 -070049ramstage-y += timer.c
50ramstage-y += gpio.c
51ramstage-y += i2c.c
Ronald G. Minnichc0d5eb22013-08-01 11:38:05 -070052ramstage-y += dp.c dp_lowlevel.c fimd.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