summaryrefslogtreecommitdiff
path: root/scripts/package-build/linux-kernel/build.py
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2026-07-15 18:26:39 +0300
committerGitHub <noreply@github.com>2026-07-15 18:26:39 +0300
commitfbd036a36e4bd1fa8f15638f79bc554db2cac9fb (patch)
tree857f156523cdf83e1f45779c54a6e8828ebd9930 /scripts/package-build/linux-kernel/build.py
parent5e2e9a3375a0ec3845822702fb255ac03e2b661f (diff)
parent2fde86f151627dc2940bbdd7e478d856f12f98f5 (diff)
downloadvyos-build-fbd036a36e4bd1fa8f15638f79bc554db2cac9fb.tar.gz
vyos-build-fbd036a36e4bd1fa8f15638f79bc554db2cac9fb.zip
Merge pull request #1239 from c-po/compress-kernel-modules
Kernel: T5641: enable module compression to save disk space
Diffstat (limited to 'scripts/package-build/linux-kernel/build.py')
-rwxr-xr-xscripts/package-build/linux-kernel/build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/package-build/linux-kernel/build.py b/scripts/package-build/linux-kernel/build.py
index 6cb6f90f..a5094914 100755
--- a/scripts/package-build/linux-kernel/build.py
+++ b/scripts/package-build/linux-kernel/build.py
@@ -274,6 +274,7 @@ if __name__ == '__main__':
arg_parser.add_argument('--config', default='package.toml', help='Path to the package configuration file')
arg_parser.add_argument('--packages', nargs='+', help='Names of packages to build (default: all)', default=[])
arg_parser.add_argument('--install-dependencies', '-i', help='Only install build dependencies', action='store_true')
+ arg_parser.add_argument('--keep-kernel', '-k', help='Keep kernel intermediate objects and not create source tar-ball', action='store_true')
args = arg_parser.parse_args()
# Load package configuration
@@ -311,7 +312,7 @@ if __name__ == '__main__':
# Copy generated .deb packages to parent directory
copy_packages(Path(package['name']))
- if linux_kernel_tarball:
+ if linux_kernel_tarball and not args.keep_kernel:
source_dir = linux_kernel_tarball['source_dir']
trusted_keys = f'{source_dir}/trusted_keys.pem'
if os.path.exists(trusted_keys):