32 Commits

Author SHA1 Message Date
Sebastian Huber
09b84c4c2a sb/linux.py: Simplify "distro" determination
This fixes an issue on Debian 11 which contains "Debian" in /etc/issue
(capital D).
2022-01-24 07:56:16 +01:00
Chris Johns
c51f634258 sb: Fix the imports on Python2
Updates #4037
2020-08-28 11:37:53 +10:00
Chris Johns
650c6f9933 sb: Use shebang env python
Closes #4037
2020-08-25 21:21:50 +10:00
Anders Montonen
ae9faa2726 sb/linux.py: Workaround for Python >= 3.8
The platform.dist() interface has been deprecated since Python 3.5, and
has been removed in Python 3.8.

Fixes:
Traceback (most recent call last):
  File "/home/anders/work/rtems/rsb/source-builder/sb/options.py", line 682, in load
    overrides = linux.load()
  File "/home/anders/work/rtems/rsb/source-builder/sb/linux.py", line 60, in load
    distro = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'

Signed-off-by: Anders Montonen <Anders.Montonen@iki.fi>
2020-04-28 08:49:25 +10:00
Sebastian Huber
e0394a5c70 sb: Use multiprocessing.cpu_count()
The previous implementation does not work on some Linux distributions,
e.g. Debian on sparc64.  Use a standard function instead.
2020-03-05 10:59:16 +01:00
Himanshu40
378d541fbc Add support for MX Linux 2019-08-24 16:40:02 +10:00
Sebastian Huber
15e9f6c731 Change Linux default prefix to "/opt"
http://refspecs.linuxbase.org/FHS_3.0/fhs/ch03s13.html#purpose14
2019-01-17 11:29:50 +01:00
Ralf Ramsauer
b43c7d7737 Add distro aliases for Gentoo hosts
Gentoo stores most of the basic stuff in /bin and not /usr/bin. Default
values do not work for Gentoo. Add 'gentoo' as a new variation.

Signed-off-by: Ralf Ramsauer <ralf.ramsauer@oth-regensburg.de>
2017-01-10 08:45:24 +11:00
Chris Johns
3a972f6102 sb: Update code base to support Python3 and Python2.
Fix Windows support to allow MSYS2 Python to be used.

Updates #2619.
2016-03-07 15:02:58 +11:00
Chris Johns
c6cc169b2d sb: Support Linux Mint.
This support is provided by m86k-user <linux.jutten@xmsnet.nl>.
2014-06-04 19:37:18 +10:00
Chris Johns
a14171f524 sb: Add _host_os_version to all supported hosts. 2014-04-10 18:26:42 +10:00
Dhananjay Balan
54a2a5f304 distro_ver fails on Non-LSB distros. 2013-06-04 08:39:46 +10:00
Chris Johns
b83b596ba0 Fix the core detection on Linux. 2013-05-16 15:34:00 +10:00
Chris Johns
db65c6aaf1 Support Canadian cross builds on FreeBSD (and other hosts).
Set up the rules to manage the separate host and build setting to
allow a Canadian cross to complete.

Update the scripts to move the build directory and host/build
flags into the defaults so they are common for all build
configurations.
2013-05-15 12:15:14 +10:00
Chris Johns
a128418655 Use float for version number such as CentOS 6.3. 2013-05-01 05:17:11 +10:00
Chris Johns
cb5fc2c4df The dist version is index 1 not 2. 2013-04-30 17:27:40 +10:00
Chris Johns
49c668c3bf Fix the dist_ver bug. Covert the string to an int. 2013-04-30 17:23:18 +10:00
Chris Johns
a202f3e023 Add SuSE variations. 2013-04-25 17:50:08 +10:00
Chris Johns
40fec60c2a Update for Fedora 17 changes. 2013-04-25 15:30:48 +10:00
Chris Johns
97458480d7 Add touch for Redhat hosts. 2013-04-24 16:19:09 +10:00
Chris Johns
0add2eaa70 PR 2108, PR 2109. Add --jobs and --always-clean.
Refactor the options handling in defaults.py to allow the --jobs
option have varing specific parameters. The option supports 'none',
'max' and 'half' or a fraction to divide the number of CPUs or
an integer value which is the number of jobs. The --no-smp has
been removed.

The host specific modules have been changed to set the number of
CPUs in the defaults table.

Fixed the --keep-going to clean up is --always-clean is provided
even if the build has an error.
2013-04-03 14:31:41 +11:00
Chris Johns
fbc946c0b1 Fix the CPU count on Linux. 2013-04-02 17:54:21 +11:00
Chris Johns
3351e1575d Add distro aliases to group similar types. 2013-03-15 17:00:38 +11:00
Chris Johns
c3ab00c2a4 Remove tabs. Add a safe way to default to a distro. 2013-03-15 16:15:23 +11:00
Dhananjay Balan
2feb624768 Arch specific additions 2013-03-15 16:10:49 +11:00
Dhananjay Balan
2c2c6bc824 Linux Distro specific path names 2013-03-15 16:10:34 +11:00
Chris Johns
0c84a4fa1e Add support for Raspberry Pi. 2013-02-22 16:44:28 +11:00
Chris Johns
d16619161c Add support for Fedora 16. 2012-11-08 13:12:10 +11:00
Chris Johns
3d5b64d2dc Add -pipe to the compiler options. 2012-11-07 08:41:23 +11:00
Chris Johns
b37e771d78 Fix silly bug. 2012-11-06 19:17:50 +11:00
Chris Johns
9ffdc67142 Add support for Ubuntu. 2012-11-06 18:46:59 +11:00
Chris Johns
c80560d9a4 Move into the source-builder tree. 2012-11-06 10:09:40 +11:00