RADME.md + fastboot2 + build scripts.

This commit is contained in:
2022-06-14 13:23:44 +01:00
parent c1736b4b73
commit 6fc29cb1b4
3 changed files with 126 additions and 23 deletions

View File

@@ -24,12 +24,19 @@ EOF
build()
{
BUILD_PLATFORM=marlin
ENABLE_ICECC=0
JOBS=$(nproc)
TARGET=all
BUILD_MODE=dev
PAX_DEBUG=on
local BUILD_PLATFORM=marlin
local ENABLE_ICECC=0
local JOBS=$(nproc)
local TARGET=all
local BUILD_MODE=dev
local PAX_DEBUG=on
local OPTIONS=
local BUILD_ROOT=$(git rev-parse --show-toplevel)/os
if [ "$?" -ne "0" ]; then
BUILD_ROOT=$(p4 -Ztag -F %clientRoot% info)/os
fi
echo $BUILD_ROOT
# args=$(getopt fhstuec $*)
# if [ $? -ne 0 ]; then
@@ -39,11 +46,17 @@ build()
while [ $# -gt 0 ]; do
case "$1" in
unittests)
TARGET=build-tests-all
PAX_DEBUG=off
BUILD_PLATFORM=hostunittests
;;
unity|\
native)
PAX_DEBUG=off
BUILD_PLATFORM=$1
;;
reno|\
bailey|\
marlin|\
madison)
@@ -62,9 +75,19 @@ build()
addon-checksum-check|\
clean|\
clobber|\
build-tests-all|\
build-tests-ZipMountServerTest|\
build-tests-FuseServerTest|\
build-tests-PluginPackageManagemnetPluginUnitTests|\
clobber-all)
TARGET=$1
;;
build-integration-tests)
OPTIONS+="BUILD_INTEGRATION_TESTS=true"
;;
here)
BUILD_ROOT="."
;;
nopax)
PAX_DEBUG=off
;;
@@ -83,19 +106,15 @@ build()
shift
done
local GIT_ROOT=$(git rev-parse --show-toplevel)
if [ "$?" -ne "0" ]; then
GIT_ROOT=$(p4 -Ztag -F %clientRoot% info)
fi
echo $GIT_ROOT
make \
ENABLE_ICECC=$ENABLE_ICECC \
BUILD_MODE=$BUILD_MODE \
PAX_DEBUG=$PAX_DEBUG \
BUILD_PLATFORM=$BUILD_PLATFORM \
$OPTIONS \
-j $JOBS \
-C $GIT_ROOT/os $TARGET
-C $BUILD_ROOT $TARGET
#make ENABLE_ICECC=1 PAX_DEBUG=on BUILD_PLATFORM=$1 -j $(nproc) -C os all
}
###############################################################################