summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/linux.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sb/linux.py: More reliably recognize distributionMichael South2023-11-171-30/+59
| | | | | | | If available, use "distro" package (introduced Python 3.6, back-ported to 2.6) to recognize Linux distributions and versions. Updates #4966
* sb/linux.py: Simplify "distro" determinationSebastian Huber2022-01-241-7/+3
| | | | | This fixes an issue on Debian 11 which contains "Debian" in /etc/issue (capital D).
* sb: Fix the imports on Python2Chris Johns2020-08-281-1/+1
| | | | Updates #4037
* sb: Use shebang env pythonChris Johns2020-08-251-2/+2
| | | | Closes #4037
* sb/linux.py: Workaround for Python >= 3.8Anders Montonen2020-04-281-7/+11
| | | | | | | | | | | | | | | 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>
* sb: Use multiprocessing.cpu_count()Sebastian Huber2020-03-051-16/+2
| | | | | The previous implementation does not work on some Linux distributions, e.g. Debian on sparc64. Use a standard function instead.
* Add support for MX LinuxHimanshu402019-08-241-1/+1
|
* Change Linux default prefix to "/opt"Sebastian Huber2019-01-171-0/+1
| | | | http://refspecs.linuxbase.org/FHS_3.0/fhs/ch03s13.html#purpose14
* Add distro aliases for Gentoo hostsRalf Ramsauer2017-01-101-0/+6
| | | | | | | 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>
* sb: Update code base to support Python3 and Python2.Chris Johns2016-03-071-1/+1
| | | | | | Fix Windows support to allow MSYS2 Python to be used. Updates #2619.
* sb: Support Linux Mint.Chris Johns2014-06-041-1/+1
| | | | This support is provided by m86k-user <linux.jutten@xmsnet.nl>.
* sb: Add _host_os_version to all supported hosts.Chris Johns2014-04-101-13/+15
|
* distro_ver fails on Non-LSB distros.Dhananjay Balan2013-06-041-2/+6
|
* Fix the core detection on Linux.Chris Johns2013-05-161-1/+1
|
* Support Canadian cross builds on FreeBSD (and other hosts).Chris Johns2013-05-151-1/+8
| | | | | | | | | 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.
* Use float for version number such as CentOS 6.3.Chris Johns2013-05-011-2/+2
|
* The dist version is index 1 not 2.Chris Johns2013-04-301-1/+1
|
* Fix the dist_ver bug. Covert the string to an int.Chris Johns2013-04-301-2/+2
|
* Add SuSE variations.Chris Johns2013-04-251-0/+4
|
* Update for Fedora 17 changes.Chris Johns2013-04-251-3/+12
|
* Add touch for Redhat hosts.Chris Johns2013-04-241-1/+2
|
* PR 2108, PR 2109. Add --jobs and --always-clean.Chris Johns2013-04-031-5/+4
| | | | | | | | | | | | | | 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.
* Fix the CPU count on Linux.Chris Johns2013-04-021-1/+1
|
* Add distro aliases to group similar types.Chris Johns2013-03-151-11/+28
|
* Remove tabs. Add a safe way to default to a distro.Chris Johns2013-03-151-10/+13
|
* Arch specific additionsDhananjay Balan2013-03-151-1/+2
|
* Linux Distro specific path namesDhananjay Balan2013-03-151-9/+19
|
* Add support for Raspberry Pi.Chris Johns2013-02-221-9/+16
|
* Add support for Fedora 16.Chris Johns2012-11-081-19/+20
|
* Add -pipe to the compiler options.Chris Johns2012-11-071-1/+1
|
* Fix silly bug.Chris Johns2012-11-061-1/+1
|
* Add support for Ubuntu.Chris Johns2012-11-061-63/+74
|
* Move into the source-builder tree.Chris Johns2012-11-061-0/+63