For having official A2560U-compatible build

I found that with D__NOINLINE__, VBCC string functions (at least strcmp) are broken ! :(
This commit is contained in:
Vincent Barrilliot 2023-11-07 22:22:14 +01:00
parent e50a7f54d3
commit c7a2431985
2 changed files with 5 additions and 3 deletions

View file

@ -81,9 +81,10 @@ endif
export AS = vasmm68k_mot
export ASFLAGS = $(VASM_CPU) -quiet -Fvobj -nowarn=62 -DMODEL=$(MODEL_NUMBER)
export CC = vc
DEFINES = -DCPU=$(CPU_NUMBER) -DMODEL=$(MODEL_NUMBER) -D__NOINLINE__ # -DKBD_POLLED
DEFINES = -DCPU=$(CPU_NUMBER) -DMODEL=$(MODEL_NUMBER)# -D__NOINLINE__ # -DKBD_POLLED
# Logging level
# Logging level, see log_level.h
DEFAULT_LOG_LEVEL=
ifeq ("$(DEFAULT_LOG_LEVEL)","")
else
DEFINES := $(DEFINES) -DDEFAULT_LOG_LEVEL=$(DEFAULT_LOG_LEVEL)

View file

@ -345,6 +345,7 @@ short cli_exec(short channel, char * command, int argc, const char * argv[]) {
while ((commands != 0) && (commands->name != 0)) {
// Does the command match the name?
if (strcmp(commands->name, command) == 0) {
//print(channel,"Executing:");print(channel,commands->name);print(channel,"\r\n");
// Found it, execute the handler
return commands->handler(channel, argc, argv);
} else {
@ -879,7 +880,7 @@ void cli_setup_screen(short channel, const char * path, short is_active) {
print_banner(channel, cli_sys_info.model);
sprintf(message, "\nFoenix/MCP (Vincent's fork) v%02u.%02u.%04u\n\n", (unsigned int)cli_sys_info.mcp_version, (unsigned int)cli_sys_info.mcp_rev, (unsigned int)cli_sys_info.mcp_build);
sprintf(message, "\nFoenix/MCP v%02u.%02u.%04u\n\n", (unsigned int)cli_sys_info.mcp_version, (unsigned int)cli_sys_info.mcp_rev, (unsigned int)cli_sys_info.mcp_build);
print(channel, message);
print(channel, "Type HELP or ? for help.\n");
}