Commit graph

49 commits

Author SHA1 Message Date
Cristi Mitrana
ea8db8e311
snesdev: updates for the new version
New version needs WiringPi, but not the original version that got discontinued. There's an active fork of WiringPi which also provides `.deb` files, so check whether this new version is installed first before compiling locally a static version and using it.

Other modifications:

* modified the installation/build to use `$md_build` and handle the installation ourselves, instead of using the upstream `make` targets. This means the driver is copied to `/opt/retropie` (just like `xboxdrv`) instead of being located in `/usr/local`.
* added a `systemd` unit file to start the driver and don't rely on the upstream `rc.d` service scripts.
2025-03-02 07:38:56 +02:00
Monster Joysticks
71e7fbbc8e
snesdev: change upstream for better compatibility
Point to an updated driver repository that uses the WiringPi library for compatibility with all Raspberry Pi Versions.
2025-03-02 07:33:13 +02:00
cmitu
4a60d88a5d drivers: disable GPIO kernel module drivers on Pi5
The Pi5 uses a different architecture for the GPIO pins, which is not compatible with previous models.
All GPIO functions are now handled by the RP1 [1] southbridge chip and the GPIO reading mechanism used in previous models doesn't work here.

Disabled drivers:
 - gamecond and db9 (gamecondriver)
 - mk_arcadejoystick_rpi
 - snesdev

[1] https://www.raspberrypi.com/documentation/microcontrollers/rp1.html
2023-12-19 04:14:09 +00:00
Jools Wills
5010c5fd69 Use rp_module_repo for some packages that don't install to md_build by default
Mostly drivers and supplementary packages - most install to md_inst which should be handled better now,
but also adjusted sixaxis to use md_build rather than a subfolder in md_build as it didn't seem to require it.
2021-02-15 23:54:13 +00:00
Jools Wills
9ec0ff153d some more missing local declarations 2017-09-19 15:09:55 +01:00
Jools Wills
805b788efc some missing local variable definitions, and variable renaming of choices to choice 2017-09-19 15:04:33 +01:00
5StringsOfDoom
902681124e service install not working
changed the 'make -C "$md_inst" make installservice' command and removed the additinal 'make' in the request.
2017-03-27 10:53:35 +01:00
Jools Wills
da95bf3f14 added more noinstclean flags 2017-02-07 00:46:47 +00:00
Jools Wills
d5b59acaa5 snesdev - added remove function 2017-01-23 19:40:43 +00:00
Jools Wills
bd57254b35 snesdev - menu order 2017-01-23 18:02:17 +00:00
Jools Wills
2fae2e3bd2 snesdev - styleguide 2017-01-23 18:00:18 +00:00
Jools Wills
e697de9ce3 snesdev - install snesdev in $md_inst 2017-01-23 17:57:59 +00:00
Jools Wills
14cc370643 cosmetic - trailing whitespace 2016-09-27 23:05:40 +01:00
Jools Wills
e385457a7b cosmetic - remove trailing spaces in copyright 2016-08-11 03:23:30 +01:00
Jools Wills
889f8ecdfa Initial rewrite of the setup menu, including per package/module management
* rp_module_menus is no more - instead use rp_module_section with one of
   - core (core packages)
   - main (main packages - which will be installed by default in the image)
   - opt (optional packages)
   - exp (experimental packages)
   - driver (driver packages)
   - config (configuration packages / tools)

 * The setup menu organises the data based on the above sections. more could be added in the future if needed. Packages (internally modules), can be added / configured / removed individually, or as entire sections.

 * The setup menu will automatically detect if a binary is available to be installed. the nobin flag is no longer needed. modules that install directly from binary via aptInstall or via a prebuilt binary need to use an install_bin_ function instead of install_

 * rp_module_section of type "config" will have the "gui_" function called first if it's available, otherwise a standard depends/sources/build/install/configure will be called

 * configure is no longer used for "gui" configuration function - use gui_ instead. Had already started to move to this before, but now it is required.
2016-06-06 22:08:36 +01:00
Jools Wills
1dbd3721f3 dialog title wording 2015-12-18 02:37:34 +00:00
Jools Wills
0af0a45be8 make check for installed snesdev stricter - check for file not folder 2015-10-23 16:24:21 +01:00
Jools Wills
0b2a33ce74 no bonary shipped of snesdev 2015-10-23 16:03:10 +01:00
Jools Wills
e7282e424e use rp_callModule for snesdev - so we are in the correct directories, and module function is output 2015-10-23 16:01:39 +01:00
Jools Wills
103f41c698 remove break (not in loop) 2015-10-23 15:56:27 +01:00
Jools Wills
41aa49d762 snesdev breaks with parallel build - force one job #1053 2015-10-18 15:33:48 +01:00
Jools Wills
d7f843d473 copyright sp / minor wording tweak 2015-10-12 00:09:22 +01:00
Florian
db0dd30692 CHG: Updated copyright information. 2015-10-11 21:03:16 +02:00
Jools Wills
b42a95d89c don't build binaries for snesdev - it doesn't take too long to build, and isn't needed by everyone 2015-10-04 20:20:58 +01:00
Jools Wills
a6933a6445 use githubs preferred access protocol - https:// - before we had mixed git:// and http:// around the code 2015-06-16 16:50:37 +01:00
Jools Wills
ce8ede4def updated licence url (to RetroPie org). Remove . at end of licence url to avoid any confusion 2015-06-16 16:41:34 +01:00
Florian
4df425c338 CHG: Updated header information 2015-03-28 06:19:16 +01:00
Florian
aab7fbd52d CHG: Added license information to all files 2015-03-27 17:28:38 +01:00
Jools Wills
94b497ef07 intentation changes (to be more consistent with 4 spaces indentation) 2015-02-26 04:51:05 +00:00
Jools Wills
d87c7b9a36 use printMsgs for msgbox dialogs and add some /dev/tty redirects to gamecondriver dialogs 2015-02-26 03:52:09 +00:00
Jools Wills
49bdb68955 rework of message / error handling:
* use arrays for info/error messages
 * create a helper function to print our information to console/dialog etc
 * rename prebious printMsg to printHeading
 * fix for duplication of error messages in rp_callModule
2015-02-15 20:28:02 +00:00
Jools Wills
81f650f97a styleguide changes:
* some more indentation fixes
2015-01-11 18:01:10 +00:00
Jools Wills
231051ccad styleguide changes:
* add newline to end of main scripts
2015-01-11 17:32:20 +00:00
Jools Wills
2fd9bd4e71 styleguide changes:
* [[ "a" != "" ]] -> [[ -n "a" ]]
2015-01-11 17:19:51 +00:00
Jools Wills
641178f761 styleguide changes:
* [ ] -> [[ ]]
  * [ a = b ] -> [[ a == b ]]

note asplashscreen script left with [ ] as it doesn't specify bash directory
2015-01-11 17:11:11 +00:00
Jools Wills
95d1ca4796 handle snesdev install after install_bin 2015-01-07 00:30:51 +00:00
Jools Wills
eb8e0c79f8 push/popd rather than cd 2015-01-04 15:31:21 +00:00
Jools Wills
344b57a464 should be -d, not -f 2015-01-04 11:37:08 +00:00
Jools Wills
451022ffb9 fixed up installing of snesdev from binary archive. the build directory wouldn't be there, so we need to do the make install from the install
directory.
no need for recursive copy / tweak mkdir
2015-01-04 11:35:29 +00:00
Jools Wills
32419850b9 reworked ini/config setting to reduce copy/paste and make the calling simpler. Since the most common usage is to change a few configuration
values at once, we now have a iniConfig function that sets up the delimiter type (such as "=" or " = "), the value quote
character (often "" nothing or "\"" a single quote) and the filename. you can then just call "iniSet" or "iniUnset" with two parameters
for key and value. A third parameter can be used in case you wish to use the current ini settings but on a different file. We should now easily
be able to handle any key/value configs whilst keeping the code simple/compact
2015-01-03 13:38:57 +00:00
Jools Wills
440d4de83a cosmetic - tab -> spaces 2014-12-24 13:04:50 +00:00
Florian
fc6a0990dd Updated snesdev module for new binaries organization 2014-12-24 12:46:58 +01:00
Jools Wills
5f2edd2b87 adjust snesdev for new build location / system 2014-12-13 09:19:23 +00:00
Florian
b3f2e75d91 Updated SNESDev module 2014-09-27 07:57:06 +02:00
Florian
c455318bca Enhanced module snesdev, removed module snesdev2x 2014-08-30 18:10:20 +02:00
Florian
684b9e90d7 Added module snesdev2x, renamed module snesdev to snesdev1x 2014-08-30 17:24:27 +02:00
Florian
82c9d6ae88 Updated module snesdev 2014-08-30 17:12:15 +02:00
Jools Wills
d07f45028b de-duplicate setting of dialog backtitle everywhere - use a global variable and set it in retropie_setup.sh once 2014-08-02 18:52:05 +01:00
Jools Wills
de6cec861f split supplementary.sh into auto-loading modules 2014-07-20 20:35:26 +01:00