mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Merge pull request #377 from tjjh89017/arm64
arm64 build vyos kernel for qemu vm and rpi4
This commit is contained in:
commit
3ff0f40fdf
@ -190,7 +190,8 @@ RUN apt-get update && apt-get install -y \
|
||||
bc \
|
||||
kmod \
|
||||
cpio \
|
||||
python-is-python3
|
||||
python-is-python3 \
|
||||
dwarves
|
||||
|
||||
# Packages needed for Intel QAT out-of-tree drivers
|
||||
# FPM is used when generation Debian pckages for e.g. Intel QAT drivers
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -5,6 +5,10 @@ from requests import get
|
||||
from pathlib import Path
|
||||
from subprocess import run
|
||||
|
||||
def find_arch() -> str:
|
||||
import os
|
||||
arch = os.system("dpkg-architecture -q DEB_HOST_ARCH").strip()
|
||||
return arch
|
||||
|
||||
# dependency modifier
|
||||
def add_depends(package_dir: str, package_name: str,
|
||||
@ -24,8 +28,9 @@ def add_depends(package_dir: str, package_name: str,
|
||||
|
||||
|
||||
# find kernel version and source path
|
||||
arch: str = find_arch()
|
||||
defaults_file: str = Path('../../data/defaults.toml').read_text()
|
||||
architecture_file: str = Path('../../data/architectures/amd64.toml').read_text()
|
||||
architecture_file: str = Path(f'../../data/architectures/{arch}.toml').read_text()
|
||||
KERNEL_VER: str = toml_loads(defaults_file).get('kernel_version')
|
||||
KERNEL_FLAVOR: str = toml_loads(architecture_file).get('kernel_flavor')
|
||||
KERNEL_SRC: str = Path.cwd().as_posix() + '/linux'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user