Current section

Files

Jump to
grisp grisp default 27 build patches 00300-drivers-nifs.patch.mustache
Raw

grisp/default/27/build/patches/00300-drivers-nifs.patch.mustache

{{#erts_emulator_makefile_in}}
diff --git a/erts/emulator/Makefile.in b/erts/emulator/Makefile.in
index 2f8eee6eed..b83fb5092d 100644
--- a/erts/emulator/Makefile.in
+++ b/erts/emulator/Makefile.in
@@ -1148,6 +1148,{{nif_lines}} @@ NIF_OBJS = \
$(OBJDIR)/zlib_nif.o \
$(ESOCK_NIF_OBJS)
+ifeq ($(findstring rtems,$(TARGET)),rtems)
{{#nifs}}
+ NIF_OBJS += $(OBJDIR)/{{name}}.o
{{/nifs}}
+endif
+
ifeq ($(TARGET),win32)
DRV_OBJS = \
$(OBJDIR)/registry_drv.o \
@@ -1182,6 +1186,10 @@ DRV_OBJS = \
$(OBJDIR)/ram_file_drv.o
endif
+ifeq ($(findstring rtems,$(TARGET)),rtems)
{{#drivers}}
+ DRV_OBJS += $(OBJDIR)/{{name}}.o
{{/drivers}}
+endif
+
ifneq ($(STATIC_NIFS),no)
STATIC_NIF_LIBS = $(STATIC_NIFS)
DEPLIBS += $(STATIC_NIF_LIBS)
{{/erts_emulator_makefile_in}}