Commit 65b7f54b authored by Marc's avatar Marc
Browse files

added zcu102 board and improved script generator

parent a03943a8
export CURRENT_DIR=$PWD
if [ -z "$2" ]
then export par1=4
else export par1=$2
s_flag=4;
p_flag="none";
print_usage() {
printf "Usage: ./mymake program [-s <SIZE>][-p <in/out/all>]\n"
}
if [ ${1#-} = $1 ]; then
FILE=$1
shift
fi
cd ../../software/marcmod/leon3/ && make $1 && cd - > /dev/null
while getopts 'hs:p:' flag; do
case "${flag}" in
s) s_flag="${OPTARG}" ;;
p) p_flag="${OPTARG}" ;;
h) print_usage
exit 0 ;;
*) print_usage
exit 1 ;;
esac
done
if [ -z $FILE ]; then
shift $(($OPTIND-1))
FILE=$1
fi
export SIZE=$s_flag
if [ $p_flag = "in" ]; then
export P_IN=1
elif [ $p_flag = "out" ]; then
export P_OUT=1
elif [ $p_flag = "all" ]; then
export P_IN=1
export P_OUT=1
fi
cd ../../software/marcmod/leon3/ && make $FILE && cd - > /dev/null
This source diff could not be displayed because it is too large. You can view the blob instead.
make -C leon3_tests systest
# make[1]: Entering directory '/home/march/GRLIB_AI_extension/grlib/software/marcmod/leon3/leon3_tests'
cp systest.srec /home/march/GRLIB_AI_extension/grlib/designs/leon3-minimal/test.srec
# GNU Make 4.3
# Built for x86_64-pc-linux-gnu
# Copyright (C) 1988-2020 Free Software Foundation, Inc.
# License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law.
# Make data base, printed on Sat Jun 19 12:06:27 2021
# Variables
# default
PREPROCESS.S = $(CC) -E $(CPPFLAGS)
# default
COMPILE.m = $(OBJC) $(OBJCFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
# default
ARFLAGS = rv
# default
AS = as
# default
AR = ar
# makefile (from 'Makefile', line 2)
XCFLAGS = -O2 -g -msoft-float -mcpu=v8 -fno-inline
# default
OBJC = cc
# environment
CSF_EXCEPTION_PROMPT = 1
# environment
CSF_XmlOcafResource = /usr/share/opencascade/resources/XmlOcafResource
# default
LINK.S = $(CC) $(ASFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_MACH)
# environment
WINDOWID = 37779661
# environment
MMGT_CLEAR = 1
# environment
CSF_XCAFDefaults = /usr/share/opencascade/resources/StdResource
# environment
CSF_PluginDefaults = /usr/share/opencascade/resources/StdResource
# default
LINK.s = $(CC) $(ASFLAGS) $(LDFLAGS) $(TARGET_MACH)
# environment
CASROOT = /usr
# default
MAKE_COMMAND := make
# automatic
@D = $(patsubst %/,%,$(dir $@))
# default
COFLAGS =
# default
COMPILE.mod = $(M2C) $(M2FLAGS) $(MODFLAGS) $(TARGET_ARCH)
# default
.VARIABLES :=
# environment
PWD = /home/march/GRLIB_AI_extension/grlib/software/marcmod/leon3
# automatic
%D = $(patsubst %/,%,$(dir $%))
# environment
MAIL = /var/spool/mail/march
# environment
XDG_DATA_DIRS = /usr/local/share:/usr/share:/var/lib/snapd/desktop:/usr/share
# default
LINK.o = $(CC) $(LDFLAGS) $(TARGET_ARCH)
# environment
OLDPWD = /home/march/GRLIB_AI_extension/grlib/designs/leon3-minimal
# default
TEXI2DVI = texi2dvi
# automatic
^D = $(patsubst %/,%,$(dir $^))
# automatic
%F = $(notdir $%)
# environment
XDG_SESSION_PATH = /org/freedesktop/DisplayManager/Session0
# environment
CSF_ShadersDirectory = /usr/share/opencascade/resources/Shaders
# default
LEX.l = $(LEX) $(LFLAGS) -t
# environment
LANG = en_US.UTF-8
# environment
XAUTHORITY = /home/march/.Xauthority
# default
.LOADED :=
# default
.INCLUDE_DIRS = /usr/include /usr/local/include /usr/include
# default
COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
# makefile
MAKEFLAGS = pw
# default
LINK.f = $(FC) $(FFLAGS) $(LDFLAGS) $(TARGET_ARCH)
# default
TANGLE = tangle
# makefile
CURDIR := /home/march/GRLIB_AI_extension/grlib/software/marcmod/leon3/leon3_tests
# default
PREPROCESS.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -F
# automatic
*D = $(patsubst %/,%,$(dir $*))
# environment
MFLAGS = -pw
# environment
SSH_AUTH_SOCK = /tmp/ssh-XXXXXXSoR4NC/agent.636
# default
.SHELLFLAGS := -c
# default
M2C = m2c
# default
COMPILE.p = $(PC) $(PFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
# environment
CSF_MDTVTexturesDirectory = /usr/share/opencascade/resources/Textures
# default
COMPILE.cpp = $(COMPILE.cc)
# default
TEX = tex
# environment
XDG_CONFIG_DIRS = /etc/xdg
# automatic
+D = $(patsubst %/,%,$(dir $+))
# environment
XDG_SESSION_DESKTOP = xfce
# makefile (from 'Makefile', line 1)
MAKEFILE_LIST := Makefile
# default
F77FLAGS = $(FFLAGS)
# automatic
@F = $(notdir $@)
# environment
XDG_SESSION_TYPE = x11
# automatic
?D = $(patsubst %/,%,$(dir $?))
# default
COMPILE.def = $(M2C) $(M2FLAGS) $(DEFFLAGS) $(TARGET_ARCH)
# default
CTANGLE = ctangle
# environment
CSF_XSMessage = /usr/share/opencascade/resources/XSMessage
# environment
DRAWDEFAULT = /usr/share/opencascade/resources/DrawResources/DrawDefault
# environment
SESSION_MANAGER = local/marcPC:@/tmp/.ICE-unix/587,unix/marcPC:/tmp/.ICE-unix/587
# automatic
*F = $(notdir $*)
# environment
CSF_SHMessage = /usr/share/opencascade/resources/SHMessage
# environment
DBUS_SESSION_BUS_ADDRESS = unix:path=/run/user/1000/bus
# automatic
<D = $(patsubst %/,%,$(dir $<))
# default
COMPILE.C = $(COMPILE.cc)
# default
YACC.m = $(YACC) $(YFLAGS)
# makefile (from 'Makefile', line 1)
XCC = sparc-gaisler-elf-gcc
# default
LINK.C = $(LINK.cc)
# default
MAKE_HOST := x86_64-pc-linux-gnu
# default
LINK.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
# makefile
SHELL = /bin/sh
# environment
CLASSPATH = .:/usr/local/lib/antlr-4.7.1-complete.jar:
# default
MAKECMDGOALS := systest
# default
LINK.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
# environment
SHLVL = 2
# environment
CSF_TObjDefaults = /usr/share/opencascade/resources/StdResource
# environment
MAKELEVEL := 1
# default
MAKE = $(MAKE_COMMAND)
# default
FC = f77
# environment
PATH = /home/march/bin:/opt/ncc-1.0.0-gcc/bin:/home/march/.config/Xilinx/Vitis/Vivado/2020.1/bin:/home/march/GRLIB_AI_extension/gcc-sparc-marcmod/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin
# default
LINT = lint
# default
PC = pc
# default
MAKEFILES :=
# environment
MOTD_SHOWN = pam
# environment
CSF_OCCTResourcePath = /usr/share/opencascade/resources
# automatic
^F = $(notdir $^)
# default
LEX.m = $(LEX) $(LFLAGS) -t
# default
.LIBPATTERNS = lib%.so lib%.a
# default
CPP = $(CC) -E
# default
LINK.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
# default
CHECKOUT,v = +$(if $(wildcard $@),,$(CO) $(COFLAGS) $< $@)
# environment
SIZE = 4
# default
COMPILE.f = $(FC) $(FFLAGS) $(TARGET_ARCH) -c
# environment
CSF_StandardLiteDefaults = /usr/share/opencascade/resources/StdResource
# default
COMPILE.r = $(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -c
# environment
CSF_STEPDefaults = /usr/share/opencascade/resources/XSTEPResource
# default
COMPILE.S = $(CC) $(ASFLAGS) $(CPPFLAGS) $(TARGET_MACH) -c
# automatic
?F = $(notdir $?)
# default
GET = get
# default
LINK.r = $(FC) $(FFLAGS) $(RFLAGS) $(LDFLAGS) $(TARGET_ARCH)
# environment
XDG_SEAT = seat0
# environment
XDG_CURRENT_DESKTOP = XFCE
# environment
CSF_MIGRATION_TYPES = /usr/share/opencascade/resources/StdResource/MigrationSheet.txt
# environment
LS_COLORS = rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
# automatic
+F = $(notdir $+)
# environment
XDG_SEAT_PATH = /org/freedesktop/DisplayManager/Seat0
# environment
DESKTOP_SESSION = xfce
# default
MAKEINFO = makeinfo
# 'override' directive
GNUMAKEFLAGS :=
# default
PREPROCESS.r = $(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -F
# environment
CPATH = /usr/include/pccts/:
# default
LINK.m = $(OBJC) $(OBJCFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
# environment
LOGNAME = march
# default
LINK.p = $(PC) $(PFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
# environment
CSF_LANGUAGE = us
# environment
CURRENT_DIR = /home/march/GRLIB_AI_extension/grlib/designs/leon3-minimal
# default
YACC = yacc
# environment
XDG_VTNR = 7
# makefile
.DEFAULT_GOAL := systest
# default
RM = rm -f
# environment
CSF_TObjMessage = /usr/share/opencascade/resources/TObj
# default
WEAVE = weave
# environment
EDITOR = vim
# environment
DISPLAY = :0.0
# environment
GTK_MODULES = canberra-gtk-module:canberra-gtk-module
# environment
USER = march
# default
MAKE_VERSION := 4.3
# default
F77 = $(FC)
# default
CWEAVE = cweave
# environment
SSH_AGENT_PID = 637
# environment
_ = /usr/bin/make
# default
YACC.y = $(YACC) $(YFLAGS)
# default
LINK.cpp = $(LINK.cc)
# default
CO = co
# environment
XDG_RUNTIME_DIR = /run/user/1000
# environment
COLORTERM = truecolor
# default
OUTPUT_OPTION = -o $@
# default
COMPILE.s = $(AS) $(ASFLAGS) $(TARGET_MACH)
# environment
CSF_DrawPluginDefaults = /usr/share/opencascade/resources/DrawResources
# environment
CSF_IGESDefaults = /usr/share/opencascade/resources/XSTEPResource
# environment
VISUAL = vim
# environment
MAKE_TERMERR = /dev/pts/3
# environment
XDG_SESSION_CLASS = user
# environment
HOME = /home/march
# default
LEX = lex
# environment
DRAWHOME = /usr/share/opencascade/resources/DrawResources
# environment
TERM = xterm-256color
# environment
XDG_SESSION_ID = 2
# default
LINT.c = $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(TARGET_ARCH)
# default
COMPILE.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
# default
.RECIPEPREFIX :=
# automatic
<F = $(notdir $<)
# environment
GRLIB = /home/march/pd_project/grlib/
# default
SUFFIXES := .out .a .ln .o .c .cc .C .cpp .p .f .F .m .r .y .l .ym .yl .s .S .mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo .w .ch .web .sh .elc .el
# default
LD = ld
# environment
VTE_VERSION = 6203
# environment
XDG_GREETER_DATA_DIR = /var/lib/lightdm-data/march
# environment
CSF_StandardDefaults = /usr/share/opencascade/resources/StdResource
# default
.FEATURES := target-specific order-only second-expansion else-if shortest-stem undefine oneshell nocomment grouped-target extra-prereqs archives jobserver output-sync check-symlink guile load
# default
CXX = g++
# default
CC = cc
# environment
XDG_MENU_PREFIX = xfce-
# default
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
# environment
GDMSESSION = xfce
# variable set hash-table stats:
# Load=169/1024=17%, Rehash=0, Collisions=13/208=6%
# Pattern-specific Variable Values
# No pattern-specific variable values.
# Directories
# RCS: could not be stat'd.
# SCCS: could not be stat'd.
# . (device 2067, inode 53108078): 6 files, 19 impossibilities.
# 6 files, 19 impossibilities in 3 directories.
# Implicit Rules
%.out:
%.a:
%.ln:
%.o:
%: %.o
# recipe to execute (built-in):
$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.c:
%: %.c
# recipe to execute (built-in):
$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.ln: %.c
# recipe to execute (built-in):
$(LINT.c) -C$* $<
%.o: %.c
# recipe to execute (built-in):
$(COMPILE.c) $(OUTPUT_OPTION) $<
%.cc:
%: %.cc
# recipe to execute (built-in):
$(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.cc
# recipe to execute (built-in):
$(COMPILE.cc) $(OUTPUT_OPTION) $<
%.C:
%: %.C
# recipe to execute (built-in):
$(LINK.C) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.C
# recipe to execute (built-in):
$(COMPILE.C) $(OUTPUT_OPTION) $<
%.cpp:
%: %.cpp
# recipe to execute (built-in):
$(LINK.cpp) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.cpp
# recipe to execute (built-in):
$(COMPILE.cpp) $(OUTPUT_OPTION) $<
%.p:
%: %.p
# recipe to execute (built-in):
$(LINK.p) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.p
# recipe to execute (built-in):
$(COMPILE.p) $(OUTPUT_OPTION) $<
%.f:
%: %.f
# recipe to execute (built-in):
$(LINK.f) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.f
# recipe to execute (built-in):
$(COMPILE.f) $(OUTPUT_OPTION) $<
%.F:
%: %.F
# recipe to execute (built-in):
$(LINK.F) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.F
# recipe to execute (built-in):
$(COMPILE.F) $(OUTPUT_OPTION) $<
%.f: %.F
# recipe to execute (built-in):
$(PREPROCESS.F) $(OUTPUT_OPTION) $<
%.m:
%: %.m
# recipe to execute (built-in):
$(LINK.m) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.m
# recipe to execute (built-in):
$(COMPILE.m) $(OUTPUT_OPTION) $<
%.r:
%: %.r
# recipe to execute (built-in):
$(LINK.r) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.r
# recipe to execute (built-in):
$(COMPILE.r) $(OUTPUT_OPTION) $<
%.f: %.r
# recipe to execute (built-in):
$(PREPROCESS.r) $(OUTPUT_OPTION) $<
%.y:
%.ln: %.y
# recipe to execute (built-in):
$(YACC.y) $<
$(LINT.c) -C$* y.tab.c
$(RM) y.tab.c
%.c: %.y
# recipe to execute (built-in):
$(YACC.y) $<
mv -f y.tab.c $@
%.l:
%.ln: %.l
# recipe to execute (built-in):
@$(RM) $*.c
$(LEX.l) $< > $*.c
$(LINT.c) -i $*.c -o $@
$(RM) $*.c
%.c: %.l
# recipe to execute (built-in):
@$(RM) $@
$(LEX.l) $< > $@
%.r: %.l
# recipe to execute (built-in):
$(LEX.l) $< > $@
mv -f lex.yy.r $@
%.ym:
%.m: %.ym
# recipe to execute (built-in):
$(YACC.m) $<
mv -f y.tab.c $@
%.yl:
%.s:
%: %.s
# recipe to execute (built-in):
$(LINK.s) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.s
# recipe to execute (built-in):
$(COMPILE.s) -o $@ $<
%.S:
%: %.S
# recipe to execute (built-in):
$(LINK.S) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.o: %.S
# recipe to execute (built-in):
$(COMPILE.S) -o $@ $<
%.s: %.S
# recipe to execute (built-in):
$(PREPROCESS.S) $< > $@
%.mod:
%: %.mod
# recipe to execute (built-in):
$(COMPILE.mod) -o $@ -e $@ $^
%.o: %.mod
# recipe to execute (built-in):
$(COMPILE.mod) -o $@ $<
%.sym:
%.def:
%.sym: %.def
# recipe to execute (built-in):
$(COMPILE.def) -o $@ $<
%.h:
%.info:
%.dvi:
%.tex:
%.dvi: %.tex
# recipe to execute (built-in):
$(TEX) $<
%.texinfo:
%.info: %.texinfo
# recipe to execute (built-in):
$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@
%.dvi: %.texinfo
# recipe to execute (built-in):
$(TEXI2DVI) $(TEXI2DVI_FLAGS) $<
%.texi:
%.info: %.texi
# recipe to execute (built-in):
$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@
%.dvi: %.texi