Embedded system on Linux

Vance Shipley vances@REDACTED
Thu Oct 12 17:54:30 CEST 2000


Currently embedded systems are only built for Solaris.  This is too 
strict for our liking here.  In fact we have built and used embedded 
Erlang/OTP systems on both Unixware and Linux.

Below is a patch for R7B to get an embedded system built and working
under Linux (at least RedHat 6.2).

	-Vance



--- erts/etc/common/Makefile.in.ORIG    Tue Nov 23 10:04:36 1999
+++ erts/etc/common/Makefile.in Wed Oct 11 19:59:09 2000
@@ -72,6 +72,11 @@
 INSTALL_EMBEDDED_DATA = ../unix/start.src ../unix/start_erl.src
 endif
 
+ifeq ($(findstring linux,$(TARGET)), linux)
+INSTALL_EMBEDDED_PROGS = $(BINDIR)/run_erl $(BINDIR)/to_erl
+INSTALL_EMBEDDED_DATA = ../unix/start.src ../unix/start_erl.src
+endif
+
 ifeq ($(findstring vxworks,$(TARGET)), vxworks)
 INSTALL_EMBEDDED_PROGS = $(BINDIR)/erl_io $(BINDIR)/rdate $(BINDIR)/vxcall
 INSTALL_EMBEDDED_DATA = $(BINDIR)/erl_script.sam $(VXETC)/resolv.conf

--- erts/etc/unix/Install.src.ORIG      Tue Aug 22 08:15:23 2000
+++ erts/etc/unix/Install.src   Wed Oct 11 20:07:38 2000
@@ -64,9 +64,9 @@
 
 #
 # Create start file for embedded system use,
-# currently only on Solaris/SunOS 5
+# currently only on Solaris/SunOS 5 & Linux
 #
-if [ "X$TARGET" = "Xsunos5" ]; then
+if [ "X$TARGET" = "Xsunos5" -o "X$TARGET" = "Xlinux" ]; then
   (cd $ERL_ROOT/erts-%I_VSN%/bin;
    sed -e "s;%FINAL_ROOTDIR%;$ERL_ROOT;" start.src > start;
    chmod 755 start)



More information about the erlang-questions mailing list