Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advLigoRTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CDS
software
advLigoRTS
Commits
b40d471f
Commit
b40d471f
authored
2 years ago
by
Ezekiel Dohmen
Browse files
Options
Downloads
Patches
Plain Diff
Adding check, so we only collect git info if the SRC dir is a cloned repo
parent
a2fe42ac
No related branches found
Branches containing commit
No related tags found
2 merge requests
!439
RCG 5.0 release fro deb 10
,
!399
Adding check, so we only collect git info if the SRC dir is a cloned repo
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile.in
+4
-0
4 additions, 0 deletions
Makefile.in
with
4 additions
and
0 deletions
Makefile.in
+
4
−
0
View file @
b40d471f
...
...
@@ -9,6 +9,7 @@ models_dir:= $(bld_dir)/models
bld_utils_dir
:=
$(
bld_dir
)
/utils
linux_version
:=
'@linux_version@'
VPATH
=
$(
srcdir
)
IS_RCG_SRC_GIT_REPO
:=
$(
shell
(
cd
$(
srcdir
)
&&
git rev-parse
--is-inside-work-tree
)
)
prefix
=
@prefix@
exec_prefix
=
@exec_prefix@
...
...
@@ -29,6 +30,7 @@ RELEASEFLAGS=-DNDEBUG -DNPROBE -g -O5
DEVFLAGS
=
@DEVFLAGS@
NUM_BUILD_THREDS
?=
1
define
DIE
(tail
$(bld_log);
cat
$(err_log)
&&
/bin/false)
endef
...
...
@@ -99,8 +101,10 @@ endif
@
#Save build config and source files for traceability
@/bin/mkdir
-p
$(bld_info_dir)
@echo
$(srcdir)
>
$(bld_info_dir)/rcg_location.txt
ifeq
(true,$(IS_RCG_SRC_GIT_REPO))
#Only capture git info if our RCG_SRC is a git repo
@(cd
$(srcdir)
&&
git
rev-parse
HEAD)
>
$(bld_info_dir)/rcg_git_hash.txt
@(cd
$(srcdir)
&&
git
--no-pager
diff)
>
$(bld_info_dir)/rcg_git_diff.txt
endif
@echo
Build
date
`date`
>
$(bld_info_dir)/build.txt
@echo
Compiled
on
`hostname`
>>
$(bld_info_dir)/build.txt
@echo
RCG_LIB_PATH
=
${
RCG_LIB_PATH
}
>>
$(
bld_info_dir
)
/build.txt
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment