diff options
author | Ron Yorston <rmy@pobox.com> | 2021-02-21 10:07:45 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-02-21 10:07:45 +0000 |
commit | 68b6505a40529a34f8d07129686a170d5d0a2116 (patch) | |
tree | e429e102ceecdf3cb529378b243ea66e5fe55f10 | |
parent | 475c1112864bf299146fe8146e76c47dc64c3092 (diff) | |
download | busybox-w32-68b6505a40529a34f8d07129686a170d5d0a2116.tar.gz busybox-w32-68b6505a40529a34f8d07129686a170d5d0a2116.tar.bz2 busybox-w32-68b6505a40529a34f8d07129686a170d5d0a2116.zip |
Add Windows build info to README.md
-rw-r--r-- | README.md | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -8,13 +8,17 @@ You need a MinGW compiler and a POSIX environment. I cross-compile on Linux. O | |||
8 | 8 | ||
9 | `dnf install gcc make ncurses-devel perl-Pod-Html` | 9 | `dnf install gcc make ncurses-devel perl-Pod-Html` |
10 | 10 | ||
11 | `dnf install mingw64-gcc mingw64-windows-default-manifest` (for a 64-bit build) | ||
12 | |||
11 | `dnf install mingw32-gcc mingw32-windows-default-manifest` (for a 32-bit build) | 13 | `dnf install mingw32-gcc mingw32-windows-default-manifest` (for a 32-bit build) |
12 | 14 | ||
13 | `dnf install mingw64-gcc mingw64-windows-default-manifest` (for a 64-bit build) | 15 | On Microsoft Windows you can install MSYS2 and a 64-bit toolchain by following [these instructions](https://www.msys2.org/#installation). To obtain a 32-bit toolchain run: |
16 | |||
17 | `pacman -S --needed mingw-w64-i686-toolchain` | ||
14 | 18 | ||
15 | To start, run `make mingw32_defconfig` or `make mingw64_defconfig`. You can then customize your build with `make menuconfig` or by editing `.config`, if you know what you're doing. | 19 | Run `mingw64.exe` or `mingw32.exe` from the installation directory. |
16 | 20 | ||
17 | In particular you may need to adjust the compiler by going to Busybox Settings -> Build Options -> Cross Compiler Prefix | 21 | On either Linux or Windows the commands `make mingw64_defconfig` or `make mingw32_defconfig` will pick up the default configuration. You can then customize your build with `make menuconfig` (Linux only) or by editing `.config`, if you know what you're doing. |
18 | 22 | ||
19 | Then just `make`. | 23 | Then just `make`. |
20 | 24 | ||