remove unused case conversion & add -mtune=cortex-a9 to Makefile

This commit is contained in:
bbond007
2020-08-19 13:36:13 -04:00
parent cd1b5fb479
commit 8b1ac47a13
4 changed files with 1 additions and 4 deletions

View File

@@ -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

BIN
midilink

Binary file not shown.

3
misc.c
View File

@@ -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;
}

BIN
mlinkutil

Binary file not shown.