mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Kernel: T861: T6713: fix generation of realtek driver signature
We need to sign the module during the Debian build run, before the binaries are packed into the resulting DEB.
This commit is contained in:
parent
cde77d07d1
commit
3a6e1d4455
@ -30,7 +30,6 @@ architecture_file: str = Path('../../../data/architectures/amd64.toml').read_tex
|
|||||||
KERNEL_VER: str = toml_loads(defaults_file).get('kernel_version')
|
KERNEL_VER: str = toml_loads(defaults_file).get('kernel_version')
|
||||||
KERNEL_FLAVOR: str = toml_loads(defaults_file).get('kernel_flavor')
|
KERNEL_FLAVOR: str = toml_loads(defaults_file).get('kernel_flavor')
|
||||||
KERNEL_SRC: str = Path.cwd().as_posix() + '/linux'
|
KERNEL_SRC: str = Path.cwd().as_posix() + '/linux'
|
||||||
|
|
||||||
# define variables
|
# define variables
|
||||||
PACKAGE_NAME: str = 'vyos-drivers-realtek-r8152'
|
PACKAGE_NAME: str = 'vyos-drivers-realtek-r8152'
|
||||||
PACKAGE_VERSION: str = '2.18.1'
|
PACKAGE_VERSION: str = '2.18.1'
|
||||||
@ -80,6 +79,7 @@ override_dh_auto_build:
|
|||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
\tinstall -D -m 644 r8152.ko ${{PACKAGE_BUILD_DIR}}/lib/modules/${{KVER}}/${{MODULES_DIR}}/r8152.ko
|
\tinstall -D -m 644 r8152.ko ${{PACKAGE_BUILD_DIR}}/lib/modules/${{KVER}}/${{MODULES_DIR}}/r8152.ko
|
||||||
|
\t${{KERNELDIR}}/../sign-modules.sh ${{PACKAGE_BUILD_DIR}}/lib
|
||||||
\tinstall -D -m 644 50-usb-realtek-net.rules ${{PACKAGE_BUILD_DIR}}/etc/udev/rules.d/50-usb-realtek-net.rules
|
\tinstall -D -m 644 50-usb-realtek-net.rules ${{PACKAGE_BUILD_DIR}}/etc/udev/rules.d/50-usb-realtek-net.rules
|
||||||
'''.format(KERNEL_SRC=KERNEL_SRC, PACKAGE_NAME=PACKAGE_NAME, KERNEL_VER=KERNEL_VER, KERNEL_FLAVOR=KERNEL_FLAVOR)
|
'''.format(KERNEL_SRC=KERNEL_SRC, PACKAGE_NAME=PACKAGE_NAME, KERNEL_VER=KERNEL_VER, KERNEL_FLAVOR=KERNEL_FLAVOR)
|
||||||
|
|
||||||
@ -91,5 +91,5 @@ debuild_cmd: list[str] = ['debuild']
|
|||||||
run(debuild_cmd, cwd=PACKAGE_DIR, check=True)
|
run(debuild_cmd, cwd=PACKAGE_DIR, check=True)
|
||||||
|
|
||||||
# Sign generated Kernel modules
|
# Sign generated Kernel modules
|
||||||
sign_modules_script = os.path.join(CWD, 'sign-modules.sh')
|
clean_cmd: list[str] = ['rm', '-rf', PACKAGE_DIR]
|
||||||
run([sign_modules_script, PACKAGE_DIR], check=True)
|
run(clean_cmd, cwd=CWD, check=True)
|
||||||
@ -194,7 +194,7 @@ def build_mellanox_ofed():
|
|||||||
|
|
||||||
def build_realtek_r8152():
|
def build_realtek_r8152():
|
||||||
"""Build Realtek r8152"""
|
"""Build Realtek r8152"""
|
||||||
run(['sudo', './build-driver-realtek-r8152.py'], check=True)
|
run(['sudo', './build-realtek-r8152.py'], check=True)
|
||||||
|
|
||||||
|
|
||||||
def build_jool():
|
def build_jool():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user