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 |
Patrick Georgi | b890a12 | 2015-03-26 15:17:45 +0100 | [diff] [blame] | 17 | ## Foundation, Inc. |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 18 | ## |
| 19 | |
Stefan Reinauer | aae53ab | 2015-04-27 14:03:57 -0700 | [diff] [blame] | 20 | ifeq ($(CONFIG_SOC_ROCKCHIP_RK3288),y) |
| 21 | |
huang lin | 817e455 | 2014-08-26 17:31:28 +0800 | [diff] [blame] | 22 | IDBTOOL = util/rockchip/make_idb.py |
| 23 | |
Patrick Georgi | 20864c1 | 2015-07-01 20:29:42 +0200 | [diff] [blame^] | 24 | bootblock-y += bootblock.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 25 | bootblock-y += cbmem.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 26 | ifeq ($(CONFIG_BOOTBLOCK_CONSOLE),y) |
| 27 | bootblock-$(CONFIG_DRIVERS_UART) += uart.c |
| 28 | endif |
huang lin | 739df1b | 2014-08-27 17:07:42 +0800 | [diff] [blame] | 29 | bootblock-y += timer.c |
jinkun.hong | 503d121 | 2014-07-31 14:50:49 +0800 | [diff] [blame] | 30 | bootblock-y += clock.c |
huang lin | 630c86d | 2014-08-26 17:28:46 +0800 | [diff] [blame] | 31 | bootblock-y += spi.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 |
Julius Werner | 7f70ad6 | 2015-02-09 17:40:58 -0800 | [diff] [blame] | 34 | bootblock-$(CONFIG_SOFTWARE_I2C) += software_i2c.c |
huang lin | 08884e3 | 2014-10-10 20:28:47 -0700 | [diff] [blame] | 35 | bootblock-y += rk808.c |
Daisuke Nojiri | 5c2988c | 2014-09-24 09:39:16 -0700 | [diff] [blame] | 36 | |
Daisuke Nojiri | 5c2988c | 2014-09-24 09:39:16 -0700 | [diff] [blame] | 37 | verstage-y += spi.c |
| 38 | verstage-y += timer.c |
Patrick Georgi | 94e4d81 | 2015-04-07 13:49:32 +0200 | [diff] [blame] | 39 | verstage-$(CONFIG_DRIVERS_UART) += uart.c |
Daisuke Nojiri | 5c2988c | 2014-09-24 09:39:16 -0700 | [diff] [blame] | 40 | verstage-y += gpio.c |
| 41 | verstage-y += clock.c |
Patrick Georgi | 27ef602 | 2015-04-30 14:25:14 +0200 | [diff] [blame] | 42 | libverstage-y += crypto.c |
Daisuke Nojiri | 5c2988c | 2014-09-24 09:39:16 -0700 | [diff] [blame] | 43 | verstage-y += i2c.c |
Julius Werner | 7f70ad6 | 2015-02-09 17:40:58 -0800 | [diff] [blame] | 44 | verstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 45 | |
| 46 | romstage-y += cbmem.c |
| 47 | romstage-y += timer.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 48 | romstage-$(CONFIG_DRIVERS_UART) += uart.c |
huang lin | 441a578 | 2014-07-30 20:34:40 -0700 | [diff] [blame] | 49 | romstage-y += i2c.c |
Julius Werner | 7f70ad6 | 2015-02-09 17:40:58 -0800 | [diff] [blame] | 50 | romstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c |
jinkun.hong | 503d121 | 2014-07-31 14:50:49 +0800 | [diff] [blame] | 51 | romstage-y += clock.c |
huang lin | d5fb66e | 2014-08-26 18:22:08 +0800 | [diff] [blame] | 52 | romstage-y += gpio.c |
huang lin | 630c86d | 2014-08-26 17:28:46 +0800 | [diff] [blame] | 53 | romstage-y += spi.c |
Jinkun Hong | c33ce35 | 2014-08-28 09:37:22 -0700 | [diff] [blame] | 54 | romstage-y += sdram.c |
Julius Werner | dbfa9d5 | 2014-12-05 17:29:42 -0800 | [diff] [blame] | 55 | romstage-y += rk808.c |
huang lin | bfdd732 | 2014-09-25 16:33:38 +0800 | [diff] [blame] | 56 | romstage-y += pwm.c |
huang lin | a97bd5a | 2014-10-14 10:04:16 -0700 | [diff] [blame] | 57 | romstage-y += tsadc.c |
huang lin | d5fb66e | 2014-08-26 18:22:08 +0800 | [diff] [blame] | 58 | |
huang lin | 82ba4d0 | 2014-08-16 10:49:32 +0800 | [diff] [blame] | 59 | ramstage-y += soc.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 60 | ramstage-y += cbmem.c |
| 61 | ramstage-y += timer.c |
huang lin | 441a578 | 2014-07-30 20:34:40 -0700 | [diff] [blame] | 62 | ramstage-y += i2c.c |
Julius Werner | 7f70ad6 | 2015-02-09 17:40:58 -0800 | [diff] [blame] | 63 | ramstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c |
jinkun.hong | 503d121 | 2014-07-31 14:50:49 +0800 | [diff] [blame] | 64 | ramstage-y += clock.c |
huang lin | 630c86d | 2014-08-26 17:28:46 +0800 | [diff] [blame] | 65 | ramstage-y += spi.c |
huang lin | ee28c86 | 2015-01-26 21:04:55 +0800 | [diff] [blame] | 66 | ramstage-y += sdram.c |
huang lin | d5fb66e | 2014-08-26 18:22:08 +0800 | [diff] [blame] | 67 | ramstage-y += gpio.c |
Julius Werner | 7a757c9 | 2014-09-10 19:37:15 -0700 | [diff] [blame] | 68 | ramstage-y += rk808.c |
huang lin | bfdd732 | 2014-09-25 16:33:38 +0800 | [diff] [blame] | 69 | ramstage-y += pwm.c |
huang lin | 40f558e | 2014-09-19 14:51:52 +0800 | [diff] [blame] | 70 | ramstage-y += vop.c |
| 71 | ramstage-y += edp.c |
Yakir Yang | 68f42be | 2015-04-29 10:08:12 -0500 | [diff] [blame] | 72 | ramstage-y += hdmi.c |
huang lin | 40f558e | 2014-09-19 14:51:52 +0800 | [diff] [blame] | 73 | ramstage-y += display.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 74 | ramstage-$(CONFIG_DRIVERS_UART) += uart.c |
huang lin | 817e455 | 2014-08-26 17:31:28 +0800 | [diff] [blame] | 75 | |
Julius Werner | 7a453eb | 2014-10-20 13:14:55 -0700 | [diff] [blame] | 76 | CPPFLAGS_common += -Isrc/soc/rockchip/rk3288/include/ |
| 77 | |
huang lin | 817e455 | 2014-08-26 17:31:28 +0800 | [diff] [blame] | 78 | $(objcbfs)/bootblock.raw.elf: $(objcbfs)/bootblock.elf |
| 79 | cp $< $@ |
| 80 | |
| 81 | $(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin |
| 82 | @printf "Generating: $(subst $(obj)/,,$(@))\n" |
| 83 | @mkdir -p $(dir $@) |
| 84 | @$(IDBTOOL) --from=$< --to=$@ --enable-align |
Stefan Reinauer | aae53ab | 2015-04-27 14:03:57 -0700 | [diff] [blame] | 85 | |
| 86 | endif |