tools.rst 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. .. SPDX-License-Identifier: GPL-2.0+
  2. .. sectionauthor:: Bin Meng <bmeng.cn@gmail.com>
  3. Host tools
  4. ==========
  5. Building tools for Linux
  6. ------------------------
  7. To allow distributions to distribute all possible tools in a generic way,
  8. avoiding the need of specific tools building for each machine, a tools only
  9. defconfig file is provided.
  10. Using this, we can build the tools by doing::
  11. $ make tools-only_defconfig
  12. $ make tools-only
  13. Building tools for Windows
  14. --------------------------
  15. If you wish to generate Windows versions of the utilities in the tools directory
  16. you can use MSYS2, a software distro and building platform for Windows.
  17. Download the MSYS2 installer from https://www.msys2.org. Make sure you have
  18. installed all required packages below in order to build these host tools::
  19. * gcc (9.1.0)
  20. * make (4.2.1)
  21. * bison (3.4.2)
  22. * diffutils (3.7)
  23. * openssl-devel (1.1.1.d)
  24. Note the version numbers in these parentheses above are the package versions
  25. at the time being when writing this document. The MSYS2 installer tested is
  26. http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20190524.exe.
  27. There are 3 MSYS subsystems installed: MSYS2, MinGW32 and MinGW64. Each
  28. subsystem provides an environment to build Windows applications. The MSYS2
  29. environment is for building POSIX compliant software on Windows using an
  30. emulation layer. The MinGW32/64 subsystems are for building native Windows
  31. applications using a linux toolchain (gcc, bash, etc), targeting respectively
  32. 32 and 64 bit Windows.
  33. Launch the MSYS2 shell of the MSYS2 environment, and do the following::
  34. $ make tools-only_defconfig
  35. $ make tools-only NO_SDL=1