mirror of
https://git.rtems.org/rtems-tools/
synced 2025-06-17 06:52:47 +08:00

* specbuilder/sb-versions, specbuilder/specbuilder/version.py: New. Print a suitable version message for automatic documentation updating from the spec files in CVS. * specbuilder/specbuilder/build.py: Add xz support. Add a function to return the name of a package. * specbuilder/specbuilder/crossgcc.py: Use the build name in the tmp path. * specbuilder/specbuilder/darwin.py: Add xz support. * specbuilder/specbuilder/defaults.py: Add xz support. Add Windows and Linux support. * specbuilder/specbuilder/setup.py: Reference the correct shell opts. Use the shell setup in the version probe command. Fix the version check. Add autotools to the list of spec files to install. * specbuilder/specbuilder/spec.py: Add changelog and configure tests. Manage sub-packages better. * specbuilder/specbuilder/version.py, specbuilder/specbuilder/windows.py: New.
68 lines
2.1 KiB
Python
68 lines
2.1 KiB
Python
#
|
|
# $Id$
|
|
#
|
|
# RTEMS Tools Project (http://www.rtems.org/)
|
|
# Copyright 2010 Chris Johns (chrisj@rtems.org)
|
|
# All rights reserved.
|
|
#
|
|
# This file is part of the RTEMS Tools package in 'rtems-tools'.
|
|
#
|
|
# RTEMS Tools is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# RTEMS Tools is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with RTEMS Tools. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
|
|
#
|
|
# Windows specific support and overrides.
|
|
#
|
|
|
|
import pprint
|
|
import os
|
|
|
|
import execute
|
|
|
|
def load():
|
|
uname = 'win32'
|
|
if os.environ.has_key('NUMBER_OF_PROCESSORS'):
|
|
ncpus = int(os.environ['NUMBER_OF_PROCESSORS'])
|
|
else:
|
|
ncpus = 0
|
|
if ncpus > 1:
|
|
smp_mflags = '-j' + str(ncpus)
|
|
else:
|
|
smp_mflags = ''
|
|
if os.environ.has_key('HOSTTYPE'):
|
|
hosttype = os.environ['HOSTTYPE']
|
|
else:
|
|
hosttype = 'i686'
|
|
system = 'mingw32'
|
|
defines = {
|
|
'_os': 'win32',
|
|
'_host': hosttype + '-pc-' + system,
|
|
'_host_vendor': 'microsoft',
|
|
'_host_os': 'win32',
|
|
'_host_cpu': hosttype,
|
|
'_host_alias': '%{nil}',
|
|
'_host_arch': hosttype,
|
|
'_usr': '/opt/local',
|
|
'_var': '/opt/local/var',
|
|
'optflags': '-O2 -fasynchronous-unwind-tables',
|
|
'_smp_mflags': smp_mflags,
|
|
'__sh': 'sh',
|
|
'_buildshell': '%{__sh}',
|
|
'___setup_shell': '%{__sh}'
|
|
}
|
|
return defines
|
|
|
|
if __name__ == '__main__':
|
|
pprint.pprint(load())
|