check out specific version of yosys needed for ls180 build
[dev-env-setup.git] / lsoc-mesa-dev-env-setup
1 #!/bin/bash
2 mkdir -p ~/opt/lsoc_mesa
3 cd ~/opt
4 git clone https://gitlab.freedesktop.org/mesa/drm.git
5 cd drm
6 mkdir build && cd build
7 meson -Dbuildtype=release -Dprefix=/home/$USER/opt/lsoc_mesa ..
8 ninja install
9 export PKG_CONFIG_PATH=~/opt/lsoc_mesa/lib/x86_64-linux-gnu/pkgconfig/
10 export VK_ICD_FILENAMES=/home/$USER/opt/lsoc_mesa/share/vulkan/icd.d/libresoc_icd.x86_64.json
11 export VK_LOADER_DEBUG=warn
12 export LIBRESOC_TRACE=1
13 cd ~/opt
14 git clone https://git.libre-soc.org/git/mesa.git
15 cd mesa
16 git pull --rebase origin libresoc_dev
17 git checkout -b libresoc_dev
18 mkdir build && cd build
19 meson -Dbuildtype=debug -Dprefix=/home/$USER/opt/lsoc_mesa -Dvulkan-drivers=libre-soc ..
20 ninja install