1
0
mirror of https://github.com/Yours3lf/rpi-vk-driver.git synced 2024-12-03 15:24:13 +01:00
rpi-vk-driver/BUILD.md

31 lines
1.3 KiB
Markdown
Raw Normal View History

2019-12-07 16:31:00 +01:00
# How to cross compile the RPi VK Driver
### Clone compiler
git clone https://github.com/raspberrypi/tools.git
### Establish sysroot
2019-12-07 18:16:09 +01:00
rsync -avz [user]@[ipaddress]:/lib tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/lib
rsync -avz [user]@[ipaddress]:/usr/include tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/usr/include
rsync -avz [user]@[ipaddress]:/usr/lib tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/usr/lib
rsync -avz [user]@[ipaddress]:/usr/local/include tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/usr/local/include
rsync -avhe [user]@[ipaddress]:/usr/local/lib tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/usr/local/lib
2019-12-07 16:31:00 +01:00
### Clone RPi VK Driver
2019-12-07 16:45:43 +01:00
git clone https://github.com/Yours3lf/rpi-vk-driver.git
cd rpi-vk-driver
mkdir build
cd build
2019-12-07 16:31:00 +01:00
### Run CMake
2019-12-07 16:45:43 +01:00
cmake .. -DCMAKE_TOOLCHAIN_FILE=../toolchain.cmake -DCMAKE_BUILD_TYPE=Release
2019-12-07 16:31:00 +01:00
### Build project
2019-12-07 16:45:43 +01:00
cmake --build . --target all
2019-12-07 16:31:00 +01:00
### Deploy files
2019-12-07 16:45:43 +01:00
scp librpi-vk-driver.so [user]@[ipaddress]:/home/[user]/librpi-vk-driver.so
scp rpi-vk-driver.json [user]@[ipaddress]:/home/[user]/rpi-vk-driver.json
scp install.sh [user]@[ipaddress]:/home/[user]/install.sh
2019-12-07 16:31:00 +01:00
### Run install.sh on your RPi