Commit 7bc491de authored by Federico Vaga's avatar Federico Vaga

Merge branch 'release/v4.0.0.beta11'

parents a162c674 92335dd9
......@@ -28,7 +28,7 @@ make -C software/lib EXTRACFLAGS="$RPM_OPT_FLAGS"
make -C software/tools EXTRACFLAGS="$RPM_OPT_FLAGS"
%install
make -C software/tools DESTDIR=%{buildroot}/usr/ install
make -C software/tools BINDESTDIR=%{buildroot}/%{_bindir} install
%files
%license LICENSES/GPL-3.0-or-later.txt
......
......@@ -26,3 +26,6 @@ includes:
Optionally, the mockturtle-project-creator can generate a git repository
with some initial commits. This will give the possibility to rollback to
the skeleton whenever you want.
The tools will also create a basic ``trtl-memory.ld`` linker script that
you should modify to reflect your target CPU.
......@@ -9,9 +9,9 @@ clean:
install: all
install -d $(INCLUDEDESTDIR)/mockturtle
install -D mockturtle/*.h $(INCLUDEDESTDIR)/mockturtle
install -m 0644 mockturtle/*.h $(INCLUDEDESTDIR)/mockturtle
install -d $(INCLUDEDESTDIR)/mockturtle/hw
install -D mockturtle/hw/*.h $(INCLUDEDESTDIR)/mockturtle/hw
install -m 0644 mockturtle/hw/*.h $(INCLUDEDESTDIR)/mockturtle/hw
uninstall:
rm -f $(INCLUDEDESTDIR)/mockturtle/hw/*
......
......@@ -50,8 +50,8 @@ clean:
install: $(LIB) $(LIBS_XYZ)
install -d $(DESTLIBDIR)
install -D $(LIB) $(DESTLIBDIR)
install -D $(LIBS_XYZ) $(DESTLIBDIR)
install -m 0644 $(LIB) $(DESTLIBDIR)
install -m 0755 $(LIBS_XYZ) $(DESTLIBDIR)
test -e $(DESTLIBDIR)/$(LIBS) || ln -s $(LIBS_XYZ) $(DESTLIBDIR)/$(LIBS)
uninstall:
......
......@@ -7,7 +7,8 @@
REPO_PARENT ?= ../..
-include $(REPO_PARENT)/parent_common.mk
DESTDIR ?= /usr/local
PREFIX ?= /usr/local
BINDESTDIR ?= $(PREFIX)/bin
TRTL ?= ../..
TRTL_SW = $(TRTL)/software
......@@ -33,12 +34,12 @@ PROGS += mockturtle-gdbserver
all: $(PROGS)
install:
install -d $(DESTDIR)/bin
install -D $(PROGS) $(DESTDIR)/bin
install -d $(BINDESTDIR)
install -m 0755 $(PROGS) $(BINDESTDIR)
uninstall:
rm -f $(addprefix $(DESTDIR)/bin/,$(PROGS))
rmdir --ignore-fail-on-non-empty $(DESTDIR)/bin
rm -f $(addprefix $(BINDESTDIR)/,$(PROGS))
rmdir --ignore-fail-on-non-empty $(BINDESTDIR)
%: %.c $(TRTL_SW)/lib/libmockturtle.a
$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LDLIBS)
......
MEMORY
{
ram : ORIGIN = 0x00000000, LENGTH = 2048
stack : ORIGIN = 0x00000780, LENGTH = 128
smem : ORIGIN = 0x40200000, LENGTH = 2048
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment