- download source coreutils-8.25.tar.xz
http://ftp.gnu.org/gnu/coreutils/

- Extract source from tar file

tar xf coreutils-8.25.tar.xz


- Patch Step:
  The following patches are required to cross-compile coreutils package.

   - To generate Windows executables apply this patch:
cd coreutils-8.25
patch -p1 < [installDir]/vxworks-7/host/src/coreutils-8.25_windows.patch

   - To generate Unix executables apply this patch:
cd coreutils-8.25
patch -p1 < [installDir]/vxworks-7/host/src/coreutils-8.25_unix.patch

- System prerequisites:   
  List of packages installed:
      Linux system: make sure to install gcc-multilib to enable 32-bit compiler on 64-bit system
            sudo apt-get install libc6-dev:i386 gcc:i386
            sudo apt-get install gcc-multilib 
            sudo apt-get install build-essential
            sudo apt-get install g++-multilib
 
      Windows system: Make sure you have up to date MinGW installed to enable windows cross-compiler
           sudo apt-get install gcc-mingw-w64
           sudo apt-get install gcc-mingw-w64-i686


- Build step:
chmod 755 BUILD
./BUILD

- Checksum of the binaries:

  983c1b3b69aab639d01f7c1845726aa61c158eb4067a98ab51a0cee26ba1387e  x86-win32/bin/sha256sum.exe
  d26ca725897b27f12236448290b1d04909602fb2ab20096e4f8d8d39f2fdf844  x86-linux2/bin/sha256sum

- Location of the executables:

  src/sha256sum
  and for windows
  src/sha256sum.exe

- The spec for system used to generate the sha256sum executables:
lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.4 LTS
Release:	14.04
Codename:	trusty

uname -a
Linux ejado-sha-VirtualBox 4.2.0-35-generic #40~14.04.1-Ubuntu SMP Fri Mar 18 16:37:35 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
