How to install Hailort over aarch64 with Debian 11?

In order to install Hailort drivers over aarch64 with debian 11 bullseye (e.g. over Rockchip, Firefly ITX 3588J) follow the hailort installation manual for software requirements installation (HailoRT installation), and before installing the Hailort drivers run the following (modify the linux headers path to the relevant one):

cd /usr/src/linux-headers-5.10.160

sudo make scripts_basic

sudo make scripts_mod

once done continue with the installation.