From df59bc2dd48e60e815b76e7d7ce20ca22f2067d8 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Wed, 9 Oct 2024 15:45:39 +0000 Subject: T861: T6713: Sign Realtek drivers --- scripts/package-build/linux-kernel/build-driver-realtek-r8152.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/package-build') 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) -- cgit v1.2.3