blob: 441a97fb8456dbe90e02a7f57dde4be570fbd290 [file] [log] [blame]
jinkun.hongac490b82014-06-22 20:40:39 -07001##
2## This file is part of the coreboot project.
3##
4## Copyright 2014 Rockchip Inc.
5##
6## This program is free software; you can redistribute it and/or modify
7## it under the terms of the GNU General Public License as published by
8## the Free Software Foundation; version 2 of the License.
9##
10## This program is distributed in the hope that it will be useful,
11## but WITHOUT ANY WARRANTY; without even the implied warranty of
12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13## GNU General Public License for more details.
14##
15## You should have received a copy of the GNU General Public License
16## along with this program; if not, write to the Free Software
17## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18##
19
huang lin817e4552014-08-26 17:31:28 +080020IDBTOOL = util/rockchip/make_idb.py
21
jinkun.hongac490b82014-06-22 20:40:39 -070022#bootblock-y += bootblock.c
23bootblock-y += cbmem.c
jinkun.hongac490b82014-06-22 20:40:39 -070024ifeq ($(CONFIG_BOOTBLOCK_CONSOLE),y)
25bootblock-$(CONFIG_DRIVERS_UART) += uart.c
26endif
huang lin739df1b2014-08-27 17:07:42 +080027bootblock-y += timer.c
jinkun.hong503d1212014-07-31 14:50:49 +080028bootblock-y += clock.c
huang lin630c86d2014-08-26 17:28:46 +080029bootblock-y += spi.c
Daisuke Nojiri5c2988c2014-09-24 09:39:16 -070030bootblock-y += gpio.c
huang linbbcffd92014-09-27 12:02:27 +080031bootblock-y += i2c.c
Julius Werner7f70ad62015-02-09 17:40:58 -080032bootblock-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
huang lin08884e32014-10-10 20:28:47 -070033bootblock-y += rk808.c
Daisuke Nojiri5c2988c2014-09-24 09:39:16 -070034
Daisuke Nojiri5c2988c2014-09-24 09:39:16 -070035verstage-y += spi.c
36verstage-y += timer.c
Patrick Georgi94e4d812015-04-07 13:49:32 +020037verstage-$(CONFIG_DRIVERS_UART) += uart.c
Daisuke Nojiri5c2988c2014-09-24 09:39:16 -070038verstage-y += gpio.c
39verstage-y += clock.c
Julius Werner33df4952014-12-16 22:48:26 -080040verstage-y += crypto.c
Daisuke Nojiri5c2988c2014-09-24 09:39:16 -070041verstage-y += i2c.c
Julius Werner7f70ad62015-02-09 17:40:58 -080042verstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
jinkun.hongac490b82014-06-22 20:40:39 -070043
44romstage-y += cbmem.c
45romstage-y += timer.c
jinkun.hongac490b82014-06-22 20:40:39 -070046romstage-$(CONFIG_DRIVERS_UART) += uart.c
huang lin441a5782014-07-30 20:34:40 -070047romstage-y += i2c.c
Julius Werner7f70ad62015-02-09 17:40:58 -080048romstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
jinkun.hong503d1212014-07-31 14:50:49 +080049romstage-y += clock.c
huang lind5fb66e2014-08-26 18:22:08 +080050romstage-y += gpio.c
huang lin630c86d2014-08-26 17:28:46 +080051romstage-y += spi.c
Jinkun Hongc33ce352014-08-28 09:37:22 -070052romstage-y += sdram.c
Julius Wernerdbfa9d52014-12-05 17:29:42 -080053romstage-y += rk808.c
huang linbfdd7322014-09-25 16:33:38 +080054romstage-y += pwm.c
huang lina97bd5a2014-10-14 10:04:16 -070055romstage-y += tsadc.c
huang lind5fb66e2014-08-26 18:22:08 +080056
huang lin82ba4d02014-08-16 10:49:32 +080057ramstage-y += soc.c
jinkun.hongac490b82014-06-22 20:40:39 -070058ramstage-y += cbmem.c
59ramstage-y += timer.c
huang lin441a5782014-07-30 20:34:40 -070060ramstage-y += i2c.c
Julius Werner7f70ad62015-02-09 17:40:58 -080061ramstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
jinkun.hong503d1212014-07-31 14:50:49 +080062ramstage-y += clock.c
huang lin630c86d2014-08-26 17:28:46 +080063ramstage-y += spi.c
huang linee28c862015-01-26 21:04:55 +080064ramstage-y += sdram.c
huang lind5fb66e2014-08-26 18:22:08 +080065ramstage-y += gpio.c
Julius Werner7a757c92014-09-10 19:37:15 -070066ramstage-y += rk808.c
huang linbfdd7322014-09-25 16:33:38 +080067ramstage-y += pwm.c
huang lin40f558e2014-09-19 14:51:52 +080068ramstage-y += vop.c
69ramstage-y += edp.c
70ramstage-y += display.c
jinkun.hongac490b82014-06-22 20:40:39 -070071ramstage-$(CONFIG_DRIVERS_UART) += uart.c
huang lin817e4552014-08-26 17:31:28 +080072
Julius Werner7a453eb2014-10-20 13:14:55 -070073CPPFLAGS_common += -Isrc/soc/rockchip/rk3288/include/
74
huang lin817e4552014-08-26 17:31:28 +080075$(objcbfs)/bootblock.raw.elf: $(objcbfs)/bootblock.elf
76 cp $< $@
77
78$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
79 @printf "Generating: $(subst $(obj)/,,$(@))\n"
80 @mkdir -p $(dir $@)
81 @$(IDBTOOL) --from=$< --to=$@ --enable-align