/src_install (587871feaa2073cda81b947be0343d388b05431d) (982 bytes) (mode 100755) (type blob)

#!/bin/sh

patch_wrapper()
{
	cd $(dirname "${LINUX_SRC_DIR}/$1")
	echo "Patching ${LINUX_SRC_DIR}/$1 with ${ALGA_SRC_DIR}/$1.patch"
	patch --forward --unified --reject-file=- --input="${ALGA_SRC_DIR}/$1.patch"
	patch_r=$?
	if test ${patch_r} -ne 0; then
		echo "Something went wrong when applying ${ALGA_SRC_DIR}/$1.patch"
		if test ${patch_r} -eq 1; then
			echo "patch probably already applied, proceeding"
		else
			echo "patch got something really wrong, aborting"
			exit 1
		fi
	fi
}

#=======

if test -z "$1"; then
	echo "Missing the target linux source tree"
	exit 1
fi

LINUX_SRC_DIR=$1
ALGA_SRC_DIR=${PWD}

patch_wrapper drivers/video/Kconfig

cp -R "${ALGA_SRC_DIR}/drivers/gpu/alga" "${LINUX_SRC_DIR}/drivers/gpu/"

patch_wrapper drivers/gpu/Makefile

cp -R "${ALGA_SRC_DIR}/include/alga" "${LINUX_SRC_DIR}/include/"

#=======
#shared headers with userland

patch_wrapper include/uapi/Kbuild

cp -R "${ALGA_SRC_DIR}/include/uapi/alga" "${LINUX_SRC_DIR}/include/uapi/"


Mode Type Size Ref File
100644 blob 1846 075e970fc70f1bd9c0753fad910d85cfe1b61b4e README
100644 blob 291 c74383205b7121b8ff0dd5b1f60d606b3c90e3b7 TODO
100644 blob 34520 dba13ed2ddf783ee8118c6a581dbf75305f816a3 agpl.txt
040000 tree - 9683e747ac1a5e16dc2fb5687635a596f4ac7f7b drivers
040000 tree - 24e85de15ea7e857f12c39ab0496063683ca1d16 include
100644 blob 35127 32a0ec7f0224d1b3e72cedb87243edce34d9be3e license.md
100755 blob 982 587871feaa2073cda81b947be0343d388b05431d src_install
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/sylware/linux-gpu-amd-si

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/sylware/linux-gpu-amd-si

Clone this repository using git:
git clone git://git.rocketgit.com/user/sylware/linux-gpu-amd-si

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main