build-usage.adoc 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. = build usage
  2. ....
  3. ./build [OPTIONS] [-- EXTRA_MAKE_ARGS]
  4. ....
  5. == build configuration options
  6. [options="header"]
  7. |===
  8. |Name |Argument name |Description
  9. |`-a` |`ARCH` |Build for architecture `ARCH`.
  10. |`-b` |`BR2_FILE` |Also use the given Buildroot configuration fragment file.
  11. Pass multiple times to use multiple fragment files.
  12. |`-B` |`BR2_CONFIG` |Add a single Buildroot option to the current build.
  13. Example: `-B 'BR2_TARGET_ROOTFS_EXT2_SIZE="512M"'`
  14. |`-c` |`BR2_FILE` |Also use the given Buildroot configuration fragment file.
  15. Pass multiple times to use multiple fragment files.
  16. |`-C` | |Skip the Buildroot configuration. Saves a few seconds,
  17. but requires you to know what you are doing :-)
  18. |`-g` | |Enable gem5 build and disable QEMU build. You also need
  19. to use `-G` or `-- gem5-reconfigure` to rebuild gem5
  20. after the initial build.
  21. |`-h` | |Show this help message.
  22. |`-I` | |Enable initramfs for the current build.
  23. |`-i` | |Enable initrd for the current build.
  24. |`-K` |`KERNEL_CONFIG_FILE` |Use `KERNEL_CONFIG_FILE` as the exact Linux kernel
  25. configuration. Ignore the default `kernel_config_fragment`.
  26. |`-p` | |Pass extra arguments to the `rootfs_post_build_script`.
  27. |`-S` | |Don't build QEMU with SDL support.
  28. Graphics such as X11 won't work, only the terminal.
  29. |`-v` | |Do a verbose build.
  30. |===
  31. == build target options
  32. [options="header"]
  33. |===
  34. |Name |Forces rebuild of |Extra actions
  35. |`-G` |gem5 |Implies `-g`.
  36. |`-k` |Kernel modules |
  37. |`-l` |Linux kernel |Touches kernel configuration files to overcome:
  38. https://stackoverflow.com/questions/49260466/why-when-i-change-br2-linux-kernel-custom-config-file-and-run-make-linux-reconfi
  39. |`-q` |QEMU |
  40. |===