[PATCH] libchip,greth: disable driver if SMP kernel

Daniel Hellstrom daniel at gaisler.com
Fri Aug 25 11:51:22 UTC 2017


Update #2355
---
 c/src/libchip/Makefile.am   | 4 +++-
 c/src/libchip/preinstall.am | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/c/src/libchip/Makefile.am b/c/src/libchip/Makefile.am
index b0b54bc..cc7b27f 100644
--- a/c/src/libchip/Makefile.am
+++ b/c/src/libchip/Makefile.am
@@ -37,11 +37,13 @@ libnetchip_a_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
 include_libchip_HEADERS += network/cs8900.h network/i82586var.h \
     network/if_fxpvar.h network/sonic.h
 include_libchip_HEADERS += network/open_eth.h network/if_dcreg.h
-include_libchip_HEADERS += network/greth.h
 libnetchip_a_SOURCES = network/cs8900.c network/dec21140.c network/i82586.c \
     network/sonic.c network/if_fxp.c network/elnk.c network/open_eth.c \
     network/if_dc.c
+if !HAS_SMP
 libnetchip_a_SOURCES += network/greth.c
+include_libchip_HEADERS += network/greth.h
+endif
 include_libchip_HEADERS += network/smc91111.h network/smc91111exp.h
 libnetchip_a_SOURCES += network/smc91111.c network/smc91111config.h
 endif
diff --git a/c/src/libchip/preinstall.am b/c/src/libchip/preinstall.am
index 896dbe6..a280315 100644
--- a/c/src/libchip/preinstall.am
+++ b/c/src/libchip/preinstall.am
@@ -86,10 +86,11 @@ $(PROJECT_INCLUDE)/libchip/if_dcreg.h: network/if_dcreg.h $(PROJECT_INCLUDE)/lib
 	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/if_dcreg.h
 PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/if_dcreg.h
 
+if !HAS_SMP
 $(PROJECT_INCLUDE)/libchip/greth.h: network/greth.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
 	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/greth.h
 PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/greth.h
-
+endif
 $(PROJECT_INCLUDE)/libchip/smc91111.h: network/smc91111.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
 	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/smc91111.h
 PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/smc91111.h
-- 
2.7.4




More information about the devel mailing list