@@ -38,16 +38,71 @@ function do_buildroot
38
38
function do_linux
39
39
{
40
40
ASSERT git clone https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git -b linux-6.1.y --depth=1
41
+ mkdir -p linux/out
41
42
cp -f configs/linux.config linux/.config
42
43
export PATH=" $PWD /buildroot/output/host/bin:$PATH "
43
44
export CROSS_COMPILE=riscv32-buildroot-linux-gnu-
44
45
export ARCH=riscv
46
+ export INSTALL_MOD_PATH=" out"
45
47
pushd linux
46
48
ASSERT make olddefconfig
47
49
ASSERT make $PARALLEL
50
+ ASSERT make modules_install
48
51
cp -f arch/riscv/boot/Image ../Image
49
52
popd
50
53
}
51
54
55
+ function do_libepoxy
56
+ {
57
+ ASSERT git clone https://github.com/anholt/libepoxy.git
58
+ pushd libepoxy
59
+ cp ../configs/riscv-cross-file .
60
+ ASSERT meson --cross-file riscv-cross-file build/riscv
61
+ ASSERT meson compile -C build/riscv
62
+ DESTDIR=../../../libepoxy_out meson install -C build/riscv
63
+ DESTDIR=../../../buildroot/output/host/riscv32-buildroot-linux-gnu/sysroot meson install -C build/riscv
64
+ popd
65
+ }
66
+
67
+ function do_virglrenderer
68
+ {
69
+ ASSERT git clone https://gitlab.freedesktop.org/virgl/virglrenderer.git
70
+ pushd virglrenderer
71
+ cp ../configs/riscv-cross-file .
72
+ ASSERT meson --cross-file riscv-cross-file build/riscv
73
+ ASSERT meson compile -C build/riscv
74
+ DESTDIR=../../../virglrenderer_out meson install -C build/riscv
75
+ popd
76
+ }
77
+
78
+ function do_directfb
79
+ {
80
+ export PATH=$PATH :$PWD /buildroot/output/host/bin
81
+ export BUILDROOT_OUT=$PWD /buildroot/output/
82
+ mkdir -p directfb
83
+
84
+ # Build DirectFB2
85
+ ASSERT git clone https://github.com/directfb2/DirectFB2.git
86
+ pushd DirectFB2
87
+ cp ../configs/riscv-cross-file .
88
+ ASSERT meson -Ddrmkms=true --cross-file riscv-cross-file build/riscv
89
+ ASSERT meson compile -C build/riscv
90
+ DESTDIR=$BUILDROOT_OUT /host/riscv32-buildroot-linux-gnu/sysroot meson install -C build/riscv
91
+ DESTDIR=../../../directfb meson install -C build/riscv
92
+ popd
93
+
94
+ # Build DirectFB2 examples
95
+ ASSERT git clone https://github.com/directfb2/DirectFB-examples.git
96
+ pushd DirectFB-examples/
97
+ cp ../configs/riscv-cross-file .
98
+ ASSERT meson --cross-file riscv-cross-file build/riscv
99
+ ASSERT meson compile -C build/riscv
100
+ DESTDIR=../../../directfb meson install -C build/riscv
101
+ popd
102
+ }
103
+
52
104
do_buildroot && OK
53
105
do_linux && OK
106
+ do_libepoxy && OK
107
+ do_virglrenderer && OK
108
+ do_directfb && OK
0 commit comments