Merge pull request #329 from betterpagesol/master

Added fix for Raspbian 12 and minor edits to the Makefile for clean and install
This commit is contained in:
F5OEO 2024-09-30 22:25:53 +02:00 committed by GitHub
commit ee7ff57b77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 2 deletions

View File

@ -38,7 +38,13 @@ read -r CONT
if [ "$CONT" = "y" ]; then
echo "Set GPU to 250Mhz in order to be stable"
LINE='gpu_freq=250'
if [ ! -f /boot/firmware/config.txt ]; then
echo "Raspbian 11 or below detected using /boot/config.txt"
FILE='/boot/config.txt'
else
echo "Raspbian 12 detected using /boot/firmware/config.txt"
FILE='/boot/firmware/config.txt'
fi
grep -qF "$LINE" "$FILE" || echo "$LINE" | sudo tee --append "$FILE"
#PI4
LINE='force_turbo=1'

View File

@ -92,7 +92,7 @@ CFLAGS_Pidcf77 = -Wall -g -O2 -Wno-unused-variable
../pidcf77 : ../dcf77/pidcf77.c
$(CC) $(CFLAGS_Piam) -o ../pidcf77 ../dcf77/pidcf77.c $(LDFLAGS)
clean:
rm -f ../dvbrf ../sendiq ../pissb ../pisstv ../pifsq ../pifm ../piam ../pidcf77 ../pichirp ../tune ../freedv ../piopera ../spectrumpaint ../pocsag ../pifmrds ../rpitx ../sendook
rm -f ../dvbrf ../sendiq ../pissb ../pisstv ../pifsq ../pifm ../piam ../pidcf77 ../pichirp ../tune ../freedv ../piopera ../spectrumpaint ../pocsag ../pifmrds ../rpitx ../sendook ../foxhunt ../morse ../pift8
install: all
install -m 0755 ../pisstv $(INSTALL_DIR)
@ -108,4 +108,10 @@ install: all
install -m 0755 ../pift8 $(INSTALL_DIR)
install -m 0755 ../sendook $(INSTALL_DIR)
install -m 0755 ../dvbrf $(INSTALL_DIR)
install -m 0755 ../pifmrds $(INSTALL_DIR)
install -m 0755 ../pifmrds $(INSTALL_DIR)
install -m 0755 ../pocsag $(INSTALL_DIR)
install -m 0755 ../pissb $(INSTALL_DIR)
install -m 0755 ../piam $(INSTALL_DIR)
install -m 0755 ../pidcf77 $(INSTALL_DIR)
install -m 0755 ../spectrumpaint $(INSTALL_DIR)
install -m 0755 ../morse $(INSTALL_DIR)