File tree Expand file tree Collapse file tree 1 file changed +26
-4
lines changed Expand file tree Collapse file tree 1 file changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -446,7 +446,8 @@ build_microblaze() {
446
446
build_dtb_build_test () {
447
447
local exceptions_file=" ci/travis/dtb_build_test_exceptions"
448
448
local err=0
449
- local last_arch
449
+ local defconfig
450
+ local last_defconfig
450
451
451
452
for file in $DTS_FILES ; do
452
453
arch=$( echo $file | cut -d' /' -f2)
@@ -485,9 +486,30 @@ build_dtb_build_test() {
485
486
486
487
dtb_file=$( echo $file | sed ' s/dts\//=/g' | cut -d' =' -f2 | sed ' s\dts\dtb\g' )
487
488
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
491
513
fi
492
514
# XXX: hack for nios2, which doesn't have `arch/nios2/boot/dts/Makefile`
493
515
# but even an empty one is fine
You can’t perform that action at this time.
0 commit comments