mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-05-16 10:10:04 +00:00
Tests all supposed-to-be-working devices (read - has a defconfig) for compilation errors. No arm devices have defconfigs so it hardcodes the arm64 compiler for now.
29 lines
560 B
Bash
Executable File
29 lines
560 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# CI calls this script from the project root, as such we don't really
|
|
# need to care about changing the directory
|
|
#
|
|
|
|
set -e
|
|
|
|
devices=()
|
|
procs=$(nproc --all)
|
|
makeargs="CROSS_COMPILE=aarch64-linux-gnu- -j$procs"
|
|
|
|
echo "Using $procs cores for build."
|
|
|
|
# Get all available device codenames
|
|
for config in configs/*; do
|
|
split=(${config//[\/_]/ })
|
|
devices+=("${split[1]}")
|
|
done
|
|
|
|
# And... build.
|
|
for device in "${devices[@]}"; do
|
|
make distclean $makeargs
|
|
make "${device}_defconfig" $makeargs
|
|
make $makeargs
|
|
done
|
|
|
|
echo "All done, glhf!"
|