Add conforming CDFS ID string

If we are not loading CDFS through the resident rt_Init code, we need to
provide our own creator name. Make it follow the conventions of the other
filesystem drivers.
This commit is contained in:
Stefan Reinauer 2023-11-11 11:04:17 -08:00
parent 58de877be8
commit 74d5d1720d
3 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,7 @@
NOW := $(shell date '+%Y-%m-%d %H:%M:%S')
DATE := $(firstword $(NOW))
TIME := $(lastword $(NOW))
ADATE := $(shell date '+%-d.%-m.%Y')
OBJDIR := objs
ROM := a4091.rom
@ -36,7 +37,7 @@ NDK_PATH := $(firstword $(wildcard $(NDK_PATHS)))
# CFLAGS for a4091.device
#
CFLAGS := -DBUILD_DATE=\"$(DATE)\" -DBUILD_TIME=\"$(TIME)\"
CFLAGS := -DBUILD_DATE=\"$(DATE)\" -DBUILD_TIME=\"$(TIME)\" -DAMIGA_DATE=\"$(ADATE)\"
CFLAGS += -D_KERNEL -DPORT_AMIGA
#DEBUG += -DDEBUG # Show basic debug
#DEBUG += -DDEBUG_SYNC # Show Synchronous SCSI debug

View File

@ -63,7 +63,7 @@ void parse_romfiles(void)
}
}
const char cdfs_id_string[] = "CDFileSystem (A4091)";
extern const char cdfs_id_string[];
int add_cdromfilesystem(void)
{

View File

@ -12,3 +12,9 @@ const char * const version_str =
XSTR(DEVICE_REVISION) " (" BUILD_DATE ")"
/* format: "name version.revision (yyyy-mm-dd)" */
const char device_id_string[] = DEVICE_ID_STRING;
#define CDFS_ID_STRING "CDFileSystem " XSTR(DEVICE_VERSION) "." \
XSTR(DEVICE_REVISION) " (" AMIGA_DATE ")\r\n"
/* format: "name version.revision (dd.mm.yyyy)" */
const char cdfs_id_string[] = CDFS_ID_STRING;