mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-23 11:35:19 +01:00
Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader
This commit is contained in:
commit
e823a1ca44
32
buildme
32
buildme
@ -13,11 +13,22 @@
|
|||||||
|
|
||||||
cd "$(dirname $0)"
|
cd "$(dirname $0)"
|
||||||
declare -r CLOVERROOT="$PWD"
|
declare -r CLOVERROOT="$PWD"
|
||||||
declare -r MYTOOLCHAIN=${1:-XCODE8}
|
MYTOOLCHAIN=${1:-GCC53}
|
||||||
|
|
||||||
TOOLCHAIN_DIR=${TOOLCHAIN_DIR:-$(dirname $CLOVERROOT)/opt/local}
|
TOOLCHAIN_DIR=${TOOLCHAIN_DIR:-$(dirname $CLOVERROOT)/opt/local}
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
|
checkToolchain() {
|
||||||
|
local GCC53_BIN="$TOOLCHAIN_DIR/cross/bin/x86_64-clover-linux-gnu-gcc"
|
||||||
|
|
||||||
|
# in Linux ebuild.sh force to use the CGG toolchain
|
||||||
|
if [[ "$(uname)" == Darwin ]]; then
|
||||||
|
if [[ $MYTOOLCHAIN == GCC* ]] && [[ ! -x "${GCC53_BIN}" ]]; then
|
||||||
|
MYTOOLCHAIN=XCODE8
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
pathmunge() {
|
pathmunge() {
|
||||||
if [[ ! $PATH =~ (^|:)$1(:|$) ]]; then
|
if [[ ! $PATH =~ (^|:)$1(:|$) ]]; then
|
||||||
if [[ "${2:-}" = "after" ]]; then
|
if [[ "${2:-}" = "after" ]]; then
|
||||||
@ -64,15 +75,11 @@ export DIR_LOGS=${DIR_LOGS:-$DIR_TOOLS/logs}
|
|||||||
}
|
}
|
||||||
|
|
||||||
checkTools() {
|
checkTools() {
|
||||||
if [[ "$(uname)" == Darwin && $MYTOOLCHAIN != GCC* ]]; then
|
if [[ "$MYTOOLCHAIN" == XCODE* ]]; then
|
||||||
checkXCODE
|
checkXCODE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exportPaths
|
exportPaths
|
||||||
|
|
||||||
if [[ "$(uname)" == Darwin ]]; then
|
|
||||||
checkGETTEXT
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
updateClover() {
|
updateClover() {
|
||||||
@ -149,9 +156,15 @@ echo "[BUILD CLOVER TEST]"
|
|||||||
}
|
}
|
||||||
|
|
||||||
buildPkg() {
|
buildPkg() {
|
||||||
cd "${CLOVERROOT}"/CloverPackage
|
if [[ "$(uname)" == Darwin ]]; then
|
||||||
echo "[BUILD PKG]"
|
cd "${CLOVERROOT}"/CloverPackage
|
||||||
make pkg
|
echo "[BUILD PKG]"
|
||||||
|
checkXCODE
|
||||||
|
checkGETTEXT
|
||||||
|
make pkg
|
||||||
|
else
|
||||||
|
echo && echo "can't build pkg on a non Darwin OS!"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
buildIso() {
|
buildIso() {
|
||||||
@ -281,6 +294,7 @@ menu
|
|||||||
|
|
||||||
# Main
|
# Main
|
||||||
set -e
|
set -e
|
||||||
|
checkToolchain
|
||||||
if [[ "$2" == travis ]]; then
|
if [[ "$2" == travis ]]; then
|
||||||
buildClover
|
buildClover
|
||||||
buildPkg
|
buildPkg
|
||||||
|
Loading…
Reference in New Issue
Block a user