pmaports/non-free/sgx-ddk-um/sgx-ddk-um-s5pv210.post-install
Jonathan Bakker f247bf1e2a
non-free/sgx-ddk-um: new aport (MR 1868)
From TI, they must not be redistributed in a modified form. They
are built against GLIBC 2.29

To be functional, they need to be paired with a special build
of Mesa.  There are subpackages for each different soc and only
one soc can be installed at a time.  The Exynos S5PV210 subpackage
uses the same SGX540-120 as the ti443x blobs, but needs a binary
edit to be loaded.  Due to the license restrictions, it must be
done in a post-install script.
2021-02-23 22:10:12 +01:00

7 lines
293 B
Bash

#!/bin/sh
# special patching for s5pv210, overwriting omapdrm with exynos
printf "exynos\x00" > /tmp/exynos
dd if=/tmp/exynos of=/usr/lib/libsrv_um.so.1.17.4948957 obs=1 seek=110644 conv=notrunc
dd if=/tmp/exynos of=/usr/lib/libdbm.so.1.17.4948957 obs=1 seek=5960 conv=notrunc
rm /tmp/exynos