@@ -731,38 +731,38 @@ def any_libre_computer_board(self) -> bool:
731
731
@property
732
732
def any_embedded_linux (self ) -> bool :
733
733
"""Check whether the current board is any embedded Linux device."""
734
- return any (
735
- [
736
- self .any_raspberry_pi_40_pin ,
737
- self .any_raspberry_pi ,
738
- self .any_beaglebone ,
739
- self .any_orange_pi ,
740
- self .any_nanopi ,
741
- self .any_giant_board ,
742
- self .any_jetson_board ,
743
- self .any_coral_board ,
744
- self .any_odroid_40_pin ,
745
- self .khadas_vim3_40_pin ,
746
- self .any_96boards ,
747
- self .any_sifive_board ,
748
- self .any_onion_omega_board ,
749
- self .any_pine64_board ,
750
- self .any_pynq_board ,
751
- self .any_rock_pi_board ,
752
- self .any_clockwork_pi_board ,
753
- self .any_udoo_board ,
754
- self .any_asus_tinker_board ,
755
- self .any_stm32mp1 ,
756
- self .any_lubancat ,
757
- self .any_bananapi ,
758
- self .any_maaxboard ,
759
- self .any_tisk_board ,
760
- self .any_siemens_simatic_iot2000 ,
761
- self .any_lichee_riscv_board ,
762
- self .any_pcduino_board ,
763
- self .any_libre_computer_board ,
764
- ]
765
- )
734
+
735
+ def lazily_generate_conditions ():
736
+ yield self .any_raspberry_pi_40_pin
737
+ yield self .any_raspberry_pi
738
+ yield self .any_beaglebone
739
+ yield self .any_orange_pi
740
+ yield self .any_nanopi
741
+ yield self .any_giant_board
742
+ yield self .any_jetson_board
743
+ yield self .any_coral_board
744
+ yield self .any_odroid_40_pin
745
+ yield self .khadas_vim3_40_pin
746
+ yield self .any_96boards
747
+ yield self .any_sifive_board
748
+ yield self .any_onion_omega_board
749
+ yield self .any_pine64_board
750
+ yield self .any_pynq_board
751
+ yield self .any_rock_pi_board
752
+ yield self .any_clockwork_pi_board
753
+ yield self .any_udoo_board
754
+ yield self .any_asus_tinker_board
755
+ yield self .any_stm32mp1
756
+ yield self .any_lubancat
757
+ yield self .any_bananapi
758
+ yield self .any_maaxboard
759
+ yield self .any_tisk_board
760
+ yield self .any_siemens_simatic_iot2000
761
+ yield self .any_lichee_riscv_board
762
+ yield self .any_pcduino_board
763
+ yield self .any_libre_computer_board
764
+
765
+ return any ( condition for condition in lazily_generate_conditions () )
766
766
767
767
@property
768
768
def ftdi_ft232h (self ) -> bool :
0 commit comments