CORE: suppress some warnings
[yari.git] / shared / shared.mk
blobc21558b5db2809448e893f430434fe39675e5532
1 # -----------------------------------------------------------------------
3 # Copyright 2010 Tommy Thorn - All Rights Reserved
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 # Bostom MA 02111-1307, USA; either version 2 of the License, or
9 # (at your option) any later version; incorporated herein by reference.
11 # -----------------------------------------------------------------------
13 MAKECONFIG=$(TOPDIR)/shared/tools/makeconfig.sh
14 YARISIM ?= $(TOPDIR)/shared/yarisim/yarisim
15 FIRMWARE ?= tinymon.mips
17 all: rtl/config.h rtl/icache_ram0.mif
19 rtl/config.h: $(MAKECONFIG) default.conf
20 cd rtl; ../$(MAKECONFIG) ../default.conf
22 rtl/icache_ram0.mif: tinymon.mips $(YARISIM)
23 cd rtl; ../$(YARISIM) \
24 --mif \
25 --icache-way=$(IC_LINE_INDEX_BITS) \
26 --icache-words=$(IC_WORD_INDEX_BITS) \
27 --dcache-way=$(DC_LINE_INDEX_BITS) \
28 --dcache-words=$(DC_WORD_INDEX_BITS) \
29 ../$(FIRMWARE)
31 $(YARISIM):
32 $(MAKE) -C $(TOPDIR)/shared/yarisim