Commit 230e8476 authored by Olof Johansson's avatar Olof Johansson

runme.sh: Convert to bash defaults, use switch for serdes config

Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 20848b19
...@@ -20,22 +20,13 @@ BUILDROOT_VERSION=2019.05.2 ...@@ -20,22 +20,13 @@ BUILDROOT_VERSION=2019.05.2
############################################################################### ###############################################################################
# Misc # Misc
############################################################################### ###############################################################################
if [ "x$RELEASE" == "x" ]; then RELEASE=${RELEASE:-lx2160a-early-access-bsp0.7}
RELEASE=lx2160a-early-access-bsp0.7 BOOT=${BOOT:-sd}
fi BOOT_LOADER=${BOOT_LOADER:-u-boot}
if [ "x$BOOT_LOADER" == "x" ]; then DDOR_SPEED=${DDR_SPEED:-3200}
BOOT_LOADER=u-boot SERDES=${SERDES:-8_5_2}
fi UEFI_RELEASE=${UEFI_RELEASE:-RELEASE}
if [ "x$DDR_SPEED" == "x" ]; then
DDR_SPEED=3200
fi
if [ "x$SERDES" == "x" ]; then
SERDES=8_5_2
fi
if [ "x$UEFI_RELEASE" == "x" ]; then
UEFI_RELEASE=RELEASE
fi
mkdir -p build images mkdir -p build images
ROOTDIR=`pwd` ROOTDIR=`pwd`
PARALLEL=$(getconf _NPROCESSORS_ONLN) # Amount of parallel jobs for the builds PARALLEL=$(getconf _NPROCESSORS_ONLN) # Amount of parallel jobs for the builds
...@@ -46,22 +37,24 @@ export PATH=$ROOTDIR/build/toolchain/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-lin ...@@ -46,22 +37,24 @@ 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
if [ "x$SERDES" == "x" ]; then case "${SERDES}" in
echo "Please define SERDES configuration" 8_*)
exit -1 DPC=dpc-8_x_usxgmii.dtb
fi DPL=dpl-eth.8x10g.19.dtb
if [ "x${SERDES:0:3}" == "x13_" ]; then ;;
DPC=dpc-dual-100g.dtb 13_*)
DPL=dpl-eth.dual-100g.19.dtb DPC=dpc-dual-100g.dtb
fi DPL=dpl-eth.dual-100g.19.dtb
if [ "x${SERDES:0:2}" == "x8_" ]; then ;;
DPC=dpc-8_x_usxgmii.dtb 20_*)
DPL=dpl-eth.8x10g.19.dtb DPC=dpc-dual-40g.dtb
fi DPL=dpl-eth.dual-40g.19.dtb
if [ "x${SERDES:0:3}" == "x20_" ]; then ;;
DPC=dpc-dual-40g.dtb *)
DPL=dpl-eth.dual-40g.19.dtb echo "Please define SERDES configuration"
fi exit -1
;;
esac
echo "Checking all required tools are installed" echo "Checking all required tools are installed"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment