RTEMS: auto-detect OS_API

This commit is contained in:
Michael Davidsaver
2020-09-09 20:47:56 -07:00
committed by Brendan Chandler
parent bba7d8c8f8
commit e2e606d53f
3 changed files with 4 additions and 17 deletions
+2 -16
View File
@@ -94,29 +94,15 @@ MODEXT=.obj
# operating system class (include/os/<os_class>)
OS_CLASS = RTEMS
#--------------------------------------------------
#print warning
ifeq ($(RTEMS_HAS_POSIX_API),no)
ifeq ($(EPICS_VERSION),7)
$(error Warning: Epics Version $(EPICS_VERSION) must not be used without POSIX enabled on RTEMS !!!)
endif
endif
# operating system API (src/os/<os_class>-<os-api>)
ifeq ($(RTEMS_HAS_POSIX_API),yes)
OS_API = posix
else
OS_API = kernel
endif
#--------------------------------------------------
# Operating system flags
#OP_SYS_LDLIBS += -lrtemsCom -lc -lrtemscpu -lCom -lnfs -lm
ifeq ($(RTEMS_API),5)
ifeq ($(OS_API),posix)
OP_SYS_CFLAGS += -D__LINUX_ERRNO_EXTENSIONS__
#OP_SYS_LDLIBS += -lrtemsCom -lrtemscpu -lrtemsbsp -ltftpfs -ltelnetd -lbsd -lz -lm
OP_SYS_LDLIBS += -lrtemsCom -lc -lrtemscpu -ltftpfs -lbsd -lz -lm
else
OP_SYS_LDLIBS += -lrtemsCom -lrtemscpu -lrtemsbsp
OP_SYS_LDLIBS += -lrtemsCom -lc -lrtemscpu -lCom -lnfs -lm
endif
ifeq ($(RTEMS_HAS_NETWORKING),yes)
+1
View File
@@ -7,6 +7,7 @@
#
RTEMS_BSP = pc386
RTEMS_TARGET_CPU = i386
GNU_TARGET = i386-rtems
MUNCH_SUFFIX = .boot
define MUNCH_CMD
+1 -1
View File
@@ -37,7 +37,7 @@ rtemsCom_SRCS += epicsRtemsInitHookPost.c
rtemsCom_SRCS += epicsMemFs.c
rtemsCom_SRCS += epicsNtp.c
ifeq ($(RTEMS_BSP),pc386)
ifeq ($(RTEMS_TARGET_CPU),i386)
rtemsCom_SRCS += ne2kpci.c
endif