source: rtems/contrib/mingw/README @ aa941f8

4.104.115
Last change on this file since aa941f8 was c68637e, checked in by Joel Sherrill <joel.sherrill@…>, on 09/08/08 at 13:31:59

2008-09-08 Joel Sherrill <joel.sherrill@…>

  • AUTHORS, COPYING, README: Convert to UNIX CR/LF style.
  • Property mode set to 100644
File size: 3.1 KB
Line 
1
2    Copyright (C) 2006-2007 Chris Johns, Sydney, Australia <chrisj@rtems.org>
3
4    This program is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation; either version 2 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program; if not, write to the Free Software
16    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17
18
19To build mingw32 tools on a Fedora Core 7 box:
20
211. Add makensis to your path.
22
23   $ export PATH=/opt/nsis/2.29/bin:$PATH
24
252. Set up the RPM packages:
26
27   $ cat ~/.rpmrc
28   os_canon: mingw32: mingw32 23
29   arch_canon: mingw32: i686 1
30   arch_compat: mingw32: i686 noarch
31   buildarch_compat: mingw32: i686 noarch
32   optflags: mingw32 -O2 -g
33   optflags: i686 -O2 -pipe
34   $ cat ~/.rpmmacros
35   %_topdir /home2/work/chris/rtems/4.8/packages
36   %_tmppath /home2/work/chris/tmp/rtems
37   %_rpmdir        %_topdir/%_target_os/RPMS
38   %_srcrpmdir     %_topdir/%_target_os/SRPMS
39   %_signature gpg
40   # %_gpg_path ~/.gnupg
41   # %_gpg_name "RTEMS Packager"
42   %_gpg_name rtems
43   %vendor: RTEMS Project
44   %packager chrisj@rtems.org
45   %distribution RTEMS Project http://www.rtems.org/
46   $ mkdir -p /home2/work/chris/rtems/4.8/packages
47   $ mkdir /home2/work/chris/rtems/4.8/packages/SOURCES
48   $ mkdir /home2/work/chris/rtems/4.8/packages/BUILD
49   $ mkdir -p /home2/work/chris/rtems/4.8/packages/linux/SRPMS
50   $ mkdir -p /home2/work/chris/rtems/4.8/packages/linux/RPMS
51   $ mkdir -p /home2/work/chris/rtems/4.8/packages/mingw32/SRPMS
52   $ mkdir -p /home2/work/chris/rtems/4.8/packages/mingw32/RPMS
53   $ cp /home2/work/chris/rtems/4.8/head/contrib/crossrpms/patches/* \
54        /home2/work/chris/rtems/4.8/packages/SOURCES/.
55
56   Download the required sources to:
57
58     /home2/work/chris/rtems/4.8/packages/SOURCES
59
60   The list you need depends on what version you build. A tool exists
61   that atempts to determine the package. Ask on the list for it.
62
632. Run the build.sh script where:
64
65    -d            : debug output from the script and nested scripts
66    -h host       : the host to buidl for
67    -p prefix     : the prefix (not that important for mingw)
68    -s crossrpms  : the path to the crossrpms source tree
69    -r relocation : the path for the NSIS installer executables
70
71   $ export PATH=/opt/rtems-4.8/bin:$PATH
72   $ cd /home2/work/chris/rtems/4.8/head/contrib/crossrpms
73   $ ./bootstrap
74   $ cd /home2/work/chris/rtems/4.8/head/contrib/mingw
75   $ ./build.sh -d -h mingw32 \
76         -p /home2/work/chris/rtems/4.8/build/rpms \
77         -s /home2/work/chris/rtems/4.8/head/contrib/crossrpms \
78         -r /home2/work/chris/rtems/4.8/build/mingw
79
80   Sit back and wait. The build take a long time on a fast machine.
Note: See TracBrowser for help on using the repository browser.