mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 12:04:27 +01:00
start refactoring build, completely broken atm'
This commit is contained in:
60
README.adoc
60
README.adoc
@@ -9544,66 +9544,6 @@ We use it for:
|
||||
+
|
||||
C files for example need compilation, and must go through the regular package system, e.g. through link:kernel_module/user[].
|
||||
|
||||
=== Script man pages
|
||||
|
||||
These appear when you do `./some-script -h`.
|
||||
|
||||
We have to keep them as separate files from the README for that to be possible.
|
||||
|
||||
==== build
|
||||
|
||||
....
|
||||
./build [OPTIONS] [-- EXTRA_MAKE_ARGS]
|
||||
....
|
||||
|
||||
`EXTRA_MAKE_ARGS` gets appended to the end of the `make` command line.
|
||||
|
||||
===== build configuration options
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
|Name |Argument name |Description
|
||||
|`-a` |`ARCH` |Build for architecture `ARCH`.
|
||||
|`-B` |`BR2_CONFIG` |Add a single Buildroot option to the current build.
|
||||
Example: `-B 'BR2_TARGET_ROOTFS_EXT2_SIZE="512M"'`
|
||||
|`-b` |`BR2_CONFIG_FILE` |Also use the given Buildroot configuration fragment file.
|
||||
Pass multiple times to use multiple fragment files.
|
||||
|`-C` |`CONFIG_SOMETHING` |Also use the given Linux kernel configuration, example:
|
||||
`./build -c 'CONFIG_FORTIFY_SOURCE=y'`
|
||||
Can be used multiple times for multiple configs.
|
||||
These options take precedence over `-c`.
|
||||
|`-c` |`KERNEL_CONFIG_FILE` |Also use the given kernel configuration fragment file.
|
||||
Pass multiple times to use multiple fragment files.
|
||||
These options take precedence over `-K`.
|
||||
|`-f` | |Skip the Buildroot configuration. Saves a few seconds,
|
||||
but requires you to know what you are doing :-)
|
||||
Mnemonic: `fast`.
|
||||
|`-g` | |Enable gem5 build or force its rebuild.
|
||||
|`-h` | |Show this help message.
|
||||
|`-I` | |Enable initramfs for the current build.
|
||||
|`-i` | |Enable initrd for the current build.
|
||||
|`-K` |`KERNEL_CONFIG_FILE` |Use `KERNEL_CONFIG_FILE` as the exact Linux kernel
|
||||
configuration. Ignore the default kernel config fragments,
|
||||
but still add options explicitly passed with `-C` and `-c`.
|
||||
on top of it.
|
||||
|`-p` | |Pass extra arguments to the `rootfs_post_build_script`.
|
||||
|`-S` | |Don't build QEMU with SDL support.
|
||||
Graphics such as X11 won't work, only the terminal.
|
||||
|`-v` | |Do a verbose build.
|
||||
|===
|
||||
|
||||
===== build target options
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
|Name |Forces rebuild of |Extra actions
|
||||
|`-g` |gem5 |
|
||||
|`-k` |Kernel modules |
|
||||
|`-l` |Linux kernel |Touches kernel configuration files to overcome:
|
||||
https://stackoverflow.com/questions/49260466/why-when-i-change-br2-linux-kernel-custom-config-file-and-run-make-linux-reconfi
|
||||
|`-q` |QEMU |
|
||||
|===
|
||||
|
||||
=== CONTRIBUTING
|
||||
|
||||
==== Testing
|
||||
|
||||
Reference in New Issue
Block a user