Daisuke Nojiri | a6712f3 | 2015-01-23 10:06:19 -0800 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the coreboot project. |
| 3 | ## |
Daisuke Nojiri | c047b10 | 2015-01-23 10:02:24 -0800 | [diff] [blame] | 4 | ## Copyright 2015 Google Inc. |
Daisuke Nojiri | a6712f3 | 2015-01-23 10:06:19 -0800 | [diff] [blame] | 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 | ## |
Daisuke Nojiri | a6712f3 | 2015-01-23 10:06:19 -0800 | [diff] [blame] | 15 | |
Stefan Reinauer | aae53ab | 2015-04-27 14:03:57 -0700 | [diff] [blame] | 16 | ifeq ($(CONFIG_SOC_BROADCOM_CYGNUS),y) |
| 17 | |
Daisuke Nojiri | a6712f3 | 2015-01-23 10:06:19 -0800 | [diff] [blame] | 18 | bootblock-y += bootblock.c |
| 19 | bootblock-y += cbmem.c |
| 20 | bootblock-y += i2c.c |
Daisuke Nojiri | fcfd989 | 2015-02-04 17:23:53 -0800 | [diff] [blame] | 21 | bootblock-y += timer.c |
Corneliu Doban | 189bec5 | 2015-04-10 15:51:55 -0700 | [diff] [blame] | 22 | bootblock-y += tz.c |
Corneliu Doban | bcdbdc6 | 2015-04-02 16:19:18 -0700 | [diff] [blame] | 23 | bootblock-y += hw_init.c |
Daisuke Nojiri | a6712f3 | 2015-01-23 10:06:19 -0800 | [diff] [blame] | 24 | bootblock-$(CONFIG_SPI_FLASH) += spi.c |
Daisuke Nojiri | c047b10 | 2015-01-23 10:02:24 -0800 | [diff] [blame] | 25 | ifeq ($(CONFIG_BOOTBLOCK_CONSOLE),y) |
| 26 | bootblock-$(CONFIG_DRIVERS_UART) += ns16550.c |
| 27 | endif |
Daisuke Nojiri | a6712f3 | 2015-01-23 10:06:19 -0800 | [diff] [blame] | 28 | |
| 29 | verstage-y += i2c.c |
Daisuke Nojiri | fcfd989 | 2015-02-04 17:23:53 -0800 | [diff] [blame] | 30 | verstage-y += timer.c |
Daisuke Nojiri | a6712f3 | 2015-01-23 10:06:19 -0800 | [diff] [blame] | 31 | verstage-$(CONFIG_SPI_FLASH) += spi.c |
Daisuke Nojiri | c047b10 | 2015-01-23 10:02:24 -0800 | [diff] [blame] | 32 | verstage-$(CONFIG_DRIVERS_UART) += ns16550.c |
Daisuke Nojiri | a6712f3 | 2015-01-23 10:06:19 -0800 | [diff] [blame] | 33 | |
| 34 | romstage-y += cbmem.c |
| 35 | romstage-y += i2c.c |
Daisuke Nojiri | fcfd989 | 2015-02-04 17:23:53 -0800 | [diff] [blame] | 36 | romstage-y += timer.c |
Daisuke Nojiri | a6712f3 | 2015-01-23 10:06:19 -0800 | [diff] [blame] | 37 | romstage-y += romstage.c |
| 38 | romstage-y += sdram.c |
| 39 | romstage-$(CONFIG_SPI_FLASH) += spi.c |
Daisuke Nojiri | c047b10 | 2015-01-23 10:02:24 -0800 | [diff] [blame] | 40 | romstage-$(CONFIG_DRIVERS_UART) += ns16550.c |
Icarus Chau | d5f551a | 2015-02-13 15:16:37 -0800 | [diff] [blame] | 41 | romstage-y += ddr_init.c |
| 42 | romstage-y += ddr_init_table.c |
| 43 | romstage-y += shmoo_and28.c |
| 44 | romstage-y += phy_reg_access.c |
| 45 | romstage-y += ydc_ddr_bist.c |
| 46 | romstage-y += timer.c |
Icarus Chau | 9855895 | 2015-03-03 19:36:03 -0800 | [diff] [blame] | 47 | romstage-y += gpio.c |
| 48 | romstage-y += iomux.c |
Daisuke Nojiri | a6712f3 | 2015-01-23 10:06:19 -0800 | [diff] [blame] | 49 | |
| 50 | ramstage-y += cbmem.c |
| 51 | ramstage-y += i2c.c |
Daisuke Nojiri | 99d3956 | 2015-03-02 14:38:37 -0800 | [diff] [blame] | 52 | ramstage-y += sdram.c |
| 53 | ramstage-y += soc.c |
Daisuke Nojiri | fcfd989 | 2015-02-04 17:23:53 -0800 | [diff] [blame] | 54 | ramstage-y += timer.c |
Daisuke Nojiri | a6712f3 | 2015-01-23 10:06:19 -0800 | [diff] [blame] | 55 | ramstage-$(CONFIG_SPI_FLASH) += spi.c |
Daisuke Nojiri | c047b10 | 2015-01-23 10:02:24 -0800 | [diff] [blame] | 56 | ramstage-$(CONFIG_DRIVERS_UART) += ns16550.c |
Daisuke Nojiri | 4e2e8ee | 2015-02-25 17:39:42 -0800 | [diff] [blame] | 57 | ramstage-y += usb.c |
Daisuke Nojiri | a6712f3 | 2015-01-23 10:06:19 -0800 | [diff] [blame] | 58 | |
| 59 | CPPFLAGS_common += -Isrc/soc/broadcom/cygnus/include/ |
| 60 | |
Daisuke Nojiri | e1741c5 | 2015-02-09 18:15:17 -0800 | [diff] [blame] | 61 | ifneq ($(V),1) |
| 62 | redirect := > /dev/null |
| 63 | endif |
| 64 | |
| 65 | # Options used in the command line: |
| 66 | # -out: path of the output file |
| 67 | # -config: path to the file containing unauth header |
| 68 | # -hmac: path to the file containing hmac for sha256 |
| 69 | # -bl: boot image file, ie. input file |
| 70 | # |
| 71 | # Authenticated header parameters: |
| 72 | # |
| 73 | # SBIConfiguration /* Indicates SBI config */ |
| 74 | # SYMMETRIC 0x0040 |
| 75 | # |
| 76 | # CustomerID; /* Customer ID */ |
| 77 | # TYPE bits [31-28] |
| 78 | # PRODUCTION 0x6 |
| 79 | # DEVELOPMENT 0x9 |
| 80 | # CUSTOMER_ID bits [27-0] |
| 81 | # |
| 82 | # ProductID; /* Product ID */ |
| 83 | # |
| 84 | # CustomerRevisionID; /* Customer Revision ID */ |
| 85 | # |
| 86 | # SBIUsage /* Boot Image Usage */ |
| 87 | # NONE 0 /* All purposes */ |
| 88 | # SLEEP 1 |
| 89 | # DEEP_SLEEP 2 |
| 90 | # EXCEPTION 4 |
Aaron Durbin | d972f78 | 2015-09-17 17:02:53 -0500 | [diff] [blame] | 91 | $(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin \ |
Daisuke Nojiri | e1741c5 | 2015-02-09 18:15:17 -0800 | [diff] [blame] | 92 | $(objutil)/broadcom/secimage/secimage \ |
| 93 | util/broadcom/unauth.cfg \ |
| 94 | util/broadcom/khmacsha256 |
| 95 | @printf " SIGN $(subst $(obj)/,,$(@))\n" |
| 96 | $(objutil)/broadcom/secimage/secimage -out $@ \ |
| 97 | -config util/broadcom/unauth.cfg \ |
| 98 | -hmac util/broadcom/khmacsha256 -bl $< |
Stefan Reinauer | aae53ab | 2015-04-27 14:03:57 -0700 | [diff] [blame] | 99 | |
| 100 | endif |