2018-04-19 16:23:54 +02:00
|
|
|
# This file is part of the coreboot project.
|
|
|
|
#
|
|
|
|
# Copyright (C) 2018 Jonathan Neuschäfer
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; version 2 of the License.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SOC_SIFIVE_FU540),y)
|
|
|
|
|
|
|
|
bootblock-y += uart.c
|
2018-08-28 10:34:29 +02:00
|
|
|
bootblock-y += mtime.c
|
2018-04-19 16:23:54 +02:00
|
|
|
bootblock-y += media.c
|
|
|
|
bootblock-y += bootblock.c
|
|
|
|
|
|
|
|
romstage-y += uart.c
|
|
|
|
romstage-y += media.c
|
2018-07-07 13:59:30 +02:00
|
|
|
romstage-y += sdram.c
|
2018-04-19 16:23:54 +02:00
|
|
|
|
|
|
|
ramstage-y += uart.c
|
|
|
|
ramstage-y += media.c
|
2018-07-07 13:59:30 +02:00
|
|
|
ramstage-y += sdram.c
|
2018-04-19 16:23:54 +02:00
|
|
|
ramstage-y += cbmem.c
|
|
|
|
|
|
|
|
CPPFLAGS_common += -Isrc/soc/sifive/fu540/include
|
|
|
|
|
|
|
|
$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
|
|
|
|
@printf " GPT $(notdir $(@))\n"
|
|
|
|
@util/riscv/sifive-gpt.py $< $@
|
|
|
|
|
|
|
|
endif
|