build-usage.adoc 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 or force its rebuild.
  19. |`-h` | |Show this help message.
  20. |`-I` | |Enable initramfs for the current build.
  21. |`-i` | |Enable initrd for the current build.
  22. |`-K` |`KERNEL_CONFIG_FILE` |Use `KERNEL_CONFIG_FILE` as the exact Linux kernel
  23. configuration. Ignore the default kernel config fragments.
  24. |`-p` | |Pass extra arguments to the `rootfs_post_build_script`.
  25. |`-S` | |Don't build QEMU with SDL support.
  26. Graphics such as X11 won't work, only the terminal.
  27. |`-v` | |Do a verbose build.
  28. |===
  29. == build target options
  30. [options="header"]
  31. |===
  32. |Name |Forces rebuild of |Extra actions
  33. |`-g` |gem5 |
  34. |`-k` |Kernel modules |
  35. |`-l` |Linux kernel |Touches kernel configuration files to overcome:
  36. https://stackoverflow.com/questions/49260466/why-when-i-change-br2-linux-kernel-custom-config-file-and-run-make-linux-reconfi
  37. |`-q` |QEMU |
  38. |===