build-usage.adoc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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_CONFIG` |Add a single Buildroot option to the current build.
  11. Example: `-B 'BR2_TARGET_ROOTFS_EXT2_SIZE="512M"'`
  12. |`-b` |`BR2_CONFIG_FILE` |Also use the given Buildroot configuration fragment file.
  13. Pass multiple times to use multiple fragment files.
  14. |`-C` |`CONFIG_SOMETHING` |Also use the given Linux kernel configuration, example:
  15. `./build -c 'CONFIG_FORTIFY_SOURCE=y'`
  16. Can be used multiple times for multiple configs.
  17. These options take precedence over `-c`.
  18. |`-c` |`KERNEL_CONFIG_FILE` |Also use the given kernel configuration fragment file.
  19. Pass multiple times to use multiple fragment files.
  20. These options take precedence over `-K`.
  21. |`-f` | |Skip the Buildroot configuration. Saves a few seconds,
  22. but requires you to know what you are doing :-)
  23. Mnemonic: `fast`.
  24. |`-g` | |Enable gem5 build or force its rebuild.
  25. |`-h` | |Show this help message.
  26. |`-I` | |Enable initramfs for the current build.
  27. |`-i` | |Enable initrd for the current build.
  28. |`-K` |`KERNEL_CONFIG_FILE` |Use `KERNEL_CONFIG_FILE` as the exact Linux kernel
  29. configuration. Ignore the default kernel config fragments.
  30. |`-p` | |Pass extra arguments to the `rootfs_post_build_script`.
  31. |`-S` | |Don't build QEMU with SDL support.
  32. Graphics such as X11 won't work, only the terminal.
  33. |`-s` | |Add a custom suffix to the build.
  34. E.g., doing `./build -s mysuf` puts all the build output
  35. into `out/x86_64-mysuf`. This allows keep multiple builds around
  36. when you checkout between branches.
  37. |`-v` | |Do a verbose build.
  38. |===
  39. == build target options
  40. [options="header"]
  41. |===
  42. |Name |Forces rebuild of |Extra actions
  43. |`-g` |gem5 |
  44. |`-k` |Kernel modules |
  45. |`-l` |Linux kernel |Touches kernel configuration files to overcome:
  46. https://stackoverflow.com/questions/49260466/why-when-i-change-br2-linux-kernel-custom-config-file-and-run-make-linux-reconfi
  47. |`-q` |QEMU |
  48. |===