Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Mock Turtle
Commits
14cd368d
Commit
14cd368d
authored
Oct 21, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: remove git usage when distributing sources
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
f7bc0210
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
common.mk
common.mk
+2
-2
Makefile
distribution/Makefile
+10
-1
No files found.
common.mk
View file @
14cd368d
PREFIX ?= /
GIT_VERSION
= $(shell cd $(TRTL);
git describe --always --dirty --long --tags)
VERSION:= $(shell git describe --tags --abbrev=0 | tr -d 'v')
GIT_VERSION
:= $(shell
git describe --always --dirty --long --tags)
VERSION
:= $(shell git describe --tags --abbrev=0 | tr -d 'v')
TRTL_SW := $(TRTL)/software
distribution/Makefile
View file @
14cd368d
...
...
@@ -3,9 +3,10 @@
# SPDX-FileCopyrightText: 2019 CERN
TOP_DIR
?=
$(
shell
pwd
)
/../
TRTL
?=
$(TOP_DIR)
include
$(TRTL)/common.mk
NAME
:=
mockturtle
VERSION
:=
$(
shell
git describe
--abbrev
=
0 |
tr
-d
'v'
)
DIR_NAME
:=
$(NAME)
-
$(VERSION)
KEEP_TEMP
?=
n
...
...
@@ -110,6 +111,14 @@ sources-tar:
sources-tar-replace-autogen
:
sources-tar wbgen2-headers
@
tar
-rf
$(SOURCES)
/
$(DIR_NAME)
.tar
--transform
"s,^,"
$(DIR_NAME)
"/,"
$(TRTL_SW)
/include/mockturtle/hw/mockturtle_cpu_lr.h
$(TRTL_SW)
/include/mockturtle/hw/mockturtle_cpu_csr.h
@
tar
--delete
-f
$(SOURCES)
/
$(DIR_NAME)
.tar
$(DIR_NAME)
/software/include/mockturtle/hw/Makefile
@
cp
$(TRTL)
/common.mk
$(SOURCES)
/common.mk
@
sed
-e
"s,^GIT_VERSION.*
$$
,GIT_VERSION := "
$(GIT_VERSION)
","
\
-e
"s,^VERSION.*
$$
,VERSION := "
$(VERSION)
","
\
-i
$(SOURCES)
/common.mk
@
cd
$(SOURCES)
&&
tar
--update
-f
$(SOURCES)
/
$(DIR_NAME)
.tar
\
--transform
"s,^,"
$(DIR_NAME)
"/,"
\
common.mk
@
rm
$(SOURCES)
/common.mk
sources-tar-gz
:
sources-tar sources-tar-replace-autogen
@
gzip
$(SOURCES)
/
$(DIR_NAME)
.tar
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment