blob: 1a438e8e3c730a2f14ee75ea244fb103996f0554 [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
24bootblock-y += timer.c
25bootblock-y += monotonic_timer.c
26bootblock-y += media.c
27ifeq ($(CONFIG_BOOTBLOCK_CONSOLE),y)
28bootblock-$(CONFIG_DRIVERS_UART) += uart.c
29endif
jinkun.hong503d1212014-07-31 14:50:49 +080030bootblock-y += clock.c
huang lin630c86d2014-08-26 17:28:46 +080031bootblock-y += spi.c
jinkun.hongac490b82014-06-22 20:40:39 -070032
33romstage-y += cbmem.c
34romstage-y += timer.c
35romstage-y += monotonic_timer.c
jinkun.hongac490b82014-06-22 20:40:39 -070036romstage-$(CONFIG_DRIVERS_UART) += uart.c
huang lin441a5782014-07-30 20:34:40 -070037romstage-y += i2c.c
jinkun.hong503d1212014-07-31 14:50:49 +080038romstage-y += clock.c
huang lind5fb66e2014-08-26 18:22:08 +080039romstage-y += gpio.c
huang lin630c86d2014-08-26 17:28:46 +080040romstage-y += spi.c
huang lin7333e1f2014-07-30 10:58:37 -070041romstage-y += media.c
Jinkun Hongc33ce352014-08-28 09:37:22 -070042romstage-y += sdram.c
huang lind5fb66e2014-08-26 18:22:08 +080043
huang lin82ba4d02014-08-16 10:49:32 +080044ramstage-y += soc.c
jinkun.hongac490b82014-06-22 20:40:39 -070045ramstage-y += cbmem.c
46ramstage-y += timer.c
47ramstage-y += monotonic_timer.c
huang lin441a5782014-07-30 20:34:40 -070048ramstage-y += i2c.c
jinkun.hong503d1212014-07-31 14:50:49 +080049ramstage-y += clock.c
huang lin630c86d2014-08-26 17:28:46 +080050ramstage-y += spi.c
huang lind5fb66e2014-08-26 18:22:08 +080051ramstage-y += gpio.c
jinkun.hongac490b82014-06-22 20:40:39 -070052ramstage-y += media.c
53ramstage-$(CONFIG_DRIVERS_UART) += uart.c
huang lin817e4552014-08-26 17:31:28 +080054
55$(objcbfs)/bootblock.raw.elf: $(objcbfs)/bootblock.elf
56 cp $< $@
57
58$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
59 @printf "Generating: $(subst $(obj)/,,$(@))\n"
60 @mkdir -p $(dir $@)
61 @$(IDBTOOL) --from=$< --to=$@ --enable-align