Changeset f0d7515 in rtems


Ignore:
Timestamp:
08/09/02 05:01:03 (21 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
1ae3202b
Parents:
2e549922
Message:

2002-08-09 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Create make/@RTEMS_BSP@.cache. Handle make/custom/*.cfgs. Create make/custom/default.cfg.
  • configure.ac: Add creation of make/custon/*.cfg. Create make/${RTEMS_BSP}.cache. Read make/${RTEMS_BSP}.cache
Location:
c/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/ChangeLog

    r2e549922 rf0d7515  
     12002-08-09      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * Makefile.am: Create make/@RTEMS_BSP@.cache.
     4        Handle make/custom/*.cfgs.
     5        Create make/custom/default.cfg.
     6        * configure.ac: Add creation of make/custon/*.cfg.
     7        Create make/${RTEMS_BSP}.cache.
     8        Read make/${RTEMS_BSP}.cache
     9
    1102002-08-01      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    211
  • c/src/Makefile.am

    r2e549922 rf0d7515  
    1010        $(RM) -r $(PROJECT_RELEASE)
    1111
     12make/@RTEMS_BSP@.cache: make/bsp.mak @CUSTOM_CFG_FILES@
     13        $(RM) make/@RTEMS_BSP@.cache
     14        $(MAKE) -f ${srcdir}/make/bsp.mak \
     15        RTEMS_BSP=@RTEMS_BSP@ RTEMS_ROOT=. \
     16        make/@RTEMS_BSP@.cache
     17
     18noinst_DATA = make/@RTEMS_BSP@.cache
     19DISTCLEANFILES = make/@RTEMS_BSP@.cache
     20
     21rtems_make_customdir = $(rtems_makedir)/custom
     22rtems_make_custom_DATA = @CUSTOM_CFG_FILES@
     23
     24make/custom/default.cfg: $(srcdir)/make/custom/default.cfg.in
     25        cp $< $@
     26
     27make/custom/%.cfg: $(srcdir)/$(cfg_dir)/custom/%.cfg
     28        cp $< $@
     29
     30noinst_DATA += make/custom/default.cfg
     31DISTCLEANFILES += make/custom/default.cfg
     32
    1233include $(top_srcdir)/../../automake/subdirs.am
    1334include $(top_srcdir)/../../automake/host.am
  • c/src/configure.ac

    r2e549922 rf0d7515  
    2626
    2727RTEMS_CHECK_NETWORKING(RTEMS_BSP)
     28
     29AC_MSG_NOTICE([setting up make/custom])
     30
     31AS_MKDIR_P([make/custom])
     32
     33# Collect and copy the BSP's make/custom/*.cfg files from the toplevel make
     34# directory into the build tree's <bsp>/make/custom subdirectories
     35cfg_dir="${RTEMS_TOPdir}/make"
     36CUSTOM_CFG_FILES=""
     37f="${RTEMS_BSP}.cfg"
     38while test -n "$f"; do
     39  if test -r "${srcdir}/${cfg_dir}/custom/$f"; then
     40    cp ${srcdir}/${cfg_dir}/custom/$f make/custom/$f
     41    CUSTOM_CFG_FILES="$CUSTOM_CFG_FILES make/custom/$f"
     42    f=`grep "^include.*make/custom" ${srcdir}/${cfg_dir}/custom/$f \
     43    | sed \
     44      -e 's%^.*custom\/%%' \
     45      -e s%\$\(RTEMS_HOST\)%${RTEMS_HOST}% \
     46      -e 's%default\.cfg%%'`;
     47  else break; fi;
     48done
     49cp ${srcdir}/make/custom/default.cfg.in make/custom/default.cfg
     50
     51AC_MSG_NOTICE([creating make/${RTEMS_BSP}.cache])
     52${MAKE-make} -f ${srcdir}/make/bsp.mak RTEMS_BSP=${RTEMS_BSP} \
     53RTEMS_ROOT=. make/${RTEMS_BSP}.cache
     54
     55# Read back the cache
     56RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
     57
     58AC_SUBST(CUSTOM_CFG_FILES)
     59AC_SUBST(cfg_dir)
    2860
    2961## Note: the order of the directories below is essential
     
    69101
    70102# Explicitly list all Makefiles here
    71 AC_CONFIG_FILES([Makefile])
     103AC_CONFIG_FILES([Makefile],
     104[${MAKE} make/${RTEMS_BSP}.cache],
     105[RTEMS_BSP=${RTEMS_BSP}
     106 MAKE=${MAKE}])
     107
    72108AC_OUTPUT
Note: See TracChangeset for help on using the changeset viewer.