Skip to content

Commit 88836d8

Browse files
bia1708nunojsa
authored andcommitted
ci: run-build.sh: Use ADI defconfigs for dtb build
Instead of using the default defconfig, use the custom ADI defconfigs for the dtb builds. Signed-off-by: bia1708 <bianca-maria.popu@analog.com>
1 parent 05ae0b1 commit 88836d8

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

ci/travis/run-build.sh

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,8 @@ build_microblaze() {
446446
build_dtb_build_test() {
447447
local exceptions_file="ci/travis/dtb_build_test_exceptions"
448448
local err=0
449-
local last_arch
449+
local defconfig
450+
local last_defconfig
450451

451452
for file in $DTS_FILES; do
452453
arch=$(echo $file | cut -d'/' -f2)
@@ -485,9 +486,30 @@ build_dtb_build_test() {
485486

486487
dtb_file=$(echo $file | sed 's/dts\//=/g' | cut -d'=' -f2 | sed 's\dts\dtb\g')
487488
arch=$(echo $file | cut -d'/' -f2)
488-
if [ "$last_arch" != "$arch" ] ; then
489-
ARCH=$arch make defconfig
490-
last_arch=$arch
489+
490+
case "$(echo ${file} | grep -Eo 'zynq|zynqmp|socfpga|versal' || echo '')" in
491+
zynq)
492+
defconfig="zynq_xcomm_adv7511_defconfig"
493+
;;
494+
zynqmp)
495+
defconfig="adi_zynqmp_defconfig"
496+
;;
497+
socfpga)
498+
defconfig="socfpga_adi_defconfig"
499+
;;
500+
versal)
501+
defconfig="adi_versal_defconfig"
502+
;;
503+
*)
504+
echo "Default defconfig will be used."
505+
defconfig="defconfig"
506+
;;
507+
esac
508+
509+
# Check if new defconfig nneds to be built
510+
if [ "$last_defconfig" != "$defconfig" ] ; then
511+
ARCH=$arch make ${defconfig}
512+
last_defconfig=$defconfig
491513
fi
492514
# XXX: hack for nios2, which doesn't have `arch/nios2/boot/dts/Makefile`
493515
# but even an empty one is fine

0 commit comments

Comments
 (0)