mirror of
https://github.com/AuxXxilium/arc-modules.git
synced 2024-11-23 14:51:01 +07:00
Initial commit
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
commit
6995083455
1
.github/FUNDING.yml
vendored
Normal file
1
.github/FUNDING.yml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
github: AuxXxilium
|
264
.github/workflows/build.yml
vendored
Normal file
264
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,264 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2023 AuxXxilium <https://github.com/AuxXxilium> and Ing <https://github.com/wjz304>
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the MIT License.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
|
||||||
|
# version: [ 7.1, 7.2 ]
|
||||||
|
# platform: [ apollolake, broadwell, broadwellnk, denverton, epyc7002, geminilake, purley, r1000, v1000 ]
|
||||||
|
# exclude:
|
||||||
|
# - version: 7.1
|
||||||
|
# platform: broadwell
|
||||||
|
# include:
|
||||||
|
# - version: "7.2"
|
||||||
|
# platform: "broadwell"
|
||||||
|
|
||||||
|
name: Build Modules
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: "format %y.%-m.$i or auto"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
prerelease:
|
||||||
|
description: "pre release"
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
firmware:
|
||||||
|
description: "firmware"
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- version: 7.1
|
||||||
|
platform: apollolake
|
||||||
|
parm: "4.4.180"
|
||||||
|
- version: 7.1
|
||||||
|
platform: broadwell
|
||||||
|
parm: "4.4.180"
|
||||||
|
- version: 7.1
|
||||||
|
platform: broadwellnk
|
||||||
|
parm: "4.4.180"
|
||||||
|
- version: 7.1
|
||||||
|
platform: broadwellnkv2
|
||||||
|
parm: "4.4.180"
|
||||||
|
- version: 7.1
|
||||||
|
platform: denverton
|
||||||
|
parm: "4.4.180"
|
||||||
|
- version: 7.1
|
||||||
|
platform: epyc7002
|
||||||
|
parm: "5.10.55"
|
||||||
|
- version: 7.1
|
||||||
|
platform: geminilake
|
||||||
|
parm: "4.4.180"
|
||||||
|
- version: 7.1
|
||||||
|
platform: purley
|
||||||
|
parm: "4.4.180"
|
||||||
|
- version: 7.1
|
||||||
|
platform: r1000
|
||||||
|
parm: "4.4.180"
|
||||||
|
- version: 7.1
|
||||||
|
platform: v1000
|
||||||
|
parm: "4.4.180"
|
||||||
|
#- version: 7.1
|
||||||
|
# platform: kvmx64
|
||||||
|
# parm: "4.4.180"
|
||||||
|
|
||||||
|
- version: 7.2
|
||||||
|
platform: apollolake
|
||||||
|
parm: "4.4.302"
|
||||||
|
- version: 7.2
|
||||||
|
platform: broadwell
|
||||||
|
parm: "4.4.302"
|
||||||
|
- version: 7.2
|
||||||
|
platform: broadwellnk
|
||||||
|
parm: "4.4.302"
|
||||||
|
- version: 7.2
|
||||||
|
platform: broadwellnkv2
|
||||||
|
parm: "4.4.302"
|
||||||
|
- version: 7.2
|
||||||
|
platform: denverton
|
||||||
|
parm: "4.4.302"
|
||||||
|
- version: 7.2
|
||||||
|
platform: epyc7002
|
||||||
|
parm: "5.10.55"
|
||||||
|
- version: 7.2
|
||||||
|
platform: geminilake
|
||||||
|
parm: "4.4.302"
|
||||||
|
- version: 7.2
|
||||||
|
platform: purley
|
||||||
|
parm: "4.4.302"
|
||||||
|
- version: 7.2
|
||||||
|
platform: r1000
|
||||||
|
parm: "4.4.302"
|
||||||
|
- version: 7.2
|
||||||
|
platform: v1000
|
||||||
|
parm: "4.4.302"
|
||||||
|
#- version: 7.2
|
||||||
|
# platform: kvmx64
|
||||||
|
# parm: "4.4.302"
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@main
|
||||||
|
|
||||||
|
- name: Init Env
|
||||||
|
run: |
|
||||||
|
git config --global user.email "info@auxxxilium.tech"
|
||||||
|
git config --global user.name "AuxXxilium"
|
||||||
|
sudo timedatectl set-timezone "Europe/Berlin"
|
||||||
|
|
||||||
|
- name: Tar to Artifacts
|
||||||
|
run: |
|
||||||
|
if [ ! -d "${{ github.workspace }}/source/output" ]; then
|
||||||
|
mkdir -p "${{ github.workspace }}/source/output"
|
||||||
|
chmod a+rw -R "${{ github.workspace }}/source/output"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${{ matrix.platform }}" = "epyc7002" ]; then
|
||||||
|
MODULES_PATH="${{ github.workspace }}/modules/${{ matrix.platform }}-${{ matrix.version }}-${{ matrix.parm }}"
|
||||||
|
else
|
||||||
|
MODULES_PATH="${{ github.workspace }}/modules/${{ matrix.platform }}-${{ matrix.parm }}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "copy 3rd modules"
|
||||||
|
[ -d "${MODULES_PATH}" ] && cp -Rvf "${MODULES_PATH}/." "${{ github.workspace }}/source/output"
|
||||||
|
|
||||||
|
if [ "${{ matrix.platform }}" = "epyc7002" ]; then
|
||||||
|
tar -zcf ${{ github.workspace }}/source/${{ matrix.platform }}-${{ matrix.version }}-${{ matrix.parm }}.tgz -C ${{ github.workspace }}/source/output .
|
||||||
|
else
|
||||||
|
tar -zcf ${{ github.workspace }}/source/${{ matrix.platform }}-${{ matrix.parm }}.tgz -C ${{ github.workspace }}/source/output .
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Upload to Artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: modules-${{ matrix.version }}-${{ matrix.platform }}
|
||||||
|
path: |
|
||||||
|
${{ github.workspace }}/source/*.tgz
|
||||||
|
|
||||||
|
firmware:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@main
|
||||||
|
|
||||||
|
- name: Download from Artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
path: output
|
||||||
|
pattern: modules-*
|
||||||
|
merge-multiple: true
|
||||||
|
|
||||||
|
- name: Firmware
|
||||||
|
run: |
|
||||||
|
mkdir -p firmware
|
||||||
|
|
||||||
|
echo "copy 3rd modules"
|
||||||
|
MODULES_PATH="${{ github.workspace }}/modules/firmware"
|
||||||
|
cp -rf ${MODULES_PATH}/* firmware/
|
||||||
|
|
||||||
|
if [ "${{ inputs.firmware }}" == "true" ]; then
|
||||||
|
echo "extract all modules"
|
||||||
|
for F in ./output/*.tgz; do mkdir "${F%.tgz}" && tar -xzf "${F}" -C "${F%.tgz}"; done
|
||||||
|
|
||||||
|
echo "get firmware"
|
||||||
|
SOURCE=/tmp/linux-firmware
|
||||||
|
git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git ${SOURCE}
|
||||||
|
while read -r L; do
|
||||||
|
if [ -e "${SOURCE}/${L}" ]; then
|
||||||
|
mkdir -p "`dirname firmware/${L}`"
|
||||||
|
cp "${SOURCE}/${L}" "firmware/${L}"
|
||||||
|
else
|
||||||
|
[ -e "firmware/${L}" ] && echo "Used modules ${L}" || echo "Missing ${L}"
|
||||||
|
fi
|
||||||
|
done < <(find ./output -name \*.ko -exec sh -c '/sbin/modinfo {} | grep ^firmware' \; | awk '{print $2}')
|
||||||
|
fi
|
||||||
|
|
||||||
|
tar -zcf firmware.tgz -C firmware .
|
||||||
|
|
||||||
|
- name: Upload to Artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: modules-firmware
|
||||||
|
path: |
|
||||||
|
firmware.tgz
|
||||||
|
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: firmware
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@main
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Changelog
|
||||||
|
uses: Bullrich/generate-release-changelog@master
|
||||||
|
id: Changelog
|
||||||
|
env:
|
||||||
|
REPO: ${{ github.repository }}
|
||||||
|
|
||||||
|
- name: Init Env
|
||||||
|
run: |
|
||||||
|
git config --global user.email "info@auxxxilium.tech"
|
||||||
|
git config --global user.name "AuxXxilium"
|
||||||
|
sudo timedatectl set-timezone "Europe/Berlin"
|
||||||
|
|
||||||
|
- name: Download from Artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
path: output
|
||||||
|
pattern: modules-*
|
||||||
|
merge-multiple: true
|
||||||
|
|
||||||
|
- name: Calculate Version
|
||||||
|
run: |
|
||||||
|
# Calculate Version
|
||||||
|
VERSION=""
|
||||||
|
if [ -n "${{ inputs.version }}" ]; then
|
||||||
|
VERSION="${{ inputs.version }}"
|
||||||
|
else
|
||||||
|
LATEST_TAG="`curl -skL "https://api.github.com/repos/${{ github.repository }}/releases/latest" | jq -r ".tag_name" 2>/dev/null`"
|
||||||
|
if [[ -n "${LATEST_TAG}" && "`echo ${LATEST_TAG} | cut -d '.' -f 1,2`" = "`date +'%y.%-m.%-d'`" ]]; then # format %y.%-m.$i
|
||||||
|
VERSION="`echo ${LATEST_TAG} | awk -F '.' '{$3=$3+1}1' OFS='.'`"
|
||||||
|
else
|
||||||
|
VERSION="`date +'%y.%-m.%-d'`"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "${VERSION}" ]; then
|
||||||
|
# Modify Source File
|
||||||
|
echo "Version: ${VERSION}"
|
||||||
|
echo "${VERSION}" >VERSION
|
||||||
|
echo "${VERSION}" >"./output/VERSION"
|
||||||
|
echo "VERSION=${VERSION}" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Zip Modules
|
||||||
|
if: success() && env.VERSION != ''
|
||||||
|
run: |
|
||||||
|
zip -9 modules.zip -j output/*
|
||||||
|
|
||||||
|
- name: Release
|
||||||
|
if: success() && env.VERSION != ''
|
||||||
|
uses: ncipollo/release-action@v1
|
||||||
|
with:
|
||||||
|
tag: ${{ env.VERSION }}
|
||||||
|
prerelease: ${{ inputs.prerelease }}
|
||||||
|
allowUpdates: true
|
||||||
|
body: |
|
||||||
|
${{ steps.Changelog.outputs.changelog }}
|
||||||
|
artifacts: |
|
||||||
|
modules.zip
|
||||||
|
./output/*.tgz
|
219
.github/workflows/compile.yml
vendored
Normal file
219
.github/workflows/compile.yml
vendored
Normal file
@ -0,0 +1,219 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2023 AuxXxilium <https://github.com/AuxXxilium> and Ing <https://github.com/wjz304>
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the MIT License.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
|
||||||
|
# version: [ 7.1, 7.2 ]
|
||||||
|
# platform: [ apollolake, broadwell, broadwellnk, bromolow, denverton, epyc7002, geminilake, purley, r1000, v1000 ]
|
||||||
|
# exclude:
|
||||||
|
# - version: 7.1
|
||||||
|
# platform: broadwell
|
||||||
|
# include:
|
||||||
|
# - version: "7.2"
|
||||||
|
# platform: "broadwell"
|
||||||
|
|
||||||
|
name: Compile Modules
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: 'format %y.%-m.$i or auto'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
module:
|
||||||
|
description: 'CONFIG_MODULE=m'
|
||||||
|
reguired: false
|
||||||
|
type: string
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- version: 7.1
|
||||||
|
platform: apollolake
|
||||||
|
parm: "4.4.180"
|
||||||
|
- version: 7.1
|
||||||
|
platform: broadwell
|
||||||
|
parm: "4.4.180"
|
||||||
|
- version: 7.1
|
||||||
|
platform: broadwellnk
|
||||||
|
parm: "4.4.180"
|
||||||
|
- version: 7.1
|
||||||
|
platform: broadwellnkv2
|
||||||
|
parm: "4.4.180"
|
||||||
|
- version: 7.1
|
||||||
|
platform: denverton
|
||||||
|
parm: "4.4.180"
|
||||||
|
- version: 7.1
|
||||||
|
platform: epyc7002
|
||||||
|
parm: "5.10.55"
|
||||||
|
- version: 7.1
|
||||||
|
platform: geminilake
|
||||||
|
parm: "4.4.180"
|
||||||
|
- version: 7.1
|
||||||
|
platform: purley
|
||||||
|
parm: "4.4.180"
|
||||||
|
- version: 7.1
|
||||||
|
platform: r1000
|
||||||
|
parm: "4.4.180"
|
||||||
|
- version: 7.1
|
||||||
|
platform: v1000
|
||||||
|
parm: "4.4.180"
|
||||||
|
|
||||||
|
- version: 7.2
|
||||||
|
platform: apollolake
|
||||||
|
parm: "4.4.302"
|
||||||
|
- version: 7.2
|
||||||
|
platform: broadwell
|
||||||
|
parm: "4.4.302"
|
||||||
|
- version: 7.2
|
||||||
|
platform: broadwellnk
|
||||||
|
parm: "4.4.302"
|
||||||
|
- version: 7.2
|
||||||
|
platform: broadwellnkv2
|
||||||
|
parm: "4.4.302"
|
||||||
|
- version: 7.2
|
||||||
|
platform: denverton
|
||||||
|
parm: "4.4.302"
|
||||||
|
- version: 7.2
|
||||||
|
platform: epyc7002
|
||||||
|
parm: "5.10.55"
|
||||||
|
- version: 7.2
|
||||||
|
platform: geminilake
|
||||||
|
parm: "4.4.302"
|
||||||
|
- version: 7.2
|
||||||
|
platform: purley
|
||||||
|
parm: "4.4.302"
|
||||||
|
- version: 7.2
|
||||||
|
platform: r1000
|
||||||
|
parm: "4.4.302"
|
||||||
|
- version: 7.2
|
||||||
|
platform: v1000
|
||||||
|
parm: "4.4.302"
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@main
|
||||||
|
|
||||||
|
- name: Init Env
|
||||||
|
run: |
|
||||||
|
git config --global user.email "info@auxxxilium.tech"
|
||||||
|
git config --global user.name "AuxXxilium"
|
||||||
|
sudo timedatectl set-timezone "Europe/Berlin"
|
||||||
|
|
||||||
|
- name: Get EnvDeploy
|
||||||
|
run: |
|
||||||
|
ROOT_PATH=${{ github.workspace }}
|
||||||
|
|
||||||
|
git clone https://github.com/SynologyOpenSource/pkgscripts-ng.git ${ROOT_PATH}/pkgscripts-ng
|
||||||
|
cd ${ROOT_PATH}/pkgscripts-ng
|
||||||
|
git checkout DSM${{ matrix.version }}
|
||||||
|
sudo ./EnvDeploy -v ${{ matrix.version }} -l # Get Available platforms
|
||||||
|
sudo ./EnvDeploy -q -v ${{ matrix.version }} -p ${{ matrix.platform }}
|
||||||
|
|
||||||
|
#ENV
|
||||||
|
mkdir -p ${ROOT_PATH}/source
|
||||||
|
|
||||||
|
ENV_PATH=${ROOT_PATH}/build_env/ds.${{ matrix.platform }}-${{ matrix.version }}
|
||||||
|
sudo cp -al ${ROOT_PATH}/pkgscripts-ng ${ENV_PATH}/
|
||||||
|
|
||||||
|
sudo chroot ${ENV_PATH} << "EOF"
|
||||||
|
cd pkgscripts
|
||||||
|
|
||||||
|
version=${{ matrix.version }}; [ ${version:0:1} -gt 6 ] && sed -i 's/print(" ".join(kernels))/pass #&/' ProjectDepends.py
|
||||||
|
sed -i '/PLATFORM_FAMILY/a\\techo "PRODUCT=$PRODUCT" >> $file\n\techo "KSRC=$KERNEL_SEARCH_PATH" >> $file\n\techo "LINUX_SRC=$KERNEL_SEARCH_PATH" >> $file' include/build
|
||||||
|
./SynoBuild -c -p ${{ matrix.platform }}
|
||||||
|
|
||||||
|
while read line; do if [ ${line:0:1} != "#" ]; then export ${line%%=*}="${line#*=}"; fi; done < /env${BUILD_ARCH}.mak
|
||||||
|
if [ -f "${KSRC}/Makefile" ]; then
|
||||||
|
# gcc issue "unrecognized command-line option '--param=allow-store-data-races=0'".
|
||||||
|
[ "${{ matrix.version }}" == "7.2" ] && sed -i 's/--param=allow-store-data-races=0/--allow-store-data-races/g' ${KSRC}/Makefile
|
||||||
|
|
||||||
|
VERSION=`cat ${KSRC}/Makefile | grep ^VERSION | awk -F' ' '{print $3}'`
|
||||||
|
PATCHLEVEL=`cat ${KSRC}/Makefile | grep ^PATCHLEVEL | awk -F' ' '{print $3}'`
|
||||||
|
SUBLEVEL=`cat ${KSRC}/Makefile | grep ^SUBLEVEL | awk -F' ' '{print $3}'`
|
||||||
|
[ -f "/env32.mak" ] && echo "KVER=${VERSION}.${PATCHLEVEL}.${SUBLEVEL}" >> /env32.mak
|
||||||
|
[ -f "/env64.mak" ] && echo "KVER=${VERSION}.${PATCHLEVEL}.${SUBLEVEL}" >> /env64.mak
|
||||||
|
CCVER=`$CC --version | head -n 1 | awk -F' ' '{print $3}'`
|
||||||
|
[ -f "/env32.mak" ] && echo "CCVER=${CCVER}" >> /env32.mak
|
||||||
|
[ -f "/env64.mak" ] && echo "CCVER=${CCVER}" >> /env64.mak
|
||||||
|
fi
|
||||||
|
EOF
|
||||||
|
|
||||||
|
[ -f ${ENV_PATH}/env64.mak ] && ENV_FILE=${ENV_PATH}/env64.mak || ([ -f ${ENV_PATH}/env32.mak ] && ENV_FILE=${ENV_PATH}/env32.mak)
|
||||||
|
if [ -n "${ENV_FILE}" ]; then
|
||||||
|
KVER=`grep 'KVER=' ${ENV_FILE} | awk -F'=' '{print $2}'`
|
||||||
|
CCVER=`grep 'CCVER=' ${ENV_FILE} | awk -F'=' '{print $2}'`
|
||||||
|
[ -n "${KVER}" ] && echo "KVER=${KVER}" >> $GITHUB_ENV
|
||||||
|
[ -n "${CCVER}" ] && echo "CCVER=${CCVER}" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Get Src
|
||||||
|
run: |
|
||||||
|
ROOT_PATH=${{ github.workspace }}
|
||||||
|
|
||||||
|
mkdir -p ${ROOT_PATH}/source/output
|
||||||
|
repo=${{ env.repo }}
|
||||||
|
KVER=${{ env.KVER }}
|
||||||
|
|
||||||
|
sudo cp -a ${ROOT_PATH}/src/${KVER:0:1}.x ${ROOT_PATH}/source/input
|
||||||
|
|
||||||
|
sudo cp -a ${ROOT_PATH}/source ${ROOT_PATH}/build_env/ds.${{ matrix.platform }}-${{ matrix.version }}/
|
||||||
|
|
||||||
|
- name: Make
|
||||||
|
run: |
|
||||||
|
ROOT_PATH=${{ github.workspace }}
|
||||||
|
|
||||||
|
sudo chroot build_env/ds.${{ matrix.platform }}-${{ matrix.version }} << "EOF"
|
||||||
|
sed -i 's/^CFLAGS=/#CFLAGS=/g; s/^CXXFLAGS=/#CXXFLAGS=/g' /env${BUILD_ARCH}.mak
|
||||||
|
while read line; do if [ ${line:0:1} != "#" ]; then export ${line%%=*}="${line#*=}"; fi; done < /env${BUILD_ARCH}.mak
|
||||||
|
cd /source/input
|
||||||
|
[ -z "`grep 'env.mak' Makefile`" ] && sed -i '1 i include /env.mak' Makefile
|
||||||
|
|
||||||
|
if [ -n "${{ inputs.module }}" ]; then
|
||||||
|
PARMS+="${{ inputs.module }}"
|
||||||
|
elif [ -f "defines.${{ matrix.platform }}" ]; then
|
||||||
|
PARMS+=" `cat "defines.${{ matrix.platform }}" | xargs`"
|
||||||
|
else
|
||||||
|
echo "[E] ${{ matrix.platform }}-${{ matrix.version }}"
|
||||||
|
fi
|
||||||
|
make -j`nproc` -C "${KSRC}" M="${PWD}" ${PARMS} modules
|
||||||
|
while read F; do
|
||||||
|
strip -g "${F}"
|
||||||
|
echo "Copying `basename ${F}`"
|
||||||
|
cp "${F}" "/source/output"
|
||||||
|
done < <(find ${PWD} -name \*.ko)
|
||||||
|
EOF
|
||||||
|
|
||||||
|
sudo cp -a ${ROOT_PATH}/build_env/ds.${{ matrix.platform }}-${{ matrix.version }}/source/output ${ROOT_PATH}/source/
|
||||||
|
sudo chmod a+rw -R ${ROOT_PATH}/source/output
|
||||||
|
|
||||||
|
- name: Tar to Artifacts
|
||||||
|
run: |
|
||||||
|
if [ ! -d "${{ github.workspace }}/source/output" ]; then
|
||||||
|
mkdir -p "${{ github.workspace }}/source/output"
|
||||||
|
chmod a+rw -R "${{ github.workspace }}/source/output"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${{ matrix.platform }}" = "epyc7002" ]; then
|
||||||
|
tar caf ${{ github.workspace }}/source/${{ matrix.platform }}-${{ matrix.version }}-${{ matrix.parm }}.tgz -C ${{ github.workspace }}/source/output .
|
||||||
|
else
|
||||||
|
tar caf ${{ github.workspace }}/source/${{ matrix.platform }}-${{ matrix.parm }}.tgz -C ${{ github.workspace }}/source/output .
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Upload to Artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: modules
|
||||||
|
path: |
|
||||||
|
${{ github.workspace }}/source/*.tgz
|
||||||
|
|
||||||
|
- name: clean
|
||||||
|
run: |
|
||||||
|
sudo rm -rf ${{ github.workspace }}/build_env/ds.${{ matrix.platform }}-${{ matrix.version }}/source/*
|
239
.github/workflows/kvm.yml
vendored
Normal file
239
.github/workflows/kvm.yml
vendored
Normal file
@ -0,0 +1,239 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2023 AuxXxilium <https://github.com/AuxXxilium> and Ing <https://github.com/wjz304>
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the MIT License.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
|
||||||
|
name: Update kvm
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
push:
|
||||||
|
description: 'push'
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
kvm:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
# - version: 7.1
|
||||||
|
# platform: apollolake
|
||||||
|
# - version: 7.1
|
||||||
|
# platform: broadwell
|
||||||
|
# - version: 7.1
|
||||||
|
# platform: broadwellnk
|
||||||
|
# - version: 7.1
|
||||||
|
# platform: broadwellnkv2
|
||||||
|
# - version: 7.1
|
||||||
|
# platform: broadwellntbap
|
||||||
|
# - version: 7.1
|
||||||
|
# platform: denverton
|
||||||
|
# - version: 7.1
|
||||||
|
# platform: geminilake
|
||||||
|
# #- version: 7.1
|
||||||
|
# # platform: grantley
|
||||||
|
# - version: 7.1
|
||||||
|
# platform: purley
|
||||||
|
# - version: 7.1
|
||||||
|
# platform: r1000
|
||||||
|
# - version: 7.1
|
||||||
|
# platform: v1000
|
||||||
|
|
||||||
|
- version: 7.2
|
||||||
|
platform: apollolake
|
||||||
|
- version: 7.2
|
||||||
|
platform: broadwell
|
||||||
|
- version: 7.2
|
||||||
|
platform: broadwellnk
|
||||||
|
- version: 7.2
|
||||||
|
platform: broadwellnkv2
|
||||||
|
- version: 7.2
|
||||||
|
platform: broadwellntbap
|
||||||
|
- version: 7.2
|
||||||
|
platform: denverton
|
||||||
|
- version: 7.2
|
||||||
|
platform: geminilake
|
||||||
|
#- version: 7.2
|
||||||
|
# platform: grantley
|
||||||
|
- version: 7.2
|
||||||
|
platform: purley
|
||||||
|
- version: 7.2
|
||||||
|
platform: r1000
|
||||||
|
- version: 7.2
|
||||||
|
platform: v1000
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@main
|
||||||
|
|
||||||
|
- name: Init Env
|
||||||
|
run: |
|
||||||
|
git config --global user.email "info@auxxxilium.tech"
|
||||||
|
git config --global user.name "AuxXxilium"
|
||||||
|
sudo timedatectl set-timezone "Europe/Berlin"
|
||||||
|
|
||||||
|
- name: Get EnvDeploy
|
||||||
|
# if: ${{ steps.cache-env.outputs.cache-hit != 'true' }}
|
||||||
|
run: |
|
||||||
|
ROOT_PATH=${{ github.workspace }}
|
||||||
|
|
||||||
|
git clone https://github.com/SynologyOpenSource/pkgscripts-ng.git ${ROOT_PATH}/pkgscripts-ng
|
||||||
|
cd ${ROOT_PATH}/pkgscripts-ng
|
||||||
|
# if version == 6.2, checkout 6.2.4
|
||||||
|
git checkout DSM${{ matrix.version }}`[ "${{ matrix.version }}" = "6.2" ] && echo ".4"`
|
||||||
|
sudo ./EnvDeploy -v ${{ matrix.version }}`[ "${{ matrix.version }}" = "6.2" ] && echo ".4"` -l # Get Available platforms
|
||||||
|
sudo ./EnvDeploy -q -v ${{ matrix.version }} -p ${{ matrix.platform }}
|
||||||
|
|
||||||
|
# Fault tolerance of pkgscripts-ng
|
||||||
|
if [ "${{ matrix.platform }}" == "broadwellntbap" -a "${{ matrix.version }}" == "7.1" ]; then
|
||||||
|
sed -i '/ broadwellnk BROADWELLNK/a\ broadwellntbap BROADWELLNTBAP linux-4.4.x Intel Broadwell with ntb kernel config in AP mode' ${ROOT_PATH}/pkgscripts-ng/include/platforms
|
||||||
|
fi
|
||||||
|
|
||||||
|
#ENV
|
||||||
|
mkdir -p ${ROOT_PATH}/source
|
||||||
|
|
||||||
|
ENV_PATH=${ROOT_PATH}/build_env/ds.${{ matrix.platform }}-${{ matrix.version }}
|
||||||
|
sudo cp -al ${ROOT_PATH}/pkgscripts-ng ${ENV_PATH}/
|
||||||
|
|
||||||
|
sudo chroot ${ENV_PATH} << "EOF"
|
||||||
|
cd pkgscripts
|
||||||
|
|
||||||
|
version=${{ matrix.version }}; [ ${version:0:1} -gt 6 ] && sed -i 's/print(" ".join(kernels))/pass #&/' ProjectDepends.py
|
||||||
|
sed -i '/PLATFORM_FAMILY/a\\techo "PRODUCT=$PRODUCT" >> $file\n\techo "KSRC=$KERNEL_SEARCH_PATH" >> $file\n\techo "LINUX_SRC=$KERNEL_SEARCH_PATH" >> $file' include/build
|
||||||
|
./SynoBuild -c -p ${{ matrix.platform }}
|
||||||
|
|
||||||
|
while read line; do if [ ${line:0:1} != "#" ]; then export ${line%%=*}="${line#*=}"; fi; done < /env${BUILD_ARCH}.mak
|
||||||
|
if [ -f "${KSRC}/Makefile" ]; then
|
||||||
|
# gcc issue "unrecognized command-line option '--param=allow-store-data-races=0'".
|
||||||
|
[ "${{ matrix.version }}" == "7.2" ] && sed -i 's/--param=allow-store-data-races=0/--allow-store-data-races/g' ${KSRC}/Makefile
|
||||||
|
|
||||||
|
VERSION=`cat ${KSRC}/Makefile | grep ^VERSION | awk -F' ' '{print $3}'`
|
||||||
|
PATCHLEVEL=`cat ${KSRC}/Makefile | grep ^PATCHLEVEL | awk -F' ' '{print $3}'`
|
||||||
|
SUBLEVEL=`cat ${KSRC}/Makefile | grep ^SUBLEVEL | awk -F' ' '{print $3}'`
|
||||||
|
[ -f "/env32.mak" ] && echo "KVER=${VERSION}.${PATCHLEVEL}.${SUBLEVEL}" >> /env32.mak
|
||||||
|
[ -f "/env64.mak" ] && echo "KVER=${VERSION}.${PATCHLEVEL}.${SUBLEVEL}" >> /env64.mak
|
||||||
|
CCVER=`$CC --version | head -n 1 | awk -F' ' '{print $3}'`
|
||||||
|
[ -f "/env32.mak" ] && echo "CCVER=${CCVER}" >> /env32.mak
|
||||||
|
[ -f "/env64.mak" ] && echo "CCVER=${CCVER}" >> /env64.mak
|
||||||
|
fi
|
||||||
|
EOF
|
||||||
|
|
||||||
|
[ -f ${ENV_PATH}/env64.mak ] && ENV_FILE=${ENV_PATH}/env64.mak || ([ -f ${ENV_PATH}/env32.mak ] && ENV_FILE=${ENV_PATH}/env32.mak)
|
||||||
|
if [ -n "${ENV_FILE}" ]; then
|
||||||
|
KVER=`grep 'KVER=' ${ENV_FILE} | awk -F'=' '{print $2}'`
|
||||||
|
CCVER=`grep 'CCVER=' ${ENV_FILE} | awk -F'=' '{print $2}'`
|
||||||
|
[ -n "${KVER}" ] && echo "KVER=${KVER}" >> $GITHUB_ENV
|
||||||
|
[ -n "${CCVER}" ] && echo "CCVER=${CCVER}" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Get Src
|
||||||
|
run: |
|
||||||
|
ROOT_PATH=${{ github.workspace }}
|
||||||
|
|
||||||
|
mkdir -p ${ROOT_PATH}/source/output
|
||||||
|
repo=${{ env.repo }}
|
||||||
|
KVER=${{ env.KVER }}
|
||||||
|
|
||||||
|
sudo cp -a ${ROOT_PATH}/src/${KVER:0:1}.x ${ROOT_PATH}/source/input
|
||||||
|
|
||||||
|
sudo cp -a ${ROOT_PATH}/source ${ROOT_PATH}/build_env/ds.${{ matrix.platform }}-${{ matrix.version }}/
|
||||||
|
|
||||||
|
- name: Make
|
||||||
|
run: |
|
||||||
|
ROOT_PATH=${{ github.workspace }}
|
||||||
|
|
||||||
|
sudo chroot build_env/ds.${{ matrix.platform }}-${{ matrix.version }} << "EOF"
|
||||||
|
sed -i 's/^CFLAGS=/#CFLAGS=/g; s/^CXXFLAGS=/#CXXFLAGS=/g' /env${BUILD_ARCH}.mak
|
||||||
|
while read line; do if [ ${line:0:1} != "#" ]; then export ${line%%=*}="${line#*=}"; fi; done < /env${BUILD_ARCH}.mak
|
||||||
|
cd /source/input
|
||||||
|
sed -i '1 i include /env.mak' arch/x86/kvm/Makefile
|
||||||
|
sed -i "s|boot_cpu_data.x86_vendor != X86_VENDOR_AMD|false|" ${KSRC}/arch/x86/include/asm/virtext.h
|
||||||
|
# Modify TRACE_INCLUDE_PATH of *trace.h
|
||||||
|
for F in `find ./ -type f -name *trace.h`; do
|
||||||
|
FILE_PATH=`realpath $(dirname ${F})`
|
||||||
|
sed -i "s|#define TRACE_INCLUDE_PATH.*$|#define TRACE_INCLUDE_PATH ${FILE_PATH}|" ${F}
|
||||||
|
done
|
||||||
|
PARMS+="CONFIG_KVM=m CONFIG_KVM_INTEL=m CONFIG_KVM_AMD=m CONFIG_IRQ_BYPASS_MANAGER=m"
|
||||||
|
make -j`nproc` -C "${KSRC}" M="${PWD}/arch/x86/kvm" ${PARMS} modules
|
||||||
|
while read F; do
|
||||||
|
strip -g "${F}"
|
||||||
|
echo "Copying `basename ${F}`"
|
||||||
|
cp "${F}" "/source/output"
|
||||||
|
done < <(find ${PWD} -name \*.ko)
|
||||||
|
EOF
|
||||||
|
|
||||||
|
sudo cp -a ${ROOT_PATH}/build_env/ds.${{ matrix.platform }}-${{ matrix.version }}/source/output ${ROOT_PATH}/source/
|
||||||
|
sudo chmod a+rw -R ${ROOT_PATH}/source/output
|
||||||
|
|
||||||
|
- name: Tar to Artifacts
|
||||||
|
run: |
|
||||||
|
if [ "${{ matrix.platform }}" = "epyc7002" ]; then
|
||||||
|
tar caf ${{ github.workspace }}/source/${{ matrix.platform }}-${{ matrix.version }}-${{ env.KVER }}.tgz -C ${{ github.workspace }}/source/output .
|
||||||
|
else
|
||||||
|
tar caf ${{ github.workspace }}/source/${{ matrix.platform }}-${{ env.KVER }}.tgz -C ${{ github.workspace }}/source/output .
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Upload to Artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: kvm
|
||||||
|
path: |
|
||||||
|
${{ github.workspace }}/source/*.tgz
|
||||||
|
|
||||||
|
- name: clean
|
||||||
|
run: |
|
||||||
|
sudo rm -rf ${{ github.workspace }}/build_env/ds.${{ matrix.platform }}-${{ matrix.version }}/source/*
|
||||||
|
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: kvm
|
||||||
|
if: inputs.push == true
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@main
|
||||||
|
|
||||||
|
- name: Init Env
|
||||||
|
run: |
|
||||||
|
git config --global user.email "info@auxxxilium.tech"
|
||||||
|
git config --global user.name "AuxXxilium"
|
||||||
|
sudo timedatectl set-timezone "Europe/Berlin"
|
||||||
|
|
||||||
|
- name: download to artifacts
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: kvm
|
||||||
|
path: ./artifacts
|
||||||
|
|
||||||
|
- name: Check and Push
|
||||||
|
run: |
|
||||||
|
ls artifacts
|
||||||
|
for F in `ls artifacts/*.tgz`; do
|
||||||
|
if echo ${F} | grep -qE "apollolake|broadwell|broadwellnk|denverton|geminilake"; then
|
||||||
|
KVM="kvm-amd.ko"
|
||||||
|
else # "epyc7002|r1000|v1000"
|
||||||
|
KVM="kvm-intel.ko"
|
||||||
|
fi
|
||||||
|
echo "Copy ${F}/${KVM}"
|
||||||
|
mkdir -p "thirdparty/`basename "$F" .tgz`/"
|
||||||
|
if tar -tf "${F}" | grep "${KVM}"; then
|
||||||
|
cp official/hda1/`basename "$F" .tgz`/irqbypass.ko official/hda1/`basename "$F" .tgz`/kvm* thirdparty/`basename "$F" .tgz`/
|
||||||
|
tar -xzvf "${F}" -C "thirdparty/`basename "$F" .tgz`/" ./${KVM}
|
||||||
|
else
|
||||||
|
echo "[W] Not ${KVM} in ${F}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Git push ..."
|
||||||
|
git pull
|
||||||
|
status=$(git status -s | grep -E 'thirdparty/' | awk '{printf " %s", $2}')
|
||||||
|
if [ -n "${status}" ]; then
|
||||||
|
git add ${status}
|
||||||
|
git commit -m "modules: update kvm $(date +%Y-%m-%d" "%H:%M:%S)"
|
||||||
|
git push -f
|
||||||
|
fi
|
232
.github/workflows/syno.yml
vendored
Normal file
232
.github/workflows/syno.yml
vendored
Normal file
@ -0,0 +1,232 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2023 AuxXxilium <https://github.com/AuxXxilium> and Ing <https://github.com/wjz304>
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the MIT License.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
|
||||||
|
name: Get official Modules
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
official:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
TOOL_PATH: extractor
|
||||||
|
OFFICIAL_PATH: official
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Init Env
|
||||||
|
run: |
|
||||||
|
git config --global user.email "info@auxxxilium.tech"
|
||||||
|
git config --global user.name "AuxXxilium"
|
||||||
|
sudo timedatectl set-timezone "Europe/Berlin"
|
||||||
|
|
||||||
|
- name: Get extractor
|
||||||
|
run: |
|
||||||
|
echo "Getting syno extractor"
|
||||||
|
TOOL_PATH="${{ env.TOOL_PATH }}"
|
||||||
|
CACHE_DIR="/tmp/pat"
|
||||||
|
|
||||||
|
rm -rf "${TOOL_PATH}"
|
||||||
|
mkdir -p "${TOOL_PATH}"
|
||||||
|
rm -rf "${CACHE_DIR}"
|
||||||
|
mkdir -p "${CACHE_DIR}"
|
||||||
|
|
||||||
|
OLDPAT_URL="https://global.download.synology.com/download/DSM/release/7.0.1/42218/DSM_DS3622xs%2B_42218.pat"
|
||||||
|
OLDPAT_FILE="DSM_DS3622xs+_42218.pat"
|
||||||
|
STATUS=`curl -# -w "%{http_code}" -L "${OLDPAT_URL}" -o "${CACHE_DIR}/${OLDPAT_FILE}"`
|
||||||
|
if [ $? -ne 0 -o ${STATUS} -ne 200 ]; then
|
||||||
|
echo "[E] DSM_DS3622xs%2B_42218.pat download error!"
|
||||||
|
rm -rf ${CACHE_DIR}
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p "${CACHE_DIR}/ramdisk"
|
||||||
|
tar -C "${CACHE_DIR}/ramdisk/" -xf "${CACHE_DIR}/${OLDPAT_FILE}" rd.gz 2>&1
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "[E] extractor rd.gz error!"
|
||||||
|
rm -rf ${CACHE_DIR}
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
(cd "${CACHE_DIR}/ramdisk"; xz -dc < rd.gz | cpio -idm) >/dev/null 2>&1 || true
|
||||||
|
|
||||||
|
# Copy only necessary files
|
||||||
|
for f in libcurl.so.4 libmbedcrypto.so.5 libmbedtls.so.13 libmbedx509.so.1 libmsgpackc.so.2 libsodium.so libsynocodesign-ng-virtual-junior-wins.so.7; do
|
||||||
|
cp "${CACHE_DIR}/ramdisk/usr/lib/${f}" "${TOOL_PATH}"
|
||||||
|
done
|
||||||
|
cp "${CACHE_DIR}/ramdisk/usr/syno/bin/scemd" "${TOOL_PATH}/syno_extract_system_patch"
|
||||||
|
rm -rf ${CACHE_DIR}
|
||||||
|
|
||||||
|
- name: Get official modules
|
||||||
|
run: |
|
||||||
|
function getOfficialModules() {
|
||||||
|
filename=${1}
|
||||||
|
filename=${filename##*\/}
|
||||||
|
filename=${filename%%\?*}
|
||||||
|
filepath=${filename%%\.*}
|
||||||
|
|
||||||
|
echo "Download ${1}"
|
||||||
|
curl -#kO "${1}"
|
||||||
|
|
||||||
|
header="$(od -bcN2 ${filename} | head -1 | awk '{print $3}')"
|
||||||
|
case ${header} in
|
||||||
|
105)
|
||||||
|
echo "Uncompressed tar"
|
||||||
|
isencrypted="no"
|
||||||
|
;;
|
||||||
|
213)
|
||||||
|
echo "Compressed tar"
|
||||||
|
isencrypted="no"
|
||||||
|
;;
|
||||||
|
255)
|
||||||
|
echo "Encrypted"
|
||||||
|
isencrypted="yes"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "error"
|
||||||
|
return 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
echo "extract ${filename}"
|
||||||
|
mkdir -p "${filepath}"
|
||||||
|
if [ "${isencrypted}" = "yes" ]; then
|
||||||
|
TOOL_PATH="${{ env.TOOL_PATH }}"
|
||||||
|
sudo chmod -R +x "${TOOL_PATH}"
|
||||||
|
sudo LD_LIBRARY_PATH="${TOOL_PATH}" "${TOOL_PATH}/syno_extract_system_patch" "${filename}" "${filepath}"
|
||||||
|
else
|
||||||
|
tar -xf "${filename}" -C "${filepath}" >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "extract ${filepath}/rd.gz"
|
||||||
|
rdfile=`realpath ${filepath}/rd.gz`
|
||||||
|
rdpath=${rdfile%%\.*}
|
||||||
|
mkdir -p "${rdpath}"
|
||||||
|
(cd "${rdpath}"; xz -dc < "${rdfile}" | cpio -idm) >/dev/null 2>&1 || true
|
||||||
|
|
||||||
|
echo "extract ${filepath}/hda1.tgz"
|
||||||
|
hda1file=`realpath ${filepath}/hda1.tgz`
|
||||||
|
hda1path=${hda1file%%\.*}
|
||||||
|
mkdir -p "${hda1path}"
|
||||||
|
(cd "${hda1path}"; xz -dc < "${hda1file}" | cpio -idm) >/dev/null 2>&1 || true
|
||||||
|
|
||||||
|
plat="`grep unique "${filepath}/VERSION" | sed -r 's/.*_(.*)_.*/\1/'`"
|
||||||
|
kver="`file "${filepath}/zImage" | awk '{printf $9}' | sed 's/+//g'`"
|
||||||
|
if [ "${plat}" = "epyc7002" ]; then
|
||||||
|
eval $(cat "${filepath}/VERSION" | grep majorversion)
|
||||||
|
eval $(cat "${filepath}/VERSION" | grep minorversion)
|
||||||
|
officialrdpath="${{ env.OFFICIAL_PATH }}/rd/${plat}-${majorversion}.${minorversion}-${kver}"
|
||||||
|
officialhda1path="${{ env.OFFICIAL_PATH }}/hda1/${plat}-${majorversion}.${minorversion}-${kver}"
|
||||||
|
else
|
||||||
|
officialrdpath="${{ env.OFFICIAL_PATH }}/rd/${plat}-${kver}"
|
||||||
|
officialhda1path="${{ env.OFFICIAL_PATH }}/hda1/${plat}-${kver}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "copy rd ${plat}-${kver} modules"
|
||||||
|
[ ! -d "${{ env.OFFICIAL_PATH }}/rd" ] && mkdir -p "${{ env.OFFICIAL_PATH }}/rd"
|
||||||
|
rm -rf "${officialrdpath}"
|
||||||
|
cp -a ${rdpath}/usr/lib/modules "${officialrdpath}"
|
||||||
|
|
||||||
|
echo "copy hda1 ${plat}-${kver} modules"
|
||||||
|
[ ! -d "${{ env.OFFICIAL_PATH }}/hda1" ] && mkdir -p "${{ env.OFFICIAL_PATH }}/hda1"
|
||||||
|
rm -rf "${officialhda1path}"
|
||||||
|
cp -a ${hda1path}/usr/lib/modules "${officialhda1path}"
|
||||||
|
|
||||||
|
sudo rm -rf "${filename}" "${filepath}"
|
||||||
|
}
|
||||||
|
|
||||||
|
function getOfficialPatUrl() {
|
||||||
|
MODEL=$1
|
||||||
|
PRVER=$2
|
||||||
|
paturl="$(curl -skL "https://www.synology.com/api/support/findDownloadInfo?lang=en-us&product=${MODEL/+/%2B}&major=${PRVER%%.*}&minor=${PRVER##*.}" | jq -r '.info.system.detail[0].items[0].files[0].url')"
|
||||||
|
echo "${paturl%%\?*}"
|
||||||
|
}
|
||||||
|
|
||||||
|
#- version: 7.1
|
||||||
|
# platform: apollolake
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "DS918+" "7.1")"
|
||||||
|
#- version: 7.1
|
||||||
|
# platform: broadwell
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "DS3617xs" "7.1")"
|
||||||
|
#- version: 7.1
|
||||||
|
# platform: broadwellnk
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "DS1621xs+" "7.1")"
|
||||||
|
#- version: 7.1
|
||||||
|
# platform: broadwellnkv2
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "SA3610" "7.1")"
|
||||||
|
#- version: 7.1
|
||||||
|
# platform: broadwellntbap
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "SA3400D" "7.1")"
|
||||||
|
#- version: 7.1
|
||||||
|
# platform: denverton
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "DVA3221" "7.1")"
|
||||||
|
#- version: 7.1
|
||||||
|
# platform: epyc7002
|
||||||
|
#getOfficialModules "$(getOfficialPatUrl "SA6400" "7.1")"
|
||||||
|
#- version: 7.1
|
||||||
|
# platform: geminilake
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "DVA1622" "7.1")" # DVA1622 have i915.ko, but only supports 2nd to 9th gen.
|
||||||
|
#- version: 7.1
|
||||||
|
# platform: purley
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "FS6400" "7.1")"
|
||||||
|
#- version: 7.1
|
||||||
|
# platform: r1000
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "DS923+" "7.1")" # DS923%2B no have version 7.0.1
|
||||||
|
#- version: 7.1
|
||||||
|
# platform: v1000
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "DS1621+" "7.1")"
|
||||||
|
#- version: 7.1
|
||||||
|
# platform: kvmx64
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "VirtualDSM" "7.1")"
|
||||||
|
|
||||||
|
#- version: 7.2
|
||||||
|
# platform: apollolake
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "DS918+" "7.2")"
|
||||||
|
#- version: 7.2
|
||||||
|
# platform: broadwell
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "DS3617xs" "7.2")"
|
||||||
|
#- version: 7.2
|
||||||
|
# platform: broadwellnk
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "DS1621xs+" "7.2")"
|
||||||
|
#- version: 7.2
|
||||||
|
# platform: broadwellnkv2
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "SA3610" "7.2")"
|
||||||
|
#- version: 7.2
|
||||||
|
# platform: broadwellntbap
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "SA3400D" "7.2")"
|
||||||
|
#- version: 7.2
|
||||||
|
# platform: denverton
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "DVA3221" "7.2")"
|
||||||
|
#- version: 7.2
|
||||||
|
# platform: epyc7002
|
||||||
|
#getOfficialModules "$(getOfficialPatUrl "SA6400" "7.2")"
|
||||||
|
#- version: 7.2
|
||||||
|
# platform: geminilake
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "DVA1622" "7.2")" # DVA1622 have i915.ko, but only supports 2nd to 9th gen.
|
||||||
|
#- version: 7.2
|
||||||
|
# platform: purley
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "FS6400" "7.2")"
|
||||||
|
#- version: 7.2
|
||||||
|
# platform: r1000
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "DS923+" "7.2")"
|
||||||
|
#- version: 7.2
|
||||||
|
# platform: v1000
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "DS1621+" "7.2")"
|
||||||
|
#- version: 7.2
|
||||||
|
# platform: kvmx64
|
||||||
|
getOfficialModules "$(getOfficialPatUrl "VirtualDSM" "7.2")"
|
||||||
|
|
||||||
|
- name: Check and Push
|
||||||
|
run: |
|
||||||
|
git pull
|
||||||
|
status=$(git status -s | grep -E '${{ env.OFFICIAL_PATH }}' | awk '{printf " %s", $2}')
|
||||||
|
if [ -n "${status}" ]; then
|
||||||
|
git add ${status}
|
||||||
|
git commit -m "modules: update official $(date +%Y-%m-%d" "%H:%M:%S)"
|
||||||
|
git push -f
|
||||||
|
fi
|
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
_
|
||||||
|
test.sh
|
||||||
|
*-temp
|
||||||
|
*.o
|
||||||
|
*.mod.*
|
||||||
|
.tmp_versions
|
||||||
|
/src/**/*.ko
|
||||||
|
.vscode/
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "src/4.x/drivers/net/ethernet/intel/igc"]
|
||||||
|
path = src/4.x/drivers/net/ethernet/intel/igc
|
||||||
|
url = https://github.com/jim3ma/synology-igc.git
|
339
LICENSE
Normal file
339
LICENSE
Normal file
@ -0,0 +1,339 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
License is intended to guarantee your freedom to share and change free
|
||||||
|
software--to make sure the software is free for all its users. This
|
||||||
|
General Public License applies to most of the Free Software
|
||||||
|
Foundation's software and to any other program whose authors commit to
|
||||||
|
using it. (Some other Free Software Foundation software is covered by
|
||||||
|
the GNU Lesser General Public License instead.) You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
this service if you wish), that you receive source code or can get it
|
||||||
|
if you want it, that you can change the software or use pieces of it
|
||||||
|
in new free programs; and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
anyone to deny you these rights or to ask you to surrender the rights.
|
||||||
|
These restrictions translate to certain responsibilities for you if you
|
||||||
|
distribute copies of the software, or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must give the recipients all the rights that
|
||||||
|
you have. You must make sure that they, too, receive or can get the
|
||||||
|
source code. And you must show them these terms so they know their
|
||||||
|
rights.
|
||||||
|
|
||||||
|
We protect your rights with two steps: (1) copyright the software, and
|
||||||
|
(2) offer you this license which gives you legal permission to copy,
|
||||||
|
distribute and/or modify the software.
|
||||||
|
|
||||||
|
Also, for each author's protection and ours, we want to make certain
|
||||||
|
that everyone understands that there is no warranty for this free
|
||||||
|
software. If the software is modified by someone else and passed on, we
|
||||||
|
want its recipients to know that what they have is not the original, so
|
||||||
|
that any problems introduced by others will not reflect on the original
|
||||||
|
authors' reputations.
|
||||||
|
|
||||||
|
Finally, any free program is threatened constantly by software
|
||||||
|
patents. We wish to avoid the danger that redistributors of a free
|
||||||
|
program will individually obtain patent licenses, in effect making the
|
||||||
|
program proprietary. To prevent this, we have made it clear that any
|
||||||
|
patent must be licensed for everyone's free use or not licensed at all.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License applies to any program or other work which contains
|
||||||
|
a notice placed by the copyright holder saying it may be distributed
|
||||||
|
under the terms of this General Public License. The "Program", below,
|
||||||
|
refers to any such program or work, and a "work based on the Program"
|
||||||
|
means either the Program or any derivative work under copyright law:
|
||||||
|
that is to say, a work containing the Program or a portion of it,
|
||||||
|
either verbatim or with modifications and/or translated into another
|
||||||
|
language. (Hereinafter, translation is included without limitation in
|
||||||
|
the term "modification".) Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running the Program is not restricted, and the output from the Program
|
||||||
|
is covered only if its contents constitute a work based on the
|
||||||
|
Program (independent of having been made by running the Program).
|
||||||
|
Whether that is true depends on what the Program does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Program's
|
||||||
|
source code as you receive it, in any medium, provided that you
|
||||||
|
conspicuously and appropriately publish on each copy an appropriate
|
||||||
|
copyright notice and disclaimer of warranty; keep intact all the
|
||||||
|
notices that refer to this License and to the absence of any warranty;
|
||||||
|
and give any other recipients of the Program a copy of this License
|
||||||
|
along with the Program.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy, and
|
||||||
|
you may at your option offer warranty protection in exchange for a fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Program or any portion
|
||||||
|
of it, thus forming a work based on the Program, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) You must cause the modified files to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
b) You must cause any work that you distribute or publish, that in
|
||||||
|
whole or in part contains or is derived from the Program or any
|
||||||
|
part thereof, to be licensed as a whole at no charge to all third
|
||||||
|
parties under the terms of this License.
|
||||||
|
|
||||||
|
c) If the modified program normally reads commands interactively
|
||||||
|
when run, you must cause it, when started running for such
|
||||||
|
interactive use in the most ordinary way, to print or display an
|
||||||
|
announcement including an appropriate copyright notice and a
|
||||||
|
notice that there is no warranty (or else, saying that you provide
|
||||||
|
a warranty) and that users may redistribute the program under
|
||||||
|
these conditions, and telling the user how to view a copy of this
|
||||||
|
License. (Exception: if the Program itself is interactive but
|
||||||
|
does not normally print such an announcement, your work based on
|
||||||
|
the Program is not required to print an announcement.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Program,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Program, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Program.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Program
|
||||||
|
with the Program (or with a work based on the Program) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may copy and distribute the Program (or a work based on it,
|
||||||
|
under Section 2) in object code or executable form under the terms of
|
||||||
|
Sections 1 and 2 above provided that you also do one of the following:
|
||||||
|
|
||||||
|
a) Accompany it with the complete corresponding machine-readable
|
||||||
|
source code, which must be distributed under the terms of Sections
|
||||||
|
1 and 2 above on a medium customarily used for software interchange; or,
|
||||||
|
|
||||||
|
b) Accompany it with a written offer, valid for at least three
|
||||||
|
years, to give any third party, for a charge no more than your
|
||||||
|
cost of physically performing source distribution, a complete
|
||||||
|
machine-readable copy of the corresponding source code, to be
|
||||||
|
distributed under the terms of Sections 1 and 2 above on a medium
|
||||||
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
|
c) Accompany it with the information you received as to the offer
|
||||||
|
to distribute corresponding source code. (This alternative is
|
||||||
|
allowed only for noncommercial distribution and only if you
|
||||||
|
received the program in object code or executable form with such
|
||||||
|
an offer, in accord with Subsection b above.)
|
||||||
|
|
||||||
|
The source code for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For an executable work, complete source
|
||||||
|
code means all the source code for all modules it contains, plus any
|
||||||
|
associated interface definition files, plus the scripts used to
|
||||||
|
control compilation and installation of the executable. However, as a
|
||||||
|
special exception, the source code distributed need not include
|
||||||
|
anything that is normally distributed (in either source or binary
|
||||||
|
form) with the major components (compiler, kernel, and so on) of the
|
||||||
|
operating system on which the executable runs, unless that component
|
||||||
|
itself accompanies the executable.
|
||||||
|
|
||||||
|
If distribution of executable or object code is made by offering
|
||||||
|
access to copy from a designated place, then offering equivalent
|
||||||
|
access to copy the source code from the same place counts as
|
||||||
|
distribution of the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
4. You may not copy, modify, sublicense, or distribute the Program
|
||||||
|
except as expressly provided under this License. Any attempt
|
||||||
|
otherwise to copy, modify, sublicense or distribute the Program is
|
||||||
|
void, and will automatically terminate your rights under this License.
|
||||||
|
However, parties who have received copies, or rights, from you under
|
||||||
|
this License will not have their licenses terminated so long as such
|
||||||
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
5. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Program or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Program (or any work based on the
|
||||||
|
Program), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Program or works based on it.
|
||||||
|
|
||||||
|
6. Each time you redistribute the Program (or any work based on the
|
||||||
|
Program), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute or modify the Program subject to
|
||||||
|
these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties to
|
||||||
|
this License.
|
||||||
|
|
||||||
|
7. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Program at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Program by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Program.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under
|
||||||
|
any particular circumstance, the balance of the section is intended to
|
||||||
|
apply and the section as a whole is intended to apply in other
|
||||||
|
circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system, which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
8. If the distribution and/or use of the Program is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Program under this License
|
||||||
|
may add an explicit geographical distribution limitation excluding
|
||||||
|
those countries, so that distribution is permitted only in or among
|
||||||
|
countries not thus excluded. In such case, this License incorporates
|
||||||
|
the limitation as if written in the body of this License.
|
||||||
|
|
||||||
|
9. The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program
|
||||||
|
specifies a version number of this License which applies to it and "any
|
||||||
|
later version", you have the option of following the terms and conditions
|
||||||
|
either of that version or of any later version published by the Free
|
||||||
|
Software Foundation. If the Program does not specify a version number of
|
||||||
|
this License, you may choose any version ever published by the Free Software
|
||||||
|
Foundation.
|
||||||
|
|
||||||
|
10. If you wish to incorporate parts of the Program into other free
|
||||||
|
programs whose distribution conditions are different, write to the author
|
||||||
|
to ask for permission. For software which is copyrighted by the Free
|
||||||
|
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||||
|
make exceptions for this. Our decision will be guided by the two goals
|
||||||
|
of preserving the free status of all derivatives of our free software and
|
||||||
|
of promoting the sharing and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||||
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||||
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||||
|
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||||
|
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||||
|
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||||
|
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||||
|
REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||||
|
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||||
|
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||||
|
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||||
|
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||||
|
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
convey the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along
|
||||||
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program is interactive, make it output a short notice like this
|
||||||
|
when it starts in an interactive mode:
|
||||||
|
|
||||||
|
Gnomovision version 69, Copyright (C) year name of author
|
||||||
|
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, the commands you use may
|
||||||
|
be called something other than `show w' and `show c'; they could even be
|
||||||
|
mouse-clicks or menu items--whatever suits your program.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or your
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||||
|
necessary. Here is a sample; alter the names:
|
||||||
|
|
||||||
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||||
|
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||||
|
|
||||||
|
<signature of Ty Coon>, 1 April 1989
|
||||||
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
|
This General Public License does not permit incorporating your program into
|
||||||
|
proprietary programs. If your program is a subroutine library, you may
|
||||||
|
consider it more useful to permit linking proprietary applications with the
|
||||||
|
library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License.
|
13
README.md
Normal file
13
README.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Modules for Arc Redpill Loader
|
||||||
|
|
||||||
|
## List of all Modules
|
||||||
|
https://github.com/AuxXxilium/AuxXxilium/wiki/Arc:-Modules
|
||||||
|
|
||||||
|
### Links
|
||||||
|
|
||||||
|
- <a href="https://github.com/AuxXxilium">Overview</a>
|
||||||
|
- <a href="https://github.com/AuxXxilium/AuxXxilium/wiki">Wiki and Informations</a>
|
||||||
|
- <a href="https://github.com/AuxXxilium/arc/releases/latest">Download</a>
|
||||||
|
|
||||||
|
### Thanks
|
||||||
|
All code was based on the work of TTG, pocopico, jumkey, fbelavenuto and others involved in continuing TTG's original redpill-load project.
|
30
list.sh
Executable file
30
list.sh
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
root=$(pwd)
|
||||||
|
start=${root}/modules
|
||||||
|
rm -f ${start}/modules.yml
|
||||||
|
touch ${start}/modules.yml
|
||||||
|
echo "## List of included modules" >>${start}/modules.yml
|
||||||
|
for folder in ${start}/*; do
|
||||||
|
if test -d ${folder}; then
|
||||||
|
echo "${folder}"
|
||||||
|
echo "" >> ${start}/modules.yml
|
||||||
|
path=$(echo ${folder} | rev | cut -d '/' -f-1 | rev)
|
||||||
|
echo "### ${path}" >>${start}/modules.yml
|
||||||
|
echo "" >>${start}/modules.yml
|
||||||
|
# Get list of all modules
|
||||||
|
for F in $(ls ${folder}/*.ko); do
|
||||||
|
X=$(basename ${F})
|
||||||
|
M=$(basename ${F} | sed 's/\.[^.]*$//')
|
||||||
|
DESC=$(modinfo ${F} | awk -F':' '/description:/{ print $2}' | awk '{sub(/^[ ]+/,""); print}')
|
||||||
|
[ -z "${DESC}" ] && DESC="${X}"
|
||||||
|
echo "${M} \"${DESC}\""
|
||||||
|
echo "* ${M} \"${DESC}\"" >>${start}/modules.yml
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo "" >> ${start}/modules.yml
|
||||||
|
date=$(date +'%y.%m.%d')
|
||||||
|
echo "Update: ${date}" >>${start}/modules.yml
|
||||||
|
|
||||||
|
mv -f ${start}/modules.yml ${root}/modules.yml
|
5116
modules.yml
Normal file
5116
modules.yml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
modules/apollolake-4.4.180/3w-9xxx.ko
Normal file
BIN
modules/apollolake-4.4.180/3w-9xxx.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/3w-sas.ko
Normal file
BIN
modules/apollolake-4.4.180/3w-sas.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/8139cp.ko
Normal file
BIN
modules/apollolake-4.4.180/8139cp.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/aacraid.ko
Normal file
BIN
modules/apollolake-4.4.180/aacraid.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/acpi-cpufreq.ko
Normal file
BIN
modules/apollolake-4.4.180/acpi-cpufreq.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/adm1021.ko
Normal file
BIN
modules/apollolake-4.4.180/adm1021.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/adm1031.ko
Normal file
BIN
modules/apollolake-4.4.180/adm1031.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/adm9240.ko
Normal file
BIN
modules/apollolake-4.4.180/adm9240.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/adt7470.ko
Normal file
BIN
modules/apollolake-4.4.180/adt7470.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/adt7475.ko
Normal file
BIN
modules/apollolake-4.4.180/adt7475.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/aic94xx.ko
Normal file
BIN
modules/apollolake-4.4.180/aic94xx.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/alx.ko
Normal file
BIN
modules/apollolake-4.4.180/alx.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/aqc111.ko
Normal file
BIN
modules/apollolake-4.4.180/aqc111.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/asix.ko
Normal file
BIN
modules/apollolake-4.4.180/asix.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/atkbd.ko
Normal file
BIN
modules/apollolake-4.4.180/atkbd.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/atl1.ko
Normal file
BIN
modules/apollolake-4.4.180/atl1.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/atl1c.ko
Normal file
BIN
modules/apollolake-4.4.180/atl1c.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/atl1e.ko
Normal file
BIN
modules/apollolake-4.4.180/atl1e.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/atl2.ko
Normal file
BIN
modules/apollolake-4.4.180/atl2.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/atlantic.ko
Normal file
BIN
modules/apollolake-4.4.180/atlantic.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/auxiliary.ko
Normal file
BIN
modules/apollolake-4.4.180/auxiliary.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/ax88179_178a.ko
Normal file
BIN
modules/apollolake-4.4.180/ax88179_178a.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/b44.ko
Normal file
BIN
modules/apollolake-4.4.180/b44.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/backlight.ko
Normal file
BIN
modules/apollolake-4.4.180/backlight.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/bcm-phy-lib.ko
Normal file
BIN
modules/apollolake-4.4.180/bcm-phy-lib.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/be2net.ko
Normal file
BIN
modules/apollolake-4.4.180/be2net.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/bitblit.ko
Normal file
BIN
modules/apollolake-4.4.180/bitblit.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/bnx2.ko
Normal file
BIN
modules/apollolake-4.4.180/bnx2.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/bnx2x.ko
Normal file
BIN
modules/apollolake-4.4.180/bnx2x.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/bnx2x_mod.ko
Normal file
BIN
modules/apollolake-4.4.180/bnx2x_mod.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/bnxt_en.ko
Normal file
BIN
modules/apollolake-4.4.180/bnxt_en.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/broadcom.ko
Normal file
BIN
modules/apollolake-4.4.180/broadcom.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/button.ko
Normal file
BIN
modules/apollolake-4.4.180/button.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/cdc_ether.ko
Normal file
BIN
modules/apollolake-4.4.180/cdc_ether.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/cdc_ncm.ko
Normal file
BIN
modules/apollolake-4.4.180/cdc_ncm.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/cdrom.ko
Normal file
BIN
modules/apollolake-4.4.180/cdrom.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/cfbcopyarea.ko
Normal file
BIN
modules/apollolake-4.4.180/cfbcopyarea.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/cfbfillrect.ko
Normal file
BIN
modules/apollolake-4.4.180/cfbfillrect.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/cfbimgblt.ko
Normal file
BIN
modules/apollolake-4.4.180/cfbimgblt.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/ch.ko
Normal file
BIN
modules/apollolake-4.4.180/ch.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/ch341.ko
Normal file
BIN
modules/apollolake-4.4.180/ch341.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/cn.ko
Normal file
BIN
modules/apollolake-4.4.180/cn.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/cp210x.ko
Normal file
BIN
modules/apollolake-4.4.180/cp210x.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/cpufreq_conservative.ko
Normal file
BIN
modules/apollolake-4.4.180/cpufreq_conservative.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/cpufreq_governor.ko
Normal file
BIN
modules/apollolake-4.4.180/cpufreq_governor.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/cpufreq_ondemand.ko
Normal file
BIN
modules/apollolake-4.4.180/cpufreq_ondemand.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/cpufreq_performance.ko
Normal file
BIN
modules/apollolake-4.4.180/cpufreq_performance.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/crc-itu-t.ko
Normal file
BIN
modules/apollolake-4.4.180/crc-itu-t.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/cxgb.ko
Normal file
BIN
modules/apollolake-4.4.180/cxgb.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/cxgb3.ko
Normal file
BIN
modules/apollolake-4.4.180/cxgb3.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/cxgb4.ko
Normal file
BIN
modules/apollolake-4.4.180/cxgb4.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/cxgb4vf.ko
Normal file
BIN
modules/apollolake-4.4.180/cxgb4vf.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/dm-log.ko
Normal file
BIN
modules/apollolake-4.4.180/dm-log.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/dm-mirror.ko
Normal file
BIN
modules/apollolake-4.4.180/dm-mirror.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/dm-mod.ko
Normal file
BIN
modules/apollolake-4.4.180/dm-mod.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/dm-multipath.ko
Normal file
BIN
modules/apollolake-4.4.180/dm-multipath.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/dm-queue-length.ko
Normal file
BIN
modules/apollolake-4.4.180/dm-queue-length.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/dm-region-hash.ko
Normal file
BIN
modules/apollolake-4.4.180/dm-region-hash.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/dm-round-robin.ko
Normal file
BIN
modules/apollolake-4.4.180/dm-round-robin.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/dm-service-time.ko
Normal file
BIN
modules/apollolake-4.4.180/dm-service-time.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/dm9601.ko
Normal file
BIN
modules/apollolake-4.4.180/dm9601.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/dme1737.ko
Normal file
BIN
modules/apollolake-4.4.180/dme1737.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/drm.ko
Normal file
BIN
modules/apollolake-4.4.180/drm.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/drm_kms_helper.ko
Normal file
BIN
modules/apollolake-4.4.180/drm_kms_helper.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/drm_panel_orientation_quirks.ko
Normal file
BIN
modules/apollolake-4.4.180/drm_panel_orientation_quirks.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/dvb-core.ko
Normal file
BIN
modules/apollolake-4.4.180/dvb-core.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/dvb-usb-dib0700.ko
Normal file
BIN
modules/apollolake-4.4.180/dvb-usb-dib0700.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/dvb-usb-dvbsky.ko
Normal file
BIN
modules/apollolake-4.4.180/dvb-usb-dvbsky.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/dvb-usb.ko
Normal file
BIN
modules/apollolake-4.4.180/dvb-usb.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/dvb_usb_v2.ko
Normal file
BIN
modules/apollolake-4.4.180/dvb_usb_v2.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/e1000.ko
Normal file
BIN
modules/apollolake-4.4.180/e1000.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/e1000e.ko
Normal file
BIN
modules/apollolake-4.4.180/e1000e.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/eeprom_93cx6.ko
Normal file
BIN
modules/apollolake-4.4.180/eeprom_93cx6.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/efifb.ko
Normal file
BIN
modules/apollolake-4.4.180/efifb.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/ehci-hcd.ko
Normal file
BIN
modules/apollolake-4.4.180/ehci-hcd.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/ehci-pci.ko
Normal file
BIN
modules/apollolake-4.4.180/ehci-pci.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/evbug.ko
Normal file
BIN
modules/apollolake-4.4.180/evbug.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/evdev.ko
Normal file
BIN
modules/apollolake-4.4.180/evdev.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/exfat.ko
Normal file
BIN
modules/apollolake-4.4.180/exfat.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/f71882fg.ko
Normal file
BIN
modules/apollolake-4.4.180/f71882fg.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/f75375s.ko
Normal file
BIN
modules/apollolake-4.4.180/f75375s.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/fb.ko
Normal file
BIN
modules/apollolake-4.4.180/fb.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/fb_defio.ko
Normal file
BIN
modules/apollolake-4.4.180/fb_defio.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/fb_sys_fops.ko
Normal file
BIN
modules/apollolake-4.4.180/fb_sys_fops.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/fbcon.ko
Normal file
BIN
modules/apollolake-4.4.180/fbcon.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/fbcon_ccw.ko
Normal file
BIN
modules/apollolake-4.4.180/fbcon_ccw.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/fbcon_cw.ko
Normal file
BIN
modules/apollolake-4.4.180/fbcon_cw.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/fbcon_rotate.ko
Normal file
BIN
modules/apollolake-4.4.180/fbcon_rotate.ko
Normal file
Binary file not shown.
BIN
modules/apollolake-4.4.180/fbcon_ud.ko
Normal file
BIN
modules/apollolake-4.4.180/fbcon_ud.ko
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user