make OUT_OF_TREE=y PETALINUX_BUILD=<path-to-petalinux-project>/Boot/buildThe following script allows to link the driver repo into Linux Kernel catalogue tree for an in-tree build
./prepare_repo.sh <path-to-linux-kernel-source>Before running tests for the first time, Kernel source dir must be prepared with prapare_repo.sh script. Tu run the tests use the command below:
./run_kunit.sh <path-to-linux-kernel-source>Writing to descriptors_num file is the only way to upload a configuration to the DMA storage (registers and BRAM). Therefore single_buffer_size_32 must be set up before descriptors_num. After every single_buffer_size_32 update, descriptors_num must be overwritten (even if its value hasn't changed). Successful write to descriptors_num causes running DMA, so there is no need to run it explicitly, unless it's rerun with unchanged configuration after halting. Value of packages_number is cleared on every rerun (both with descriptors_num and run interface).