mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Don't copy static userland builds into out_rootfs_overlay by default.
I was doing that by mistake too often. To force it, use --copy-overlay. This mechanism might also be useful for future userland content.
This commit is contained in:
@@ -23,17 +23,6 @@ Build our compiled userland examples.
|
||||
self._add_argument('--ccflags')
|
||||
self._add_argument('--force-rebuild')
|
||||
self._add_argument('--optimization-level')
|
||||
self.add_argument(
|
||||
'--out-rootfs-overlay-dir-prefix',
|
||||
default='',
|
||||
help='''\
|
||||
Place the output files inside the image within this additional prefix.
|
||||
This is mostly useful to place different versions of binaries with different
|
||||
build parameters inside image to compare them. See:
|
||||
* https://cirosantilli.com/linux-kernel-module-cheat#update-the-toolchain
|
||||
* https://cirosantilli.com/linux-kernel-module-cheat#out_rootfs_overlay_dir
|
||||
'''
|
||||
)
|
||||
self.add_argument(
|
||||
'targets',
|
||||
default=[],
|
||||
@@ -96,7 +85,7 @@ Default: build all examples that have their package dependencies met, e.g.:
|
||||
exit_status = self._handle_thread_pool_errors(my_thread_pool)
|
||||
if exit_status != 0:
|
||||
return exit_status
|
||||
if not self.env['in_tree']:
|
||||
if self.env['copy_overlay']:
|
||||
self.sh.copy_dir_if_update(
|
||||
srcdir=build_dir,
|
||||
destdir=os.path.join(
|
||||
|
||||
Reference in New Issue
Block a user