Browse Source

initial commit incl submodules

master
mntmn 1 year ago
commit
3f04379137
18 changed files with 148 additions and 0 deletions
  1. +20
    -0
      .gitmodules
  2. +17
    -0
      build-binary-tree.sh
  3. +11
    -0
      build.sh
  4. +8
    -0
      build_drm.sh
  5. +8
    -0
      build_libinput.sh
  6. +14
    -0
      build_mesa.sh
  7. +7
    -0
      build_xf86-input-libinput.sh
  8. +8
    -0
      build_xorgproto.sh
  9. +9
    -0
      build_xserver.sh
  10. +23
    -0
      clean.sh
  11. +1
    -0
      drm
  12. +4
    -0
      install-deps.sh
  13. +1
    -0
      libinput
  14. +1
    -0
      mesa
  15. +13
    -0
      mesa_imx_drm_winsys.patch
  16. +1
    -0
      xf86-input-libinput
  17. +1
    -0
      xorgproto
  18. +1
    -0
      xserver

+ 20
- 0
.gitmodules View File

@@ -0,0 +1,20 @@
[submodule "drm"]
path = drm
url = git://anongit.freedesktop.org/mesa/drm
[submodule "libinput"]
path = libinput
url = git://anongit.freedesktop.org/wayland/libinput
[submodule "mesa"]
path = mesa
url = https://gitlab.freedesktop.org/mesa/mesa.git
[submodule "xf86-input-libinput"]
path = xf86-input-libinput
url = https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput.git
[submodule "xorgproto"]
path = xorgproto
url = git://anongit.freedesktop.org/xorg/proto/xorgproto
[submodule "xserver"]
path = xserver
url = git://anongit.freedesktop.org/xorg/xserver



+ 17
- 0
build-binary-tree.sh View File

@@ -0,0 +1,17 @@
#!/bin/bash

set -e

mv /usr/local /usr/local_old

mkdir /usr/local

./clean.sh
./build.sh

tar cfv usr_local_tree.tar /usr/local

#rm -rf /usr/local

#mv /usr/local_old /usr/local


+ 11
- 0
build.sh View File

@@ -0,0 +1,11 @@
#!/bin/bash

figlet clean

./clean.sh

for target in drm libinput mesa xorgproto xserver xf86-input-libinput; do
figlet $target
./build_$target.sh
done


+ 8
- 0
build_drm.sh View File

@@ -0,0 +1,8 @@
#!/bin/bash
cd drm
./configure --disable-freedreno --disable-vc4 --enable-etnaviv-experimental-api --enable-install-test-programs --disable-radeon --disable-amdgpu --disable-nouveau --disable-vmwgfx --disable-intel --enable-udev
make -j4
make install
cd ..



+ 8
- 0
build_libinput.sh View File

@@ -0,0 +1,8 @@
#!/bin/sh

cd libinput
meson build -Dtests=false -Dlibwacom=false -Ddebug-gui=false -Ddocumentation=false
ninja -C build
ninja -C build install
cd ..

+ 14
- 0
build_mesa.sh View File

@@ -0,0 +1,14 @@
#!/bin/bash

cd mesa

echo "~~ if the following fails, don't worry. it means the patch is already applied or not necessary anymore ~~"
patch -sf -p1 <../mesa_*.patch

meson build -Dplatforms=x11,wayland,drm -Ddri3=true -Dgallium-drivers=swrast,etnaviv,imx -Dgbm=true -Degl=true

ninja -C build
ninja -C build install

cd ..


+ 7
- 0
build_xf86-input-libinput.sh View File

@@ -0,0 +1,7 @@
#!/bin/bash
cd xf86-input-libinput
./configure
make -j4
make install
cd ..


+ 8
- 0
build_xorgproto.sh View File

@@ -0,0 +1,8 @@
#!/bin/sh

cd xorgproto
meson build
ninja -C build
ninja -C build install
cd ..


+ 9
- 0
build_xserver.sh View File

@@ -0,0 +1,9 @@
#!/bin/sh

cd xserver
meson build -Dxorg=true -Dxwayland=true -Dglamor=true -Dxwayland_eglstream=false -Dxnest=false -Ddmx=false -Dxvfb=true -Dxwin=false -Dxephyr=false -Ddri3=true

ninja -C build
ninja -C build install
cd ..

+ 23
- 0
clean.sh View File

@@ -0,0 +1,23 @@
#!/bin/bash

set -e

cd drm && make clean
cd ..

cd mesa && rm -rf build
cd ..

cd libinput && rm -rf build
cd ..

cd xorgproto && rm -rf build
cd ..

cd xserver && rm -rf build
cd ..

cd xf86-input-libinput && make clean
cd ..



+ 1
- 0
drm

@@ -0,0 +1 @@
Subproject commit 4ec31fc31a4be909c8204164c844b4a18f098af7

+ 4
- 0
install-deps.sh View File

@@ -0,0 +1,4 @@
#!/bin/bash

apt install libudev-dev libmtdev-dev libevdev-dev libxshmfence-dev


+ 1
- 0
libinput

@@ -0,0 +1 @@
Subproject commit 059484b8e7c3dc50c90f70dfe768df39695766f0

+ 1
- 0
mesa

@@ -0,0 +1 @@
Subproject commit 9007c0ed26858cb1a40d17e1f5b477d6ed3d2db7

+ 13
- 0
mesa_imx_drm_winsys.patch View File

@@ -0,0 +1,13 @@
diff --git a/src/gallium/winsys/imx/drm/imx_drm_winsys.c b/src/gallium/winsys/imx/drm/imx_drm_winsys.c
index 4bd212503..0368f0bec 100644
--- a/src/gallium/winsys/imx/drm/imx_drm_winsys.c
+++ b/src/gallium/winsys/imx/drm/imx_drm_winsys.c
@@ -37,7 +37,7 @@ struct pipe_screen *imx_drm_screen_create(int fd)
struct renderonly ro = {
.create_for_resource = renderonly_create_kms_dumb_buffer_for_resource,
.kms_fd = fd,
- .gpu_fd = loader_open_render_node("etnaviv")
+ .gpu_fd = open("/dev/dri/renderD128",O_RDWR|O_CLOEXEC)
};
if (ro.gpu_fd < 0)

+ 1
- 0
xf86-input-libinput

@@ -0,0 +1 @@
Subproject commit c67f191d5bc1a4a130f89743a3ce35ee06c90f85

+ 1
- 0
xorgproto

@@ -0,0 +1 @@
Subproject commit af9b5f43439378efd1e12d11d487a71f42790fec

+ 1
- 0
xserver

@@ -0,0 +1 @@
Subproject commit e50c85f4ebf559a3bac4817b41074c43d4691779

Loading…
Cancel
Save