Commit graph

272 commits

Author SHA1 Message Date
cmitu
44c33c1ffa system - update KDE neon detection for 20.04 2021-01-05 17:21:58 +00:00
Jools Wills
1f3716aa95 system / setup - Raspbian Stretch is no longer supported
Disable binaries for Raspbian Stretch and adjust warning message accordingly.
2020-12-17 03:07:49 +00:00
Jools Wills
ca8a74a865 system - fix default cxxflags logic which used the wrong variable - oops
* no longer need to duplicate the cxxflags in odroid platform config
2020-10-14 06:30:47 +01:00
Jools Wills
e05ba36689 system - set __default_cxxflags to __default_cflags for odroid-xu/tinker
* the -DGL_GLEXT_PROTOTYPES define is required for c++ also (this likely broke during recent system.sh refactoring)
 * fixes lr-mupen64plus building and possibly other modules
 * remove unneeded space in __default_cflags assignment
2020-10-12 08:15:00 +01:00
Jools Wills
1d72f28364 system - simplify some cpu flags to use -mcpu=
* according to GCC docs, this should be equivalent - historically, in some cases older GCC had some issues (or wasn't aware of the CPU depending on version), but shouldn't be an issue now.
 * don't use -mcpu=native for odroid-c2 64bit, in case we want to force target/cross compile
2020-10-12 06:08:35 +01:00
Jools Wills
aaf0dcf92e system - remove -mfloat-abi=hard for all arm targets
* I don't believe we support any OS that defaults to soft floats for arm.
2020-10-12 05:57:13 +01:00
Jools Wills
e019b5f507 system - force -marm mode on odroid
* GCC on Ubuntu 18.04 for Odroid XU defaults to -mthumb which isn't a good default for RetroPie.
 * fixes building/linking with lr-flycast - we override the (messy) Makefile logic which set this previously.
 * -marm has been for other odroid platforms as a precaution in case their OS versions have similar defaults (unchecked).
2020-10-12 05:30:17 +01:00
Jools Wills
2f06d303f5 system - use port 80 for retrieving gpg key from keyserver.ubuntu.com 2020-10-07 19:19:37 +01:00
Jools Wills
6682e80401
Merge pull request #3220 from joolswills/signed_bins
system / packages - added signing of binary packages
2020-09-25 03:18:48 +01:00
Jools Wills
bb92cfbd1e system - added recognition for Jetson Nano and Tegra X1
* by user request - not officially supported
2020-09-13 00:47:15 +01:00
Jools Wills
178e107cd4 system - missed __platform_flags switch to array for odroid-xu 2020-09-12 18:15:16 +01:00
Jools Wills
ddabb2a902 system / packages - added signing of binary packages
* default signing key can be overridden with __gpg_signing_key
 * added gpg dependency by default
 * download retropie key from ubuntu keyserver if it doesn't exist in keyring
 * added download helper function
 * rework logic for rp_installBin and rp_createBin
 * copy secret key to chroots for package building
2020-09-10 06:25:45 +01:00
Jools Wills
b3ac77032c system - fix issue with dispmanx flag not being set in chroot environment
This only affected amiberry binaries since Feb 2020 when the build logic was switched
to use this flag. This meant a pure SDL2 version was being built rather than the dispmanx+SDL2 version.

Also corrected the flag setting which was changed in the rpi_aarch64 branch to be an array but this was missed.
The code actually still worked, but it should have been +=(dispmanx) not +=" dispmanx".

__has_dispmanx env var can be used to force this flag for kms/fkms.
2020-08-09 02:00:27 +01:00
Jools Wills
faa14f44e6 system / setup - added __arch global with system architecture and include in retropie-setup
* include in logging and retropie-setup main menu heading, with some reformatting changes
2020-07-30 04:28:30 +01:00
Jools Wills
29daf7b77a system - make Raspberry Pi OS for aarch64 identify as Raspbian for now for compatibility 2020-07-30 04:28:30 +01:00
Jools Wills
3bfbef58cb system - add aarch64 config for the rpi3/rpi4
* check for 32bit to enable binaries for rpi
 * use -mcpu only for rpi3/rpi4 aarch targets - but we need to revisit and simplify gcc params for 32bit targets also
2020-07-30 04:28:30 +01:00
Jools Wills
62cbe817b8 system / helpers - use an array for __platforn_flags
* set 32/64bit flag early to be used in platform configuration
 * add __platform to platform flags early on rather in isPlatform check
2020-07-30 04:28:30 +01:00
Jools Wills
97d6ee3bb6 system - make sure we don't ever set __jobs to 0 2020-07-05 09:18:29 +01:00
Jools Wills
0aca31fee0 system - lower LinuxMint 18 debian equivalent to 8 as with Ubuntu (fixes libpng-dev logic) 2020-07-05 09:11:53 +01:00
Jools Wills
ee8c64a6d9 system - update os version variables for latest Ubuntu / Mint
* currently cosmetic mostly as nothing relies on them over previous versions
2020-07-03 05:21:45 +01:00
Jools Wills
021040451c system - factor in 64bit when allocating build jobs
* add half as much again for required ram per job
 * simplify as no longer need the old logic to limit to 2 jobs
2020-07-03 02:51:55 +01:00
Jools Wills
a7090770a0 system - limit max jobs depending on available memory and remove -pipe parameter
* odroid xu has 8 cores but only 2GB ram - so building with 8 threads is likely to run out of memory. The new logic would allow 3 max
 * -pipe option is an old retropie parameter, and may cause issues in some low memory situations. Safer to remove it by default.
2020-07-03 02:32:00 +01:00
Jools Wills
59edf718e0 system - LinuxMint 20 changed distributor id from LinuxMint to Linuxmint - add the alternative to get_os_version 2020-07-02 19:08:37 +01:00
Jools Wills
2d7297d2d2 system - incorrect comparison - ubuntu 16.04 should also use __os_debian_ver="8" 2020-06-30 18:21:46 +01:00
Timothy Allen
800808f777 add detection for systemd-nspawn 2020-06-26 23:41:24 -04:00
Jools Wills
4ddb7cb24c Adjust GCC comparisons to use major version only to fix version comparing
Older GCC on at least Debian used to output a 3 part version like 6.3.0 with gcc -dumpversion

Newer GCC / OS seems to only output the major version which broke comparisons as dpkg will consider a version such as "6" to be lower than 6.0.0
2020-05-19 20:16:24 +01:00
Jools Wills
57765569cb added recognition of Pop! OS (based on Ubuntu) 2020-05-12 17:33:07 +01:00
meleu
9a6c857800
consistency in arithmetic expansion
Noticed some messages right after calling retropie_setup.sh and before the dialog:
```
/home/meleu/RetroPie-Setup/scriptmodules/system.sh: linha 49: "8078788" / 1024 : erro de sintaxe: operando esperado (token com erro é ""8078788" / 1024 ")
```
It happens because the bash version on the computer I'm running it is 4.3, and it doesn't accept quotes inside the arithmetic expansion `$((...))`.

I also removed the `$` prefix for variables for consistency (like used on line 56).
2020-05-02 01:39:05 -03:00
Jools Wills
e07931f60c joy2key - convert to python3 and use python3-pyudev dependency
* Ubuntu 20.04 will no longer include python-pyudev
 * Use stderr for /dev/tty opening error msg
 * Use python3 in runcommand module for compilation
 * Open with 'append' which was added in f614804f fails with python3 on rpi4 console. Use lower level os.open and O_WRONLY to avoid possible buffer issues. Could not reproduce the ghost inputs the append was added for
2020-04-12 02:01:27 +01:00
Jools Wills
3e827c1c30 system - workaround for older kernels without MemAvailable via /proc/meminfo 2020-03-19 06:29:52 +00:00
Jools Wills
729797916a system - fix typo 2020-03-10 05:19:32 +00:00
Jools Wills
8246f90fec system - rework compiler flags
* use __cflags / __cxxflags / __asflags / __makeflags to avoid any issues with existing environment vars
   (although by default sudo will not pass them through)
 * use ___default_cpu_flags in platform_functions instead of putting everything in __default_cflags
 * remove optisation level from platform functions - can be overridden with __opt_flags
2020-03-08 06:26:07 +00:00
Jools Wills
9426d6fb0f system - remove unused __default_asflags vars in platforms 2020-03-08 06:26:07 +00:00
Jools Wills
c3751a4f0e system - remove auto vectorization cflags
* can produce bad code (eg zdoom had issues before)
 * no measurable performance increase from testing - but can add back for some modules if proven useful
2020-03-08 06:26:07 +00:00
Jools Wills
99bf1f6678 system - split out more init code into functions for readability 2020-03-08 06:26:07 +00:00
Jools Wills
16361a4f7e system - the test for chroot function got duplicated - probably during the dev branch reintegration 2020-03-08 06:26:07 +00:00
Jools Wills
385777199a system - automatically set -jX for make, and set __jobs variable with concurrency value 2020-03-08 06:26:07 +00:00
Jools Wills
92ce0d2d23 system - use /proc/meminfo for memory info globals and split out to function
we now have these - currently unused except in system (but will be used in rpSwap function)

__memory_total_kb = total physical memory in Kilobytes
__memory_fofal = total physical memory in Megabytes
__memory_free_kb = free memory in Kilobytes including cached memory (but not swap)
__memory_free = free memory in Megabytes

minor cosmetic cleanup to comment / logic to add -pipe
2020-03-08 06:26:07 +00:00
hissingshark
032adbad75 No need to advertise Vero4K as vero4k! 2020-03-06 22:17:54 +00:00
hissingshark
87d1e19b0e Advertise Vero4K as a Mali platform 2020-03-02 06:38:46 +00:00
Jools Wills
ab12464eba system - allow forcing __has_kms to 0 2020-02-10 02:17:51 +00:00
Jools Wills
04bca92fc7 system - cosmetic - code ordering / trailing whitespace 2019-12-28 01:06:24 +00:00
Jools Wills
e6f6f38aed retroarch - need to use the the binary base url - without platform
* added __binary_base_url to system.sh for this
2019-12-28 01:01:20 +00:00
Jools Wills
30c5fdffa3 system - re-enable binaries for Raspbian 10 (Buster) 2019-12-26 00:24:43 +00:00
Jools Wills
00fedbe865 Merge remote-tracking branch 'retropie/master' into fkms_rpi4 2019-12-24 04:14:27 +00:00
Jools Wills
fc7f46268d system - fix double distcc path in MAKEFLAGS that broke distcc disabling code
also switched to using DISTCC_HOSTS="" to disable distcc when needed as previous
string replacement was hacky/unreliable and failed due to path duplication bug as
only the first path was removed from MAKEFLAGS
2019-12-24 04:07:00 +00:00
Jools Wills
cf5c76ce35 Merge remote-tracking branch 'retropie/master' into fkms_rpi4 2019-12-23 06:43:28 +00:00
Jools Wills
adc721a44d system - added qemu cpu var for rpi3 for use in chroot 2019-12-23 05:49:33 +00:00
Jools Wills
bc925e7ba5 system - allow overriding of __has_binaries for development 2019-12-19 05:10:27 +00:00
Jools Wills
30f55cf1e2 Merge remote-tracking branch 'retropie/master' into fkms_rpi4 2019-12-06 03:30:45 +00:00