From 68b6505a40529a34f8d07129686a170d5d0a2116 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sun, 21 Feb 2021 10:07:45 +0000 Subject: Add Windows build info to README.md --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dac2d38ba..843dbf9cb 100644 --- a/README.md +++ b/README.md @@ -8,13 +8,17 @@ You need a MinGW compiler and a POSIX environment. I cross-compile on Linux. O `dnf install gcc make ncurses-devel perl-Pod-Html` +`dnf install mingw64-gcc mingw64-windows-default-manifest` (for a 64-bit build) + `dnf install mingw32-gcc mingw32-windows-default-manifest` (for a 32-bit build) -`dnf install mingw64-gcc mingw64-windows-default-manifest` (for a 64-bit build) +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: + +`pacman -S --needed mingw-w64-i686-toolchain` -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. +Run `mingw64.exe` or `mingw32.exe` from the installation directory. -In particular you may need to adjust the compiler by going to Busybox Settings -> Build Options -> Cross Compiler Prefix +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. Then just `make`. -- cgit v1.2.3-55-g6feb