Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lx2160a_build
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
lx2160a_build
Commits
230e8476
Commit
230e8476
authored
Apr 12, 2020
by
Olof Johansson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runme.sh: Convert to bash defaults, use switch for serdes config
Signed-off-by:
Olof Johansson
<
olof@lixom.net
>
parent
20848b19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
31 deletions
+24
-31
runme.sh
runme.sh
+24
-31
No files found.
runme.sh
View file @
230e8476
...
...
@@ -20,22 +20,13 @@ BUILDROOT_VERSION=2019.05.2
###############################################################################
# Misc
###############################################################################
if
[
"x
$RELEASE
"
==
"x"
]
;
then
RELEASE
=
lx2160a-early-access-bsp0.7
fi
if
[
"x
$BOOT_LOADER
"
==
"x"
]
;
then
BOOT_LOADER
=
u-boot
fi
RELEASE
=
${
RELEASE
:-
lx2160a
-early-access-bsp0.7
}
BOOT
=
${
BOOT
:-
sd
}
BOOT_LOADER
=
${
BOOT_LOADER
:-
u
-boot
}
DDOR_SPEED
=
${
DDR_SPEED
:-
3200
}
SERDES
=
${
SERDES
:-
8_5_2
}
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
ROOTDIR
=
`
pwd
`
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
export
CROSS_COMPILE
=
aarch64-linux-gnu-
export
ARCH
=
arm64
if
[
"x
$SERDES
"
==
"x"
]
;
then
echo
"Please define SERDES configuration"
exit
-1
fi
if
[
"x
${
SERDES
:0:3
}
"
==
"x13_"
]
;
then
DPC
=
dpc-dual-100g.dtb
DPL
=
dpl-eth.dual-100g.19.dtb
fi
if
[
"x
${
SERDES
:0:2
}
"
==
"x8_"
]
;
then
DPC
=
dpc-8_x_usxgmii.dtb
DPL
=
dpl-eth.8x10g.19.dtb
fi
if
[
"x
${
SERDES
:0:3
}
"
==
"x20_"
]
;
then
DPC
=
dpc-dual-40g.dtb
DPL
=
dpl-eth.dual-40g.19.dtb
fi
case
"
${
SERDES
}
"
in
8_
*
)
DPC
=
dpc-8_x_usxgmii.dtb
DPL
=
dpl-eth.8x10g.19.dtb
;;
13_
*
)
DPC
=
dpc-dual-100g.dtb
DPL
=
dpl-eth.dual-100g.19.dtb
;;
20_
*
)
DPC
=
dpc-dual-40g.dtb
DPL
=
dpl-eth.dual-40g.19.dtb
;;
*
)
echo
"Please define SERDES configuration"
exit
-1
;;
esac
echo
"Checking all required tools are installed"
...
...
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