mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
wip docker
This commit is contained in:
parent
74e7e992d2
commit
9b82adf362
@ -2,7 +2,8 @@
|
||||
|
||||
set -e
|
||||
|
||||
function export-vars {
|
||||
###############################################################################
|
||||
function export-vars() {
|
||||
# Validate
|
||||
if [ -z "${1}" ]; then
|
||||
echo "Use: export-vars <platform>"
|
||||
@ -15,6 +16,15 @@ function export-vars {
|
||||
export ARCH=x86_64
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
function shell() {
|
||||
export-vars $2
|
||||
shift 2
|
||||
cp /opt/${1}/build/System.map /input
|
||||
bash -l $@
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
function compile-module {
|
||||
# Validate
|
||||
if [ -z "${1}" ]; then
|
||||
@ -44,6 +54,7 @@ function compile-module {
|
||||
done < <(find /tmp/input -name \*.ko)
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
function compile-lkm {
|
||||
PLATFORM=${1}
|
||||
if [ -z "${PLATFORM}" ]; then
|
||||
@ -62,6 +73,7 @@ function compile-lkm {
|
||||
mv "/tmp/input/redpill.ko" "/output/redpill-prod.ko"
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
# function compile-drivers {
|
||||
# while read platform kver; do
|
||||
# SRC_PATH="/opt/${platform}"
|
||||
@ -85,13 +97,17 @@ function compile-lkm {
|
||||
# done </opt/platforms
|
||||
# }
|
||||
|
||||
###############################################################################
|
||||
###############################################################################
|
||||
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "Use: <command> (<params>)"
|
||||
echo "Commands: bash | shell <platform> | compile-module <platform> | compile-lkm <platform>"
|
||||
exit 1
|
||||
fi
|
||||
case $1 in
|
||||
bash) shift && bash -l $@ ;;
|
||||
shell) export-vars $2 && shift 2 && bash -l $@ ;;
|
||||
shell) shell $@ ;;
|
||||
compile-module) compile-module $2 ;;
|
||||
compile-lkm) compile-lkm $2 ;;
|
||||
# compile-drivers) compile-drivers ;;
|
||||
|
BIN
files/board/arpl/p3/addons/i915/apollolake-4.4.180.tgz
Normal file
BIN
files/board/arpl/p3/addons/i915/apollolake-4.4.180.tgz
Normal file
Binary file not shown.
Binary file not shown.
@ -2,6 +2,9 @@ version: 1
|
||||
name: i915
|
||||
description: "Intel iGPU Drivers (10th Gen)"
|
||||
available-for:
|
||||
apollolake-4.4.180:
|
||||
install-script: "install.sh"
|
||||
copy: "apollolake-4.4.180"
|
||||
geminilake-4.4.180:
|
||||
install-script: "install.sh"
|
||||
copy: "geminilake-4.4.180"
|
||||
|
Loading…
x
Reference in New Issue
Block a user