mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
After discussion with Eric Norum <eric@skatter.usask.ca>,
I added __INSIDE_RTEMS_BSD_TCPIP_STACK__ that trips all the needed macro definitions for a network driver.
This commit is contained in:
@@ -35,8 +35,7 @@ include $(RTEMS_ROOT)/make/lib.cfg
|
||||
# Add local stuff here using +=
|
||||
#
|
||||
|
||||
DEFINES += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \
|
||||
-DDIAGNOSTIC -DBOOTP_COMPAT
|
||||
DEFINES += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
|
||||
CPPFLAGS +=
|
||||
CFLAGS += $(LIBC_DEFINES)
|
||||
|
||||
|
||||
@@ -7,6 +7,28 @@
|
||||
|
||||
#include <rtems.h>
|
||||
|
||||
/*
|
||||
* If this file is included from inside the Network Stack proper or
|
||||
* a device driver, then __INSIDE_RTEMS_BSD_TCPIP_STACK__ should be
|
||||
* defined. This triggers a number of internally used definitions.
|
||||
*/
|
||||
|
||||
#if defined(__INSIDE_RTEMS_BSD_TCPIP_STACK__)
|
||||
#undef _COMPILING_BSD_KERNEL_
|
||||
#undef KERNEL
|
||||
#undef INET
|
||||
#undef NFS
|
||||
#undef DIAGNOSTIC
|
||||
#undef BOOTP_COMPAT
|
||||
|
||||
#define _COMPILING_BSD_KERNEL_
|
||||
#define KERNEL
|
||||
#define INET
|
||||
#define NFS
|
||||
#define DIAGNOSTIC
|
||||
#define BOOTP_COMPAT
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Values that may be obtained by BOOTP
|
||||
*/
|
||||
|
||||
@@ -33,8 +33,7 @@ include $(RTEMS_ROOT)/make/lib.cfg
|
||||
# Add local stuff here using +=
|
||||
#
|
||||
|
||||
DEFINES += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \
|
||||
-DDIAGNOSTIC -DBOOTP_COMPAT
|
||||
DEFINES += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
|
||||
CPPFLAGS +=
|
||||
CFLAGS +=
|
||||
|
||||
|
||||
Reference in New Issue
Block a user