Patrick Georgi | c49d7a3 | 2020-05-08 22:50:46 +0200 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 2 | |
Stefan Reinauer | aae53ab | 2015-04-27 14:03:57 -0700 | [diff] [blame] | 3 | ifeq ($(CONFIG_SOC_ROCKCHIP_RK3288),y) |
4 | |||||
huang lin | 817e455 | 2014-08-26 17:31:28 +0800 | [diff] [blame] | 5 | IDBTOOL = util/rockchip/make_idb.py |
6 | |||||
Patrick Georgi | 20864c1 | 2015-07-01 20:29:42 +0200 | [diff] [blame] | 7 | bootblock-y += bootblock.c |
Nico Huber | 755db95 | 2018-11-11 01:42:17 +0100 | [diff] [blame] | 8 | bootblock-y += ../common/uart.c |
huang lin | 739df1b | 2014-08-27 17:07:42 +0800 | [diff] [blame] | 9 | bootblock-y += timer.c |
jinkun.hong | 503d121 | 2014-07-31 14:50:49 +0800 | [diff] [blame] | 10 | bootblock-y += clock.c |
Vadim Bendebury | 0a36022 | 2016-03-28 22:57:26 -0700 | [diff] [blame] | 11 | bootblock-y += ../common/spi.c |
Shunqian Zheng | 015ae11 | 2016-04-20 20:35:09 +0800 | [diff] [blame] | 12 | bootblock-y += ../common/gpio.c |
Daisuke Nojiri | 5c2988c | 2014-09-24 09:39:16 -0700 | [diff] [blame] | 13 | bootblock-y += gpio.c |
huang lin | d4c175b | 2016-03-02 18:46:24 +0800 | [diff] [blame] | 14 | bootblock-y += ../common/i2c.c |
Julius Werner | 7f70ad6 | 2015-02-09 17:40:58 -0800 | [diff] [blame] | 15 | bootblock-$(CONFIG_SOFTWARE_I2C) += software_i2c.c |
Vadim Bendebury | 0a36022 | 2016-03-28 22:57:26 -0700 | [diff] [blame] | 16 | bootblock-y += ../common/rk808.c |
Daisuke Nojiri | 5c2988c | 2014-09-24 09:39:16 -0700 | [diff] [blame] | 17 | |
Vadim Bendebury | 0a36022 | 2016-03-28 22:57:26 -0700 | [diff] [blame] | 18 | verstage-y += ../common/spi.c |
Daisuke Nojiri | 5c2988c | 2014-09-24 09:39:16 -0700 | [diff] [blame] | 19 | verstage-y += timer.c |
Nico Huber | 755db95 | 2018-11-11 01:42:17 +0100 | [diff] [blame] | 20 | verstage-y += ../common/uart.c |
Shunqian Zheng | 015ae11 | 2016-04-20 20:35:09 +0800 | [diff] [blame] | 21 | verstage-y += ../common/gpio.c |
Daisuke Nojiri | 5c2988c | 2014-09-24 09:39:16 -0700 | [diff] [blame] | 22 | verstage-y += gpio.c |
23 | verstage-y += clock.c | ||||
Julius Werner | e91d170 | 2017-03-20 15:32:15 -0700 | [diff] [blame] | 24 | verstage-y += crypto.c |
huang lin | d4c175b | 2016-03-02 18:46:24 +0800 | [diff] [blame] | 25 | verstage-y += ../common/i2c.c |
Julius Werner | 7f70ad6 | 2015-02-09 17:40:58 -0800 | [diff] [blame] | 26 | verstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 27 | |
Vadim Bendebury | 0a36022 | 2016-03-28 22:57:26 -0700 | [diff] [blame] | 28 | romstage-y += ../common/cbmem.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 29 | romstage-y += timer.c |
Nico Huber | 755db95 | 2018-11-11 01:42:17 +0100 | [diff] [blame] | 30 | romstage-y += ../common/uart.c |
huang lin | d4c175b | 2016-03-02 18:46:24 +0800 | [diff] [blame] | 31 | romstage-y += ../common/i2c.c |
Julius Werner | 7f70ad6 | 2015-02-09 17:40:58 -0800 | [diff] [blame] | 32 | romstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c |
jinkun.hong | 503d121 | 2014-07-31 14:50:49 +0800 | [diff] [blame] | 33 | romstage-y += clock.c |
Shunqian Zheng | 015ae11 | 2016-04-20 20:35:09 +0800 | [diff] [blame] | 34 | romstage-y += ../common/gpio.c |
huang lin | d5fb66e | 2014-08-26 18:22:08 +0800 | [diff] [blame] | 35 | romstage-y += gpio.c |
Vadim Bendebury | 0a36022 | 2016-03-28 22:57:26 -0700 | [diff] [blame] | 36 | romstage-y += ../common/spi.c |
Jinkun Hong | c33ce35 | 2014-08-28 09:37:22 -0700 | [diff] [blame] | 37 | romstage-y += sdram.c |
Vadim Bendebury | 0a36022 | 2016-03-28 22:57:26 -0700 | [diff] [blame] | 38 | romstage-y += ../common/rk808.c |
Lin Huang | 6d6b129 | 2016-03-23 19:35:46 +0800 | [diff] [blame] | 39 | romstage-y += ../common/pwm.c |
huang lin | a97bd5a | 2014-10-14 10:04:16 -0700 | [diff] [blame] | 40 | romstage-y += tsadc.c |
Philipp Deppenwiese | 545ed7a | 2018-02-14 16:47:12 +0100 | [diff] [blame] | 41 | romstage-y += ../common/i2c.c |
huang lin | d5fb66e | 2014-08-26 18:22:08 +0800 | [diff] [blame] | 42 | |
huang lin | 82ba4d0 | 2014-08-16 10:49:32 +0800 | [diff] [blame] | 43 | ramstage-y += soc.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 44 | ramstage-y += timer.c |
huang lin | d4c175b | 2016-03-02 18:46:24 +0800 | [diff] [blame] | 45 | ramstage-y += ../common/i2c.c |
Julius Werner | 7f70ad6 | 2015-02-09 17:40:58 -0800 | [diff] [blame] | 46 | ramstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c |
jinkun.hong | 503d121 | 2014-07-31 14:50:49 +0800 | [diff] [blame] | 47 | ramstage-y += clock.c |
Vadim Bendebury | 0a36022 | 2016-03-28 22:57:26 -0700 | [diff] [blame] | 48 | ramstage-y += ../common/spi.c |
huang lin | ee28c86 | 2015-01-26 21:04:55 +0800 | [diff] [blame] | 49 | ramstage-y += sdram.c |
Shunqian Zheng | 015ae11 | 2016-04-20 20:35:09 +0800 | [diff] [blame] | 50 | ramstage-y += ../common/gpio.c |
huang lin | d5fb66e | 2014-08-26 18:22:08 +0800 | [diff] [blame] | 51 | ramstage-y += gpio.c |
Vadim Bendebury | 0a36022 | 2016-03-28 22:57:26 -0700 | [diff] [blame] | 52 | ramstage-y += ../common/rk808.c |
Lin Huang | 6d6b129 | 2016-03-23 19:35:46 +0800 | [diff] [blame] | 53 | ramstage-y += ../common/pwm.c |
Shunqian Zheng | fb53329 | 2016-05-02 21:38:00 +0800 | [diff] [blame] | 54 | ramstage-y += ../common/vop.c |
Lin Huang | b9a7877 | 2016-04-25 18:50:55 +0800 | [diff] [blame] | 55 | ramstage-y += ../common/edp.c |
Yakir Yang | 68f42be | 2015-04-29 10:08:12 -0500 | [diff] [blame] | 56 | ramstage-y += hdmi.c |
huang lin | 40f558e | 2014-09-19 14:51:52 +0800 | [diff] [blame] | 57 | ramstage-y += display.c |
Nico Huber | 755db95 | 2018-11-11 01:42:17 +0100 | [diff] [blame] | 58 | ramstage-y += ../common/uart.c |
huang lin | 817e455 | 2014-08-26 17:31:28 +0800 | [diff] [blame] | 59 | |
Vadim Bendebury | 0a36022 | 2016-03-28 22:57:26 -0700 | [diff] [blame] | 60 | CPPFLAGS_common += -Isrc/soc/rockchip/rk3288/include |
61 | CPPFLAGS_common += -Isrc/soc/rockchip/common/include | ||||
Julius Werner | 7a453eb | 2014-10-20 13:14:55 -0700 | [diff] [blame] | 62 | |
huang lin | 817e455 | 2014-08-26 17:31:28 +0800 | [diff] [blame] | 63 | $(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin |
64 | @printf "Generating: $(subst $(obj)/,,$(@))\n" | ||||
Stefan Reinauer | 4ab5ce1 | 2020-06-25 11:24:30 -0700 | [diff] [blame] | 65 | $(Q)mkdir -p $(dir $@) |
66 | $(Q)$(IDBTOOL) --from=$< --to=$@ --enable-align --chip=RK32 | ||||
Stefan Reinauer | aae53ab | 2015-04-27 14:03:57 -0700 | [diff] [blame] | 67 | |
68 | endif |