Skip to content

Commit 2fde86f

Browse files
committed
Kernel: T5641: add --keep-kernel build option to not call "make mrproper"
Option useful during development to not automatically clean the Linux Kernel source folder of all its intermediate files.
1 parent 21c7e66 commit 2fde86f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • scripts/package-build/linux-kernel

scripts/package-build/linux-kernel/build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ def build_nat_rtsp(commit_id, scm_url):
274274
arg_parser.add_argument('--config', default='package.toml', help='Path to the package configuration file')
275275
arg_parser.add_argument('--packages', nargs='+', help='Names of packages to build (default: all)', default=[])
276276
arg_parser.add_argument('--install-dependencies', '-i', help='Only install build dependencies', action='store_true')
277+
arg_parser.add_argument('--keep-kernel', '-k', help='Keep kernel intermediate objects and not create source tar-ball', action='store_true')
277278
args = arg_parser.parse_args()
278279

279280
# Load package configuration
@@ -311,7 +312,7 @@ def build_nat_rtsp(commit_id, scm_url):
311312
# Copy generated .deb packages to parent directory
312313
copy_packages(Path(package['name']))
313314

314-
if linux_kernel_tarball:
315+
if linux_kernel_tarball and not args.keep_kernel:
315316
source_dir = linux_kernel_tarball['source_dir']
316317
trusted_keys = f'{source_dir}/trusted_keys.pem'
317318
if os.path.exists(trusted_keys):

0 commit comments

Comments
 (0)