Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
198dcd94
Commit
198dcd94
authored
Feb 02, 2021
by
longpanda
Browse files
update CI Script
parent
f26a927b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
18 deletions
+12
-18
INSTALL/all_in_one.sh
INSTALL/all_in_one.sh
+11
-16
INSTALL/docker_ci_build.sh
INSTALL/docker_ci_build.sh
+1
-2
No files found.
INSTALL/all_in_one.sh
View file @
198dcd94
#!/bin/sh
#!/bin/sh
VTOY_PATH
=
$PWD
/..
VTOY_PATH
=
$PWD
/..
LOGCON
=
$2
logci
()
{
LOG
=
$VTOY_PATH
/DOC/build.log
if
[
-n
"
$LOGCON
"
]
;
then
[
-f
$LOG
]
&&
rm
-f
$LOG
echo
$*
>
$LOGCON
fi
}
cd
$VTOY_PATH
/DOC
cd
$VTOY_PATH
/DOC
logci
"prepare_env ..."
echo
"prepare_env ..."
sh prepare_env.sh
sh prepare_env.sh
export
PATH
=
$PATH
:/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin:/opt/aarch64--uclibc--stable-2020.08-1/bin
export
PATH
=
$PATH
:/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin:/opt/aarch64--uclibc--stable-2020.08-1/bin
logci
"build grub2 ..."
echo
"build grub2 ..."
cd
$VTOY_PATH
/GRUB2
cd
$VTOY_PATH
/GRUB2
sh buildgrub.sh
||
exit
1
sh buildgrub.sh
>>
$LOG
2>&1
||
exit
1
logci
"build ipxe ..."
echo
"build ipxe ..."
cd
$VTOY_PATH
/IPXE
cd
$VTOY_PATH
/IPXE
sh buildipxe.sh
||
exit
1
sh buildipxe.sh
>>
$LOG
2>&1
||
exit
1
logci
"build edk2 ..."
echo
"build edk2 ..."
cd
$VTOY_PATH
/EDK2
cd
$VTOY_PATH
/EDK2
sh buildedk.sh
||
exit
1
sh buildedk.sh
>>
$LOG
2>&1
||
exit
1
...
@@ -78,8 +74,7 @@ if [ "$1" = "CI" ]; then
...
@@ -78,8 +74,7 @@ if [ "$1" = "CI" ]; then
sed
"s/VENTOY_VERSION=.*/VENTOY_VERSION=
\"
$Ver
\"
/"
-i
./grub/grub.cfg
sed
"s/VENTOY_VERSION=.*/VENTOY_VERSION=
\"
$Ver
\"
/"
-i
./grub/grub.cfg
fi
fi
logci
"packing ventoy-
$Ver
..."
echo
"packing ventoy-
$Ver
..."
sh ventoy_pack.sh
$1
||
exit
1
sh ventoy_pack.sh
$1
>>
$LOG
2>&1
||
exit
1
logci
"==== finish ===="
echo
-e
'\n============== SUCCESS ==================\n'
echo
-e
'\n============== SUCCESS ==================\n'
INSTALL/docker_ci_build.sh
View file @
198dcd94
...
@@ -10,5 +10,4 @@ wget -q -O $VTOY_PATH/EDK2/edk2-edk2-stable201911.zip https://codeload.github.co
...
@@ -10,5 +10,4 @@ wget -q -O $VTOY_PATH/EDK2/edk2-edk2-stable201911.zip https://codeload.github.co
wget
-q
-P
/opt/ https://releases.linaro.org/components/toolchain/binaries/7.4-2019.02/aarch64-linux-gnu/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu.tar.xz
wget
-q
-P
/opt/ https://releases.linaro.org/components/toolchain/binaries/7.4-2019.02/aarch64-linux-gnu/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu.tar.xz
wget
-q
-P
/opt/ https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64/tarballs/aarch64--uclibc--stable-2020.08-1.tar.bz2
wget
-q
-P
/opt/ https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64/tarballs/aarch64--uclibc--stable-2020.08-1.tar.bz2
LOGCON
=
$(
readlink
/proc/self/fd/1
)
sh all_in_one.sh CI
sh all_in_one.sh CI
$LOGCON
>
$VTOY_PATH
/DOC/build.log 2>&1
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