mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
readme: Add new files to the Buildroot image section
Organize related docs a bit, notably move ./run-toolchain and ./getvar to README.
This commit is contained in:
18
getvar
18
getvar
@@ -10,23 +10,7 @@ class Main(common.LkmcCliFunction):
|
||||
},
|
||||
description='''\
|
||||
Print the value of a self.env['py'] variable.
|
||||
|
||||
This is useful to:
|
||||
|
||||
* give dry commands on the README that don't change when we refactor directory structure
|
||||
* create simple bash scripts that call use self.env['py'] variables
|
||||
|
||||
For example, to get the Buildroot output directory for an ARM build, use:
|
||||
|
||||
....
|
||||
./%(prog)s -a arm buildroot_build_dir
|
||||
....
|
||||
|
||||
List all available variables:
|
||||
|
||||
....
|
||||
./%(prog)s
|
||||
....
|
||||
https://cirosantilli.com/linux-kernel-module-cheat#getvar
|
||||
''',
|
||||
)
|
||||
self.add_argument('--type', choices=['input', 'all'], default='all')
|
||||
|
||||
Reference in New Issue
Block a user