2 ## This file is part of the coreboot project.
4 ## Copyright 2014 Rockchip Inc.
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.
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.
16 ifeq ($(CONFIG_SOC_ROCKCHIP_RK3288),y)
18 IDBTOOL = util/rockchip/make_idb.py
20 bootblock-y += bootblock.c
21 bootblock-y += cbmem.c
22 ifeq ($(CONFIG_BOOTBLOCK_CONSOLE),y)
23 bootblock-$(CONFIG_DRIVERS_UART) += uart.c
25 bootblock-y += timer.c
26 bootblock-y += clock.c
30 bootblock-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
31 bootblock-y += rk808.c
35 verstage-$(CONFIG_DRIVERS_UART) += uart.c
38 libverstage-y += crypto.c
40 verstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
44 romstage-$(CONFIG_DRIVERS_UART) += uart.c
46 romstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
59 ramstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
69 ramstage-y += display.c
70 ramstage-$(CONFIG_DRIVERS_UART) += uart.c
72 CPPFLAGS_common += -Isrc/soc/rockchip/rk3288/include/
74 $(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
75 @printf "Generating: $(subst $(obj)/,,$(@))\n"
77 @$(IDBTOOL) --from=$< --to=$@ --enable-align