diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-10-09 15:45:39 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-10-09 15:45:39 +0000 |
commit | df59bc2dd48e60e815b76e7d7ce20ca22f2067d8 (patch) | |
tree | 7064c7e452695c3d54613c8aa2c8cdf4711cafe8 | |
parent | 910eece6d3dede212a0f6172272d248601ab1090 (diff) | |
download | vyos-build-df59bc2dd48e60e815b76e7d7ce20ca22f2067d8.tar.gz vyos-build-df59bc2dd48e60e815b76e7d7ce20ca22f2067d8.zip |
T861: T6713: Sign Realtek drivers
-rwxr-xr-x | scripts/package-build/linux-kernel/build-driver-realtek-r8152.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/package-build/linux-kernel/build-driver-realtek-r8152.py b/scripts/package-build/linux-kernel/build-driver-realtek-r8152.py index 81dfb901..3f13b68d 100755 --- a/scripts/package-build/linux-kernel/build-driver-realtek-r8152.py +++ b/scripts/package-build/linux-kernel/build-driver-realtek-r8152.py @@ -1,10 +1,13 @@ #!/usr/bin/env python3 +import os from tomllib import loads as toml_loads from requests import get from pathlib import Path from subprocess import run +CWD = os.getcwd() + # dependency modifier def add_depends(package_dir: str, package_name: str, depends: list[str]) -> None: @@ -86,3 +89,7 @@ build_rules_path.write_text(build_rules_text, encoding='utf-8') # build a package debuild_cmd: list[str] = ['debuild'] run(debuild_cmd, cwd=PACKAGE_DIR, check=True) + +# Sign generated Kernel modules +sign_modules_script = os.path.join(CWD, 'sign-modules.sh') +run([sign_modules_script, PACKAGE_DIR], check=True) |