mirror of
https://github.com/MiSTer-devel/MidiLink_MiSTer.git
synced 2026-05-24 03:04:13 +00:00
remove unused case conversion & add -mtune=cortex-a9 to Makefile
This commit is contained in:
2
Makefile
2
Makefile
@@ -1,6 +1,6 @@
|
||||
CC=arm-linux-gnueabihf-gcc
|
||||
STRIP=arm-linux-gnueabihf-strip
|
||||
CCFLAGS=-Ialsa/include -Lalsa/lib -Ofast -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations
|
||||
CCFLAGS=-Ialsa/include -Lalsa/lib -Ofast -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations
|
||||
LDFLAGS=-lasound -lm -pthread
|
||||
all :
|
||||
$(CC) $(CCFLAGS) $(LDFLAGS) main.c modem.c serial.c serial2.c misc.c udpsock.c tcpsock.c alsa.c ini.c directory.c modem_snd.c -o midilink
|
||||
|
||||
3
misc.c
3
misc.c
@@ -173,8 +173,6 @@ void misc_swrite_no_trans(int fdSerial, const char* format, ... )
|
||||
int misc_check_args_option (int argc, char *argv[], char * option)
|
||||
{
|
||||
int result = FALSE;
|
||||
char * OPTION = strdup(option);
|
||||
misc_str_to_upper(OPTION);
|
||||
if(argc > 1)
|
||||
for (int i = 1; i< argc; i++)
|
||||
{
|
||||
@@ -184,7 +182,6 @@ int misc_check_args_option (int argc, char *argv[], char * option)
|
||||
break;
|
||||
}
|
||||
}
|
||||
free(OPTION);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user