Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DapCash Wallet
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
DapCash
DapCash Wallet
Commits
1f75fcb3
Commit
1f75fcb3
authored
4 years ago
by
alexandr.kravchenko
Browse files
Options
Downloads
Patches
Plain Diff
Added static build support
parent
5cd32a68
No related branches found
No related tags found
1 merge request
!11
Cellframe clone
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
prod_build/general/chroot_wrap.sh
+12
-4
12 additions, 4 deletions
prod_build/general/chroot_wrap.sh
prod_build/general/conf/publish
+1
-0
1 addition, 0 deletions
prod_build/general/conf/publish
prod_build/general/mod-handler.sh
+20
-0
20 additions, 0 deletions
prod_build/general/mod-handler.sh
with
33 additions
and
4 deletions
prod_build/general/chroot_wrap.sh
+
12
−
4
View file @
1f75fcb3
...
...
@@ -7,24 +7,32 @@ CHROOT_PREFIX="builder"
CHROOTS_PATH
=
$1
PLATFORMS
=
""
PKG_FORMAT
=
$3
SRC_PATH
=
$4
JOB
=
$5
JOB
=
$4
export
wd
=
$(
pwd
)
cd
$SRC_PATH
echo
"workdir is
$
(
p
wd
)
"
echo
"workdir is
$wd
"
.
prod_build/general/pre-build.sh
export_variables
"./prod_build/general/conf/*"
.
prod_build/general/mod-handler.sh
mod_handler
$MOD
IFS
=
' '
echo
"
$PLATFORM_CANDIDATES
"
echo
$IMPLEMENTED
for
platform
in
$PLATFORM_CANDIDATES
;
do
[[
$(
echo
$IMPLEMENTED
|
grep
$platform
)
!=
""
]]
&&
PLATFORMS
=
"
$PLATFORMS$platform
"
||
echo
"Platform
$platform
is not implemented in this project yet. Sorry"
done
echo
"Platforms are
$PLATFORMS
"
[[
$PLATFORMS
!=
""
]]
&&
PLATFORMS
=
$(
echo
$PLATFORMS
|
sed
's/ $//'
)
echo
"Platforms are
$PLATFORMS
there"
for
platform
in
$PLATFORMS
;
do
echo
"Working with
$platform
now"
PLATFORM_UPPERCASED
=
$(
echo
"
$platform
"
|
tr
'[:lower:]'
'[:upper:]'
)
ENV
=
${
PLATFORM_UPPERCASED
}
_ENV
varpack
=
$(
export
|
grep
$PLATFORM_UPPERCASED
|
awk
'{print $3}'
)
[[
$platform
==
"linux"
]]
&&
platform
=
"linux/debian"
export_variables
"./prod_build/
$platform
/conf/*"
IFS
=
' '
PKG_TYPE
=
$(
echo
$PKG_FORMAT
|
cut
-d
' '
-f1
)
...
...
This diff is collapsed.
Click to expand it.
prod_build/general/conf/publish
0 → 100644
+
1
−
0
View file @
1f75fcb3
MOD="static"
This diff is collapsed.
Click to expand it.
prod_build/general/mod-handler.sh
0 → 100755
+
20
−
0
View file @
1f75fcb3
mod_handler
()
{
MODLIST
=
$1
IFS
=
' '
for
mod
in
$MODLIST
;
do
case
$mod
in
"blank"
)
sed
-ibak
"s/^#DAP_BLANK/DAP_BLANK/"
config.pri
||
sed
-ibak
"s/^DAP_BLANK/#DAP_BLANK/"
config.pri
# For toggling blank mode in general scripts.
;;
"static"
)
[[
$(
echo
"
$PLATFORM_CANDIDATES
"
|
grep
"linux"
)
!=
""
]]
&&
sed
-ibak
"/static/s/^#unix/unix/"
config.pri
&&
[
!
-z
"ICU_LINUX_PATH"
]
&&
sed
-ibak
"s!ICU_LINUX_PATH!
$ICU_LINUX_PATH
!"
config.pri
&&
\
PLATFORM_CANDIDATES
=
$(
echo
$PLATFORM_CANDIDATES
|
sed
"s/linux
\/
[a-z]
\+
\?
//g"
|
sed
"s/
$/
linux/"
|
sed
"s/^ //"
)
||
sed
-ibak
"/static/s/^unix/#unix/"
config.pri
#For toggling static mode
;;
*
)
echo
"No handling required for mod
$mod
. Proceeding"
;;
esac
done
IFS
=
'\n'
}
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