Changeset dfe7746 in rtems


Ignore:
Timestamp:
Mar 17, 1999, 11:43:32 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
1105818d
Parents:
55b8fef2
Message:

Patch from Ralf Corsepius <corsepiu@…>

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • aclocal/canonical-target-name.m4

    r55b8fef2 rdfe7746  
    33dnl
    44
    5 dnl canonicalize target name
     5dnl canonicalize target cpu
    66dnl NOTE: Most rtems targets do not fullfil autoconf's
    77dnl target naming conventions "processor-vendor-os"
     
    1010
    1111AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    12 [AC_MSG_CHECKING(rtems target cpu)
    13 changequote(<<, >>)dnl
    14 target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    15 changequote([, ])dnl
     12[
     13AC_REQUIRE([AC_CANONICAL_SYSTEM])
     14AC_MSG_CHECKING(rtems target cpu)
     15changequote(,)dnl
     16case "${target}" in
     17  # hpux unix port should go here
     18  i[3456]86-go32-rtems*)
     19        target_cpu=i386
     20        ;;
     21  i[3456]86-pc-linux*)          # unix "simulator" port
     22        target_cpu=unix
     23        ;;
     24  i[3456]86-*freebsd2*)         # unix "simulator" port
     25        target_cpu=unix
     26        ;;
     27  no_cpu-*rtems*)
     28        target_cpu=no_cpu
     29        ;;
     30  ppc*-*rtems*)
     31        target_cpu=powerpc
     32        ;;
     33  sparc-sun-solaris*)           # unix "simulator" port
     34        target_cpu=unix
     35        ;;
     36  *)
     37        target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     38        ;;
     39esac
     40changequote([,])dnl
    1641AC_MSG_RESULT($target_cpu)
    1742])
  • c/src/exec/score/include/rtems/score/Makefile.in

    r55b8fef2 rdfe7746  
    2020    priority stack states sysstate thread threadq \
    2121    tod tqdata userext watchdog wkspace
    22 H_FILES=$(H_PIECES:%=$(srcdir)/%.h) targopts.h
    2322
    24 SRCS=$(H_FILES)
     23# Use this if compilation in location will be supported
     24# H_FILES=$(H_PIECES:%=$(srcdir)/%.h) targopts.h
     25
     26# FIXME: Work-around
     27H_FILES=$(H_PIECES:%=$(srcdir)/%.h)
     28TARGOPTS=$(PROJECT_INCLUDE)/rtems/score/targopts.h
     29
     30SRCS=$(H_FILES) $(TARGOPTS)
    2531
    2632include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
     
    3440#
    3541
    36 CLEAN_ADDITIONS += targopts.h
     42CLEAN_ADDITIONS += $(TARGOPTS)
    3743CLOBBER_ADDITIONS +=
    3844
     
    4753
    4854# make the target dependent options file
    49 targopts.h:
     55$(TARGOPTS):
    5056        @echo "/* target board dependent options file */"       >$@
    5157        @echo "/* automatically generated -- DO NOT EDIT!! */" >>$@
     
    8793        @echo                                                  >>$@
    8894        @echo "#endif"                                         >>$@
    89 
     95        @chmod 755 $@
    9096
    9197all:    $(SRCS)
    92         $(INSTALL_CHANGE) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
     98        $(INSTALL_DATA) ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
  • c/src/make/host.cfg.in

    r55b8fef2 rdfe7746  
    7676INSTDIRFLAGS  = -m 0755 -d
    7777INSTINCFLAGS  = -m 0644
     78
     79INSTALL_DATA = $(INSTALL) $(INSTDATAFLAGS)
  • configure.in

    r55b8fef2 rdfe7746  
    112112AC_PATH_PROG(SORT,sort)
    113113AC_PROG_INSTALL
    114 AC_PATH_PROG(PERL,perl)
    115 if test -z "$PERL" ; then
    116 AC_MSG_WARN(
    117 [***]
    118 [   perl was not found]
    119 [   Note: Some tools will not be built.])
    120 fi
     114RTEMS_PATH_PERL
    121115
    122116dnl check mkdir behaviour, try to get mkdir -p -m 0755
     
    133127AC_PATH_PROGS(M4,gm4 m4)
    134128
    135 dnl NOTE: prefer bash over ksh over sh
    136 AC_PATH_PROGS(KSH,bash ksh sh)
    137 
    138 if test -z "$KSH"; then
    139 dnl NOTE: This cannot happen -- /bin/sh must always exist
    140 AC_MSG_ERROR(
    141 [***]
    142 [    Cannot determine a usable shell bash/ksh/sh]
    143 [    Please contact your system administrator] );
    144 fi
     129RTEMS_PATH_KSH
    145130
    146131dnl BEGIN configure.target.in
     
    164149RTEMS_HOST=$host_os
    165150
     151RTEMS_CANONICAL_TARGET_CPU
     152
     153changequote(,)dnl
    166154case "${target}" in
    167155  # hpux unix port should go here
    168   i[[3456]]86-go32-rtems*)
    169         target_cpu=i386
     156  i[3456]86-go32-rtems*)
    170157        rtems_bsp="go32 go32_p5"
    171158        skip_startfiles="yes"
    172159        RTEMS_HAS_POSIX_API=no
    173160        ;;
    174   i[[3456]]86-pc-linux*)         # unix "simulator" port
    175         target_cpu=unix
     161  i[3456]86-pc-linux*)         # unix "simulator" port
    176162        RTEMS_HOST=Linux
    177163        # override these settings
    178164        RTEMS_HAS_POSIX_API=no
    179165        ;;
    180   i[[3456]]86-*freebsd2*) # unix "simulator" port
    181         target_cpu=unix
     166  i[3456]86-*freebsd2*) # unix "simulator" port
    182167        RTEMS_HOST=FreeBSD
    183168        # override these settings
     
    185170        ;;
    186171  no_cpu-*rtems*)
    187         target_cpu=no_cpu
    188172        RTEMS_HAS_POSIX_API=no
    189173        ;;
    190   ppc*-*rtems*)
    191         target_cpu=powerpc
    192         ;;
    193174  sparc-sun-solaris*)             # unix "simulator" port
    194         target_cpu=unix
    195175        RTEMS_HOST=Solaris
    196176        # override these settings
     
    198178        ;;
    199179  *)
    200         RTEMS_CANONICAL_TARGET_CPU
    201180        ;;
    202181esac
     182changequote([,])dnl
     183
    203184
    204185# Override the set of BSPs to be built.
  • make/custom/p4000.cfg

    r55b8fef2 rdfe7746  
    44#  $Id$
    55#
     6
     7# NOTE: this file is broken !
    68
    79# Override default start file
  • make/host.cfg.in

    r55b8fef2 rdfe7746  
    7676INSTDIRFLAGS  = -m 0755 -d
    7777INSTINCFLAGS  = -m 0644
     78
     79INSTALL_DATA = $(INSTALL) $(INSTDATAFLAGS)
Note: See TracChangeset for help on using the changeset viewer.