Changeset 9a6994b in rtems


Ignore:
Timestamp:
Jun 18, 1998, 3:22:35 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
7e4c3d8b
Parents:
ce691c51
Message:

Added freebsd support from Dario Alcocer <alcocer@…>.

Files:
12 edited

Legend:

Unmodified
Added
Removed
  • c/ACKNOWLEDGEMENTS

    rce691c51 r9a6994b  
    121121  for the Hitachi SH port.
    122122
     123+ Dario Alcocer <alcocer@connectnet.com> submitted a port of the
     124  RTEMS port to FreeBSD.
     125
    123126Finally, the RTEMS project would like to thank those who have contributed
    124127to the other free software efforts which RTEMS utilizes.  The primary RTEMS
  • c/src/exec/libcsupport/src/termios.c

    rce691c51 r9a6994b  
    2424#include <termios.h>
    2525#include <unistd.h>
     26
     27/*
     28 *  FreeBSD does not support a full POSIX termios so we have to help it out
     29 */
     30
     31
     32#if defined(__FreeBSD__)
     33#define XTABS   0
     34#define ONLRET  0
     35#define ONOCR   0
     36#define TABDLY  0
     37#define OLCUC   0
     38#define ILCUC   0
     39#endif
    2640
    2741/*
  • c/src/exec/score/cpu/unix/cpu.c

    rce691c51 r9a6994b  
    153153  sigaction(SIGUSR2, &act, 0);
    154154  sigaction(SIGCHLD, &act, 0);
     155#ifdef SIGCLD
    155156  sigaction(SIGCLD, &act, 0);
     157#endif
     158#ifdef SIGPWR
    156159  sigaction(SIGPWR, &act, 0);
     160#endif
    157161  sigaction(SIGVTALRM, &act, 0);
    158162  sigaction(SIGPROF, &act, 0);
     
    742746  switch (sig_num)
    743747  {
     748#ifdef SIGCLD
    744749      case SIGCLD:
    745750          break;
    746 
     751#endif
    747752      default:
    748753      {
     
    988993        help.val = 1;
    989994        status = semctl( _CPU_SHM_Semid, i, SETVAL, help );
    990 #elif defined(__linux__)
     995#elif defined(__linux__) || defined(__FreeBSD__)
    991996        union semun help;
    992997
  • c/src/exec/score/cpu/unix/cpu.h

    rce691c51 r9a6994b  
    383383 
    384384#ifdef RTEMS_UNIXLIB
     385#if defined(__FreeBSD__)
     386#define RET_OFF    0
     387#define EBX_OFF    1
     388#define EBP_OFF    2
     389#define ESP_OFF    3
     390#define ESI_OFF    4
     391#define EDI_OFF    5
     392#else
    385393#define EBX_OFF    0
    386394#define ESI_OFF    1
     
    389397#define ESP_OFF    4
    390398#define RET_OFF    5
     399#endif
    391400#endif
    392401 
  • c/src/exec/score/cpu/unix/unix.h

    rce691c51 r9a6994b  
    4747#define CPU_MODEL_NAME  "Linux"
    4848 
     49#elif defined(__FreeBSD__)
     50 
     51#define CPU_MODEL_NAME  "FreeBSD"
     52 
    4953#else
    5054 
  • c/src/exec/score/tools/generic/size_rtems.in

    rce691c51 r9a6994b  
    5252      rtems_cpu=unix
    5353      bsp=linux1
     54      echo Not supported on unix port.
     55      exit 0
     56      ;;
     57  i[3456]86-unknown-freebsd2.[12]*)
     58      echo freebsd
     59      rtems_cpu=unix
     60      bsp=freebsd2
    5461      echo Not supported on unix port.
    5562      exit 0
  • c/src/lib/libc/termios.c

    rce691c51 r9a6994b  
    2424#include <termios.h>
    2525#include <unistd.h>
     26
     27/*
     28 *  FreeBSD does not support a full POSIX termios so we have to help it out
     29 */
     30
     31
     32#if defined(__FreeBSD__)
     33#define XTABS   0
     34#define ONLRET  0
     35#define ONOCR   0
     36#define TABDLY  0
     37#define OLCUC   0
     38#define ILCUC   0
     39#endif
    2640
    2741/*
  • configure

    rce691c51 r9a6994b  
    13221322        RTEMS_HAS_POSIX_API=no
    13231323        ;;
     1324  i[3456]86-unknown-freebsd2.[12]*) # unix "simulator" port
     1325        target_cpu=unix
     1326        RTEMS_HOST=FreeBSD
     1327        # override these settings
     1328        RTEMS_HAS_POSIX_API=no
     1329        ;;
    13241330  no_cpu-*rtems*)
    13251331        target_cpu=no_cpu
     
    13371343  *)
    13381344        echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    1339 echo "configure:1340: checking rtems target cpu" >&5
     1345echo "configure:1346: checking rtems target cpu" >&5
    13401346target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    13411347echo "$ac_t""$target_cpu" 1>&6
     
    13561362# Is this a supported CPU?
    13571363echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6
    1358 echo "configure:1359: checking if cpu $target_cpu is supported" >&5
     1364echo "configure:1365: checking if cpu $target_cpu is supported" >&5
    13591365if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then
    13601366  echo "$ac_t""yes" 1>&6
     
    13811387set dummy $ac_prog; ac_word=$2
    13821388echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1383 echo "configure:1384: checking for $ac_word" >&5
     1389echo "configure:1390: checking for $ac_word" >&5
    13841390if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
    13851391  echo $ac_n "(cached) $ac_c" 1>&6
     
    14211427
    14221428echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1423 echo "configure:1424: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1429echo "configure:1430: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    14241430
    14251431ac_ext=c
     
    14311437
    14321438cat > conftest.$ac_ext <<EOF
    1433 #line 1434 "configure"
     1439#line 1440 "configure"
    14341440#include "confdefs.h"
    14351441main(){return(0);}
    14361442EOF
    1437 if { (eval echo configure:1438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1443if { (eval echo configure:1444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    14381444  ac_cv_prog_cc_works=yes
    14391445  # If we can't run a trivial program, we are probably using a cross compiler.
     
    14551461fi
    14561462echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1457 echo "configure:1458: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1463echo "configure:1464: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    14581464echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    14591465cross_compiling=$ac_cv_prog_cc_cross
    14601466
    14611467echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1462 echo "configure:1463: checking whether we are using GNU C" >&5
     1468echo "configure:1469: checking whether we are using GNU C" >&5
    14631469if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    14641470  echo $ac_n "(cached) $ac_c" 1>&6
     
    14691475#endif
    14701476EOF
    1471 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1477if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    14721478  ac_cv_prog_gcc=yes
    14731479else
     
    14841490  CFLAGS=
    14851491  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1486 echo "configure:1487: checking whether ${CC-cc} accepts -g" >&5
     1492echo "configure:1493: checking whether ${CC-cc} accepts -g" >&5
    14871493if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    14881494  echo $ac_n "(cached) $ac_c" 1>&6
     
    15261532
    15271533echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
    1528 echo "configure:1529: checking whether $CC_FOR_TARGET accepts -specs" >&5
     1534echo "configure:1535: checking whether $CC_FOR_TARGET accepts -specs" >&5
    15291535if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
    15301536  echo $ac_n "(cached) $ac_c" 1>&6
     
    15451551
    15461552echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
    1547 echo "configure:1548: checking whether $CC_FOR_TARGET accepts --pipe" >&5
     1553echo "configure:1554: checking whether $CC_FOR_TARGET accepts --pipe" >&5
    15481554if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
    15491555  echo $ac_n "(cached) $ac_c" 1>&6
     
    15861592set dummy $ac_prog; ac_word=$2
    15871593echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1588 echo "configure:1589: checking for $ac_word" >&5
     1594echo "configure:1595: checking for $ac_word" >&5
    15891595if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
    15901596  echo $ac_n "(cached) $ac_c" 1>&6
     
    16261632
    16271633echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1628 echo "configure:1629: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     1634echo "configure:1635: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    16291635
    16301636ac_ext=C
     
    16361642
    16371643cat > conftest.$ac_ext <<EOF
    1638 #line 1639 "configure"
     1644#line 1645 "configure"
    16391645#include "confdefs.h"
    16401646main(){return(0);}
    16411647EOF
    1642 if { (eval echo configure:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1648if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    16431649  ac_cv_prog_cxx_works=yes
    16441650  # If we can't run a trivial program, we are probably using a cross compiler.
     
    16661672fi
    16671673echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1668 echo "configure:1669: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     1674echo "configure:1675: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    16691675echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    16701676cross_compiling=$ac_cv_prog_cxx_cross
    16711677
    16721678echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    1673 echo "configure:1674: checking whether we are using GNU C++" >&5
     1679echo "configure:1680: checking whether we are using GNU C++" >&5
    16741680if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    16751681  echo $ac_n "(cached) $ac_c" 1>&6
     
    16801686#endif
    16811687EOF
    1682 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1688if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    16831689  ac_cv_prog_gxx=yes
    16841690else
     
    16951701  CXXFLAGS=
    16961702  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    1697 echo "configure:1698: checking whether ${CXX-g++} accepts -g" >&5
     1703echo "configure:1704: checking whether ${CXX-g++} accepts -g" >&5
    16981704if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    16991705  echo $ac_n "(cached) $ac_c" 1>&6
     
    17581764set dummy "$program_prefix"ar; ac_word=$2
    17591765echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1760 echo "configure:1761: checking for $ac_word" >&5
     1766echo "configure:1767: checking for $ac_word" >&5
    17611767if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    17621768  echo $ac_n "(cached) $ac_c" 1>&6
     
    17901796set dummy "$program_prefix"as; ac_word=$2
    17911797echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1792 echo "configure:1793: checking for $ac_word" >&5
     1798echo "configure:1799: checking for $ac_word" >&5
    17931799if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    17941800  echo $ac_n "(cached) $ac_c" 1>&6
     
    18221828set dummy "$program_prefix"nm; ac_word=$2
    18231829echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1824 echo "configure:1825: checking for $ac_word" >&5
     1830echo "configure:1831: checking for $ac_word" >&5
    18251831if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    18261832  echo $ac_n "(cached) $ac_c" 1>&6
     
    18541860set dummy "$program_prefix"ld; ac_word=$2
    18551861echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1856 echo "configure:1857: checking for $ac_word" >&5
     1862echo "configure:1863: checking for $ac_word" >&5
    18571863if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    18581864  echo $ac_n "(cached) $ac_c" 1>&6
     
    18871893set dummy "$program_prefix"ranlib; ac_word=$2
    18881894echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1889 echo "configure:1890: checking for $ac_word" >&5
     1895echo "configure:1896: checking for $ac_word" >&5
    18901896if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    18911897  echo $ac_n "(cached) $ac_c" 1>&6
     
    19201926set dummy "$program_prefix"objcopy; ac_word=$2
    19211927echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1922 echo "configure:1923: checking for $ac_word" >&5
     1928echo "configure:1929: checking for $ac_word" >&5
    19231929if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    19241930  echo $ac_n "(cached) $ac_c" 1>&6
     
    19521958set dummy "$program_prefix"size; ac_word=$2
    19531959echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1954 echo "configure:1955: checking for $ac_word" >&5
     1960echo "configure:1961: checking for $ac_word" >&5
    19551961if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    19561962  echo $ac_n "(cached) $ac_c" 1>&6
     
    19861992set dummy gcc; ac_word=$2
    19871993echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1988 echo "configure:1989: checking for $ac_word" >&5
     1994echo "configure:1995: checking for $ac_word" >&5
    19891995if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    19901996  echo $ac_n "(cached) $ac_c" 1>&6
     
    20152021set dummy cc; ac_word=$2
    20162022echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2017 echo "configure:2018: checking for $ac_word" >&5
     2023echo "configure:2024: checking for $ac_word" >&5
    20182024if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    20192025  echo $ac_n "(cached) $ac_c" 1>&6
     
    20632069
    20642070echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    2065 echo "configure:2066: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     2071echo "configure:2072: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    20662072
    20672073ac_ext=c
     
    20732079
    20742080cat > conftest.$ac_ext <<EOF
    2075 #line 2076 "configure"
     2081#line 2082 "configure"
    20762082#include "confdefs.h"
    20772083main(){return(0);}
    20782084EOF
    2079 if { (eval echo configure:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2085if { (eval echo configure:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    20802086  ac_cv_prog_cc_works=yes
    20812087  # If we can't run a trivial program, we are probably using a cross compiler.
     
    20972103fi
    20982104echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    2099 echo "configure:2100: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     2105echo "configure:2106: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    21002106echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    21012107cross_compiling=$ac_cv_prog_cc_cross
    21022108
    21032109echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    2104 echo "configure:2105: checking whether we are using GNU C" >&5
     2110echo "configure:2111: checking whether we are using GNU C" >&5
    21052111if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    21062112  echo $ac_n "(cached) $ac_c" 1>&6
     
    21112117#endif
    21122118EOF
    2113 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     2119if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    21142120  ac_cv_prog_gcc=yes
    21152121else
     
    21262132  CFLAGS=
    21272133  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    2128 echo "configure:2129: checking whether ${CC-cc} accepts -g" >&5
     2134echo "configure:2135: checking whether ${CC-cc} accepts -g" >&5
    21292135if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    21302136  echo $ac_n "(cached) $ac_c" 1>&6
     
    21572163do
    21582164echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2159 echo "configure:2160: checking for $ac_func" >&5
     2165echo "configure:2166: checking for $ac_func" >&5
    21602166if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    21612167  echo $ac_n "(cached) $ac_c" 1>&6
    21622168else
    21632169  cat > conftest.$ac_ext <<EOF
    2164 #line 2165 "configure"
     2170#line 2171 "configure"
    21652171#include "confdefs.h"
    21662172/* System header to define __stub macros and hopefully few prototypes,
     
    21852191; return 0; }
    21862192EOF
    2187 if { (eval echo configure:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2193if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    21882194  rm -rf conftest*
    21892195  eval "ac_cv_func_$ac_func=yes"
     
    22132219
    22142220echo $ac_n "checking for Makefile.in in c/src/exec/score/tools/$target_cpu""... $ac_c" 1>&6
    2215 echo "configure:2216: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5
     2221echo "configure:2222: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5
    22162222if test -d $srcdir/c/src/exec/score/tools/$target_cpu; then
    22172223  rtems_av_save_dir=`pwd`;
     
    22282234
    22292235echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6
    2230 echo "configure:2231: checking for Makefile.in in c/src/exec/rtems" >&5
     2236echo "configure:2237: checking for Makefile.in in c/src/exec/rtems" >&5
    22312237if test -d $srcdir/c/src/exec/rtems; then
    22322238  rtems_av_save_dir=`pwd`;
     
    22432249
    22442250echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6
    2245 echo "configure:2246: checking for Makefile.in in c/src/exec/sapi" >&5
     2251echo "configure:2252: checking for Makefile.in in c/src/exec/sapi" >&5
    22462252if test -d $srcdir/c/src/exec/sapi; then
    22472253  rtems_av_save_dir=`pwd`;
     
    22602266 
    22612267echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6
    2262 echo "configure:2263: checking for Makefile.in in c/src/exec/posix" >&5
     2268echo "configure:2269: checking for Makefile.in in c/src/exec/posix" >&5
    22632269if test -d $srcdir/c/src/exec/posix; then
    22642270  rtems_av_save_dir=`pwd`;
     
    22822288  if test -z "$rtems_bsp"; then
    22832289    echo $ac_n "checking for bsps""... $ac_c" 1>&6
    2284 echo "configure:2285: checking for bsps" >&5
     2290echo "configure:2291: checking for bsps" >&5
    22852291    files=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
    22862292    for file in $files; do
     
    23372343       
    23382344echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$bspcpudir/$bspdir""... $ac_c" 1>&6
    2339 echo "configure:2340: checking for Makefile.in in c/src/lib/libbsp/$bspcpudir/$bspdir" >&5
     2345echo "configure:2346: checking for Makefile.in in c/src/lib/libbsp/$bspcpudir/$bspdir" >&5
    23402346if test -d $srcdir/c/src/lib/libbsp/$bspcpudir/$bspdir; then
    23412347  rtems_av_save_dir=`pwd`;
     
    23602366
    23612367echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6
    2362 echo "configure:2363: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
     2368echo "configure:2369: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
    23632369if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then
    23642370  rtems_av_save_dir=`pwd`;
     
    23772383 
    23782384echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6
    2379 echo "configure:2380: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
     2385echo "configure:2386: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
    23802386if test -d $srcdir/c/src/lib/start/$target_cpu; then
    23812387  rtems_av_save_dir=`pwd`;
     
    24192425# If the tests are enabled, then find all the test suite Makefiles
    24202426echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6
    2421 echo "configure:2422: checking if the test suites are enabled? " >&5
     2427echo "configure:2428: checking if the test suites are enabled? " >&5
    24222428tests_enabled=yes
    24232429# Check whether --enable-tests or --disable-tests was given.
     
    24382444
    24392445echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6
    2440 echo "configure:2441: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
     2446echo "configure:2447: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
    24412447if test -d $srcdir/c/src/tests/tools/$target_cpu; then
    24422448  rtems_av_save_dir=`pwd`;
     
    24552461   
    24562462echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6
    2457 echo "configure:2458: checking for Makefile.in in c/src/tests/libtests" >&5
     2463echo "configure:2464: checking for Makefile.in in c/src/tests/libtests" >&5
    24582464if test -d $srcdir/c/src/tests/libtests; then
    24592465  rtems_av_save_dir=`pwd`;
     
    24702476   
    24712477echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6
    2472 echo "configure:2473: checking for Makefile.in in c/src/tests/sptests" >&5
     2478echo "configure:2479: checking for Makefile.in in c/src/tests/sptests" >&5
    24732479if test -d $srcdir/c/src/tests/sptests; then
    24742480  rtems_av_save_dir=`pwd`;
     
    24852491   
    24862492echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6
    2487 echo "configure:2488: checking for Makefile.in in c/src/tests/tmtests" >&5
     2493echo "configure:2494: checking for Makefile.in in c/src/tests/tmtests" >&5
    24882494if test -d $srcdir/c/src/tests/tmtests; then
    24892495  rtems_av_save_dir=`pwd`;
     
    25002506   
    25012507echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6
    2502 echo "configure:2503: checking for Makefile.in in c/src/tests/mptests" >&5
     2508echo "configure:2509: checking for Makefile.in in c/src/tests/mptests" >&5
    25032509if test -d $srcdir/c/src/tests/mptests; then
    25042510  rtems_av_save_dir=`pwd`;
     
    25162522     
    25172523echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6
    2518 echo "configure:2519: checking for Makefile.in in c/src/tests/psxtests" >&5
     2524echo "configure:2525: checking for Makefile.in in c/src/tests/psxtests" >&5
    25192525if test -d $srcdir/c/src/tests/psxtests; then
    25202526  rtems_av_save_dir=`pwd`;
     
    25342540# If the HWAPI is enabled, the find the HWAPI Makefiles
    25352541echo $ac_n "checking if the HWAPI is enabled? ""... $ac_c" 1>&6
    2536 echo "configure:2537: checking if the HWAPI is enabled? " >&5
     2542echo "configure:2543: checking if the HWAPI is enabled? " >&5
    25372543# Check whether --enable-hwapi or --disable-hwapi was given.
    25382544if test "${enable_hwapi+set}" = set; then
     
    25452551           
    25462552echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6
    2547 echo "configure:2548: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
     2553echo "configure:2554: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
    25482554if test -d $srcdir/c/src/lib/libhwapi/analog; then
    25492555  rtems_av_save_dir=`pwd`;
     
    25602566           
    25612567echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6
    2562 echo "configure:2563: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
     2568echo "configure:2569: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
    25632569if test -d $srcdir/c/src/lib/libhwapi/discrete; then
    25642570  rtems_av_save_dir=`pwd`;
     
    25752581           
    25762582echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6
    2577 echo "configure:2578: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
     2583echo "configure:2584: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
    25782584if test -d $srcdir/c/src/lib/libhwapi/drivers; then
    25792585  rtems_av_save_dir=`pwd`;
     
    25902596           
    25912597echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6
    2592 echo "configure:2593: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
     2598echo "configure:2599: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
    25932599if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then
    25942600  rtems_av_save_dir=`pwd`;
     
    26052611           
    26062612echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6
    2607 echo "configure:2608: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
     2613echo "configure:2614: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
    26082614if test -d $srcdir/c/src/lib/libhwapi/serial; then
    26092615  rtems_av_save_dir=`pwd`;
     
    26202626           
    26212627echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6
    2622 echo "configure:2623: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
     2628echo "configure:2629: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
    26232629if test -d $srcdir/c/src/lib/libhwapi/support; then
    26242630  rtems_av_save_dir=`pwd`;
     
    26352641           
    26362642echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6
    2637 echo "configure:2638: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
     2643echo "configure:2644: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
    26382644if test -d $srcdir/c/src/lib/libhwapi/wrapup; then
    26392645  rtems_av_save_dir=`pwd`;
     
    26802686
    26812687echo $ac_n "checking for Makefile.in in c/build-tools""... $ac_c" 1>&6
    2682 echo "configure:2683: checking for Makefile.in in c/build-tools" >&5
     2688echo "configure:2689: checking for Makefile.in in c/build-tools" >&5
    26832689if test -d $srcdir/c/build-tools; then
    26842690  rtems_av_save_dir=`pwd`;
     
    26952701
    26962702echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6
    2697 echo "configure:2698: checking for Makefile.in in make" >&5
     2703echo "configure:2704: checking for Makefile.in in make" >&5
    26982704if test -d $srcdir/make; then
    26992705  rtems_av_save_dir=`pwd`;
     
    27102716
    27112717echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6
    2712 echo "configure:2713: checking for Makefile.in in c/src/lib/libmisc" >&5
     2718echo "configure:2719: checking for Makefile.in in c/src/lib/libmisc" >&5
    27132719if test -d $srcdir/c/src/lib/libmisc; then
    27142720  rtems_av_save_dir=`pwd`;
     
    27252731
    27262732echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6
    2727 echo "configure:2728: checking for Makefile.in in c/src/tests/samples" >&5
     2733echo "configure:2734: checking for Makefile.in in c/src/tests/samples" >&5
    27282734if test -d $srcdir/c/src/tests/samples; then
    27292735  rtems_av_save_dir=`pwd`;
  • configure.in

    rce691c51 r9a6994b  
    151151        target_cpu=unix
    152152        RTEMS_HOST=Linux
     153        # override these settings
     154        RTEMS_HAS_POSIX_API=no
     155        ;;
     156  i[[3456]]86-unknown-freebsd2.[[12]]*) # unix "simulator" port
     157        target_cpu=unix
     158        RTEMS_HOST=FreeBSD
    153159        # override these settings
    154160        RTEMS_HAS_POSIX_API=no
  • cpukit/libcsupport/src/termios.c

    rce691c51 r9a6994b  
    2424#include <termios.h>
    2525#include <unistd.h>
     26
     27/*
     28 *  FreeBSD does not support a full POSIX termios so we have to help it out
     29 */
     30
     31
     32#if defined(__FreeBSD__)
     33#define XTABS   0
     34#define ONLRET  0
     35#define ONOCR   0
     36#define TABDLY  0
     37#define OLCUC   0
     38#define ILCUC   0
     39#endif
    2640
    2741/*
  • cpukit/score/cpu/unix/cpu.c

    rce691c51 r9a6994b  
    153153  sigaction(SIGUSR2, &act, 0);
    154154  sigaction(SIGCHLD, &act, 0);
     155#ifdef SIGCLD
    155156  sigaction(SIGCLD, &act, 0);
     157#endif
     158#ifdef SIGPWR
    156159  sigaction(SIGPWR, &act, 0);
     160#endif
    157161  sigaction(SIGVTALRM, &act, 0);
    158162  sigaction(SIGPROF, &act, 0);
     
    742746  switch (sig_num)
    743747  {
     748#ifdef SIGCLD
    744749      case SIGCLD:
    745750          break;
    746 
     751#endif
    747752      default:
    748753      {
     
    988993        help.val = 1;
    989994        status = semctl( _CPU_SHM_Semid, i, SETVAL, help );
    990 #elif defined(__linux__)
     995#elif defined(__linux__) || defined(__FreeBSD__)
    991996        union semun help;
    992997
  • tools/cpu/generic/size_rtems.in

    rce691c51 r9a6994b  
    5252      rtems_cpu=unix
    5353      bsp=linux1
     54      echo Not supported on unix port.
     55      exit 0
     56      ;;
     57  i[3456]86-unknown-freebsd2.[12]*)
     58      echo freebsd
     59      rtems_cpu=unix
     60      bsp=freebsd2
    5461      echo Not supported on unix port.
    5562      exit 0
Note: See TracChangeset for help on using the changeset viewer.