jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 1 | ## |
| 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 lin | 817e455 | 2014-08-26 17:31:28 +0800 | [diff] [blame] | 20 | IDBTOOL = util/rockchip/make_idb.py |
| 21 | |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 22 | #bootblock-y += bootblock.c |
| 23 | bootblock-y += cbmem.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 24 | ifeq ($(CONFIG_BOOTBLOCK_CONSOLE),y) |
| 25 | bootblock-$(CONFIG_DRIVERS_UART) += uart.c |
| 26 | endif |
huang lin | 739df1b | 2014-08-27 17:07:42 +0800 | [diff] [blame] | 27 | bootblock-y += timer.c |
| 28 | bootblock-y += monotonic_timer.c |
jinkun.hong | 503d121 | 2014-07-31 14:50:49 +0800 | [diff] [blame] | 29 | bootblock-y += clock.c |
huang lin | 630c86d | 2014-08-26 17:28:46 +0800 | [diff] [blame] | 30 | bootblock-y += spi.c |
huang lin | 739df1b | 2014-08-27 17:07:42 +0800 | [diff] [blame] | 31 | bootblock-y += media.c |
Daisuke Nojiri | 5c2988c | 2014-09-24 09:39:16 -0700 | [diff] [blame] | 32 | bootblock-y += gpio.c |
huang lin | bbcffd9 | 2014-09-27 12:02:27 +0800 | [diff] [blame] | 33 | bootblock-y += i2c.c |
Daisuke Nojiri | 5c2988c | 2014-09-24 09:39:16 -0700 | [diff] [blame] | 34 | |
| 35 | verstage-y += monotonic_timer.c |
| 36 | verstage-y += spi.c |
| 37 | verstage-y += timer.c |
| 38 | verstage-$(CONFIG_CONSOLE_SERIAL_UART) += uart.c |
| 39 | verstage-y += gpio.c |
| 40 | verstage-y += clock.c |
| 41 | verstage-y += i2c.c |
| 42 | verstage-y += media.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 43 | |
| 44 | romstage-y += cbmem.c |
| 45 | romstage-y += timer.c |
| 46 | romstage-y += monotonic_timer.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 47 | romstage-$(CONFIG_DRIVERS_UART) += uart.c |
huang lin | 441a578 | 2014-07-30 20:34:40 -0700 | [diff] [blame] | 48 | romstage-y += i2c.c |
jinkun.hong | 503d121 | 2014-07-31 14:50:49 +0800 | [diff] [blame] | 49 | romstage-y += clock.c |
huang lin | d5fb66e | 2014-08-26 18:22:08 +0800 | [diff] [blame] | 50 | romstage-y += gpio.c |
huang lin | 630c86d | 2014-08-26 17:28:46 +0800 | [diff] [blame] | 51 | romstage-y += spi.c |
huang lin | 7333e1f | 2014-07-30 10:58:37 -0700 | [diff] [blame] | 52 | romstage-y += media.c |
Jinkun Hong | c33ce35 | 2014-08-28 09:37:22 -0700 | [diff] [blame] | 53 | romstage-y += sdram.c |
huang lin | bfdd732 | 2014-09-25 16:33:38 +0800 | [diff] [blame^] | 54 | romstage-y += pwm.c |
huang lin | d5fb66e | 2014-08-26 18:22:08 +0800 | [diff] [blame] | 55 | |
huang lin | 82ba4d0 | 2014-08-16 10:49:32 +0800 | [diff] [blame] | 56 | ramstage-y += soc.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 57 | ramstage-y += cbmem.c |
| 58 | ramstage-y += timer.c |
| 59 | ramstage-y += monotonic_timer.c |
huang lin | 441a578 | 2014-07-30 20:34:40 -0700 | [diff] [blame] | 60 | ramstage-y += i2c.c |
jinkun.hong | 503d121 | 2014-07-31 14:50:49 +0800 | [diff] [blame] | 61 | ramstage-y += clock.c |
huang lin | 630c86d | 2014-08-26 17:28:46 +0800 | [diff] [blame] | 62 | ramstage-y += spi.c |
huang lin | d5fb66e | 2014-08-26 18:22:08 +0800 | [diff] [blame] | 63 | ramstage-y += gpio.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 64 | ramstage-y += media.c |
Julius Werner | 7a757c9 | 2014-09-10 19:37:15 -0700 | [diff] [blame] | 65 | ramstage-y += rk808.c |
huang lin | bfdd732 | 2014-09-25 16:33:38 +0800 | [diff] [blame^] | 66 | ramstage-y += pwm.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 67 | ramstage-$(CONFIG_DRIVERS_UART) += uart.c |
huang lin | 817e455 | 2014-08-26 17:31:28 +0800 | [diff] [blame] | 68 | |
| 69 | $(objcbfs)/bootblock.raw.elf: $(objcbfs)/bootblock.elf |
| 70 | cp $< $@ |
| 71 | |
| 72 | $(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin |
| 73 | @printf "Generating: $(subst $(obj)/,,$(@))\n" |
| 74 | @mkdir -p $(dir $@) |
| 75 | @$(IDBTOOL) --from=$< --to=$@ --enable-align |