Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lx2160a_build
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
lx2160a_build
Commits
75baa400
Commit
75baa400
authored
Aug 24, 2022
by
Josua Mayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runme: gracefully continue execution if git configuration is broken
Signed-off-by:
Josua Mayer
<
josua@solid-run.com
>
parent
980b23ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
runme.sh
runme.sh
+7
-4
No files found.
runme.sh
View file @
75baa400
...
@@ -45,7 +45,7 @@ export PATH=$ROOTDIR/build/toolchain/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-lin
...
@@ -45,7 +45,7 @@ export PATH=$ROOTDIR/build/toolchain/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-lin
export
CROSS_COMPILE
=
aarch64-linux-gnu-
export
CROSS_COMPILE
=
aarch64-linux-gnu-
export
ARCH
=
arm64
export
ARCH
=
arm64
REPO_PREFIX
=
`
git log
-1
--pretty
=
format:%h
`
REPO_PREFIX
=
`
git log
-1
--pretty
=
format:%h
||
echo
unknown
`
echo
"Repository prefix for images is
$REPO_PREFIX
"
echo
"Repository prefix for images is
$REPO_PREFIX
"
case
"
${
SERDES
}
"
in
case
"
${
SERDES
}
"
in
...
@@ -150,10 +150,13 @@ done
...
@@ -150,10 +150,13 @@ done
set
-e
set
-e
# Check if git is configured
# Check if git is configured
GIT_CONF
=
`
git config user.name
`
GIT_CONF
=
`
git config user.name
||
true
`
if
[
"x
$GIT_CONF
"
==
"x"
]
;
then
if
[
"x
$GIT_CONF
"
==
"x"
]
;
then
echo
"git is not configured. please configure git username and email first"
echo
"git is not configured! using fake email and username ..."
exit
-1
export
GIT_AUTHOR_NAME
=
"SolidRun lx2160a_build Script"
export
GIT_AUTHOR_EMAIL
=
"support@solid-run.com"
export
GIT_COMMITTER_NAME
=
"
${
GIT_AUTHOR_NAME
}
"
export
GIT_COMMITTER_EMAIL
=
"
${
GIT_AUTHOR_EMAIL
}
"
fi
fi
if
[[
!
-d
$ROOTDIR
/build/toolchain
]]
;
then
if
[[
!
-d
$ROOTDIR
/build/toolchain
]]
;
then
...
...
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