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

Merge remote-tracking branch 'origin/master'

This commit is contained in:
Unknown 2019-12-07 17:31:39 +00:00
commit acbc332196

View File

@ -4,30 +4,27 @@
git clone https://github.com/raspberrypi/tools.git git clone https://github.com/raspberrypi/tools.git
### Establish sysroot ### Establish sysroot
mkdir sysroot rsync -avz [user]@[ipaddress]:/lib tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/lib
mkdir sysroot/usr rsync -avz [user]@[ipaddress]:/usr/include tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/usr/include
mkdir sysroot/usr/local rsync -avz [user]@[ipaddress]:/usr/lib tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/usr/lib
scp -r [user]@[ipaddress]:/lib sysroot/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
scp -r [user]@[ipaddress]:/usr/include sysroot/usr/include rsync -avz [user]@[ipaddress]:/usr/local/lib tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/usr/local/lib
scp -r [user]@[ipaddress]:/usr/lib sysroot/usr/lib
scp -r [user]@[ipaddress]:/usr/local/include sysroot/usr/local/include
scp -r [user]@[ipaddress]:/usr/local/lib sysroot/usr/local/lib
### Clone RPi VK Driver ### Clone RPi VK Driver
git clone https://github.com/Yours3lf/rpi-vk-driver.git git clone https://github.com/Yours3lf/rpi-vk-driver.git
cd rpi-vk-driver cd rpi-vk-driver
mkdir build mkdir build
cd build cd build
### Run CMake ### Run CMake
cmake .. -DCMAKE_TOOLCHAIN_FILE=../toolchain.cmake -DCMAKE_BUILD_TYPE=Release cmake .. -DCMAKE_TOOLCHAIN_FILE=../toolchain.cmake -DCMAKE_BUILD_TYPE=Release
### Build project ### Build project
cmake --build . --target all cmake --build . --target all
### Deploy files ### Deploy files
scp librpi-vk-driver.so [user]@[ipaddress]:/home/[user]/librpi-vk-driver.so 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 rpi-vk-driver.json [user]@[ipaddress]:/home/[user]/rpi-vk-driver.json
scp install.sh [user]@[ipaddress]:/home/[user]/install.sh scp install.sh [user]@[ipaddress]:/home/[user]/install.sh
### Run install.sh on your RPi ### Run install.sh on your RPi