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 |
| 24 | bootblock-y += timer.c |
| 25 | bootblock-y += monotonic_timer.c |
| 26 | bootblock-y += media.c |
| 27 | ifeq ($(CONFIG_BOOTBLOCK_CONSOLE),y) |
| 28 | bootblock-$(CONFIG_DRIVERS_UART) += uart.c |
| 29 | endif |
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 |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 32 | |
| 33 | romstage-y += cbmem.c |
| 34 | romstage-y += timer.c |
| 35 | romstage-y += monotonic_timer.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 36 | romstage-$(CONFIG_DRIVERS_UART) += uart.c |
jinkun.hong | 503d121 | 2014-07-31 14:50:49 +0800 | [diff] [blame] | 37 | romstage-y += clock.c |
huang lin | 630c86d | 2014-08-26 17:28:46 +0800 | [diff] [blame] | 38 | romstage-y += spi.c |
huang lin | 7333e1f | 2014-07-30 10:58:37 -0700 | [diff] [blame] | 39 | romstage-y += media.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 40 | |
| 41 | ramstage-y += cbmem.c |
| 42 | ramstage-y += timer.c |
| 43 | ramstage-y += monotonic_timer.c |
jinkun.hong | 503d121 | 2014-07-31 14:50:49 +0800 | [diff] [blame] | 44 | ramstage-y += clock.c |
huang lin | 630c86d | 2014-08-26 17:28:46 +0800 | [diff] [blame] | 45 | ramstage-y += spi.c |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 46 | ramstage-y += media.c |
| 47 | ramstage-$(CONFIG_DRIVERS_UART) += uart.c |
huang lin | 817e455 | 2014-08-26 17:31:28 +0800 | [diff] [blame^] | 48 | |
| 49 | $(objcbfs)/bootblock.raw.elf: $(objcbfs)/bootblock.elf |
| 50 | cp $< $@ |
| 51 | |
| 52 | $(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin |
| 53 | @printf "Generating: $(subst $(obj)/,,$(@))\n" |
| 54 | @mkdir -p $(dir $@) |
| 55 | @$(IDBTOOL) --from=$< --to=$@ --enable-align |