blob: 7eb407e9573ba1700c35e5d473aa468b7ab0a7f7 [file] [log] [blame]
Julius Werner45d2ff32013-08-12 18:04:06 -07001bootblock-y += spi.c alternate_cbfs.c
Gabe Black8b685392013-09-29 03:02:55 -07002bootblock-y += bootblock.c
Julius Werner8d978a82014-12-08 13:16:03 -08003bootblock-y += pinmux.c timer.c power.c
Gabe Black607c0b62013-05-16 05:45:57 -07004# Clock is required for UART
Gabe Blackfbb11cf2013-06-06 00:21:20 -07005bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += clock_init.c
6bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += clock.c
Kyösti Mälkkiafa7b132014-02-13 17:16:22 +02007ifeq ($(CONFIG_DRIVERS_UART),y)
Gabe Blackfbb11cf2013-06-06 00:21:20 -07008bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += uart.c
Stefan Reinauer062c17b2013-06-19 15:51:04 -07009endif
Gabe Black607c0b62013-05-16 05:45:57 -070010bootblock-y += wakeup.c
11bootblock-y += gpio.c
Gabe Black607c0b62013-05-16 05:45:57 -070012
Julius Werner45d2ff32013-08-12 18:04:06 -070013romstage-y += spi.c alternate_cbfs.c
Hung-Te Lin0682cfe2013-08-06 20:37:55 +080014romstage-y += smp.c
Gabe Black607c0b62013-05-16 05:45:57 -070015romstage-y += clock.c
16romstage-y += clock_init.c
17romstage-y += pinmux.c # required by s3c24x0_i2c and uart.
18romstage-y += dmc_common.c
19romstage-y += dmc_init_ddr3.c
20romstage-y += power.c
Julius Werner8d978a82014-12-08 13:16:03 -080021romstage-y += timer.c
Edward O'Callaghan72a9beb2014-12-26 12:08:11 +110022romstage-$(CONFIG_DRIVERS_UART) += uart.c
Gabe Black607c0b62013-05-16 05:45:57 -070023romstage-y += wakeup.c
Gabe Black607c0b62013-05-16 05:45:57 -070024romstage-y += gpio.c
Gabe Black607c0b62013-05-16 05:45:57 -070025romstage-y += i2c.c
26#romstage-y += wdt.c
Stefan Reinauer80e62932013-07-29 15:52:23 -070027romstage-y += cbmem.c
Gabe Black8128a562013-09-18 05:48:37 -070028romstage-y += trustzone.c
Gabe Black607c0b62013-05-16 05:45:57 -070029
Julius Werner45d2ff32013-08-12 18:04:06 -070030ramstage-y += spi.c alternate_cbfs.c
Gabe Black607c0b62013-05-16 05:45:57 -070031ramstage-y += clock.c
32ramstage-y += clock_init.c
33ramstage-y += pinmux.c
34ramstage-y += power.c
Kyösti Mälkkiafa7b132014-02-13 17:16:22 +020035ramstage-$(CONFIG_DRIVERS_UART) += uart.c
Gabe Black607c0b62013-05-16 05:45:57 -070036ramstage-y += cpu.c
37ramstage-y += tmu.c
Julius Werner8d978a82014-12-08 13:16:03 -080038ramstage-y += timer.c
Gabe Black607c0b62013-05-16 05:45:57 -070039ramstage-y += gpio.c
40ramstage-y += i2c.c
Ronald G. Minnichc0d5eb22013-08-01 11:38:05 -070041ramstage-y += dp.c dp_lowlevel.c fimd.c
Stefan Reinauer3a0d0d82013-06-20 16:13:19 -070042ramstage-y += usb.c
Stefan Reinauer80e62932013-07-29 15:52:23 -070043ramstage-y += cbmem.c
Gabe Black607c0b62013-05-16 05:45:57 -070044
Julius Werner8d978a82014-12-08 13:16:03 -080045rmodules_$(ARCH-ROMSTAGE-y)-y += timer.c
Furquan Shaikhfbff9082014-07-22 15:59:16 -070046
Julius Werner80af4422014-10-20 13:18:56 -070047CPPFLAGS_common += -Isrc/soc/samsung/exynos5420/include/
48
Gabe Blackb6b10772013-12-08 12:48:45 -080049$(objcbfs)/bootblock.raw.elf: $(objcbfs)/bootblock.elf
50 cp $< $@
51
52$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
53 @printf " BL1, CKSUM $(subst $(obj)/,,$(@))\n"
54 util/exynos/variable_cksum.py $< $<.cksum
55 cat 3rdparty/cpu/samsung/exynos5420/bl1.bin $<.cksum > $@