Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) # Generic config for a machine
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) # Name your machine (the DNS name, what you ssh to)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) MACHINE = foo
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) # BOX can be different than foo, if the machine BOX has
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) # multiple partitions with different systems installed. For example,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) # you may have a i386 and x86_64 installation on a test box.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) # If this is the case, MACHINE defines the way to connect to the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) # machine, which may be different between which system the machine
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) # is booting into. BOX is used for the scripts to reboot and power cycle
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) # the machine, where it does not matter which system the machine boots into.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #BOX := bar
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) # Define a way to read the console
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) CONSOLE = stty -F /dev/ttyS0 115200 parodd; cat /dev/ttyS0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) # The include files will set up the type of test to run. Just set TEST to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) # which test you want to run.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) # TESTS = patchcheck, randconfig, boot, test, config-bisect, bisect, min-config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) # See the include/*.conf files that define these tests
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) TEST := patchcheck
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) # Some tests may have more than one test to run. Define MULTI := 1 to run
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) # the extra tests.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) MULTI := 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) # In case you want to differentiate which type of system you are testing
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) BITS := 64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) # REBOOT = none, error, fail, empty
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #  See include/defaults.conf
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) REBOOT := empty
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) # The defaults file will set up various settings that can be used by all
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) # machine configs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) INCLUDE include/defaults.conf
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) # In case you need to add a patch for a bisect or something
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #PRE_BUILD = patch -p1 < ${THIS_DIR}/fix.patch
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) # Reset the repo after the build and remove all 'test' modules from the target
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) # Notice that DO_POST_BUILD is a variable (defined by ':=') and POST_BUILD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) # is the option (defined by '=')
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) DO_POST_BUILD := git reset --hard
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) POST_BUILD = ${SSH} 'rm -rf /lib/modules/*-test*'; ${DO_POST_BUILD}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) # The following files each handle a different test case.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) # Having them included allows you to set up more than one machine and share
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) # the same tests.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) INCLUDE include/patchcheck.conf
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) INCLUDE include/tests.conf
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) INCLUDE include/bisect.conf
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) INCLUDE include/min-config.conf
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62)