mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
Changes from Ralf Corsepius (corsepiu@faw.uni-ulm.de) to automatically
generate the list of Makefiles in the configure script.
This commit is contained in:
1 parent
80868140c3
commit
1670eede8b
4 files changed
+405
-589
No files matched your search
+4
-2
@@ -67,10 +67,12 @@ EXIT_CMD = exit 1
|
||||
# Don't pass flags from previous make - especially NOT CFLAGS
|
||||
override MAKEFLAGS=
|
||||
|
||||
# CVS formerly was xxx -- using CVS covers up a weird feature of the aclocal
|
||||
# file in that it thinks CVS directories need a Makefile generated.
|
||||
$(MTARGETS): make_subdir
|
||||
BASEDIR=`pwd`; \
|
||||
for bsp in $(RTEMS_BSP) xxx; \
|
||||
do if [ $$bsp != xxx ] ; then \
|
||||
for bsp in $(RTEMS_BSP) CVS; \
|
||||
do if [ $$bsp != CVS ] ; then \
|
||||
cd $$BASEDIR; \
|
||||
cmd="cd c; $(MAKE) RTEMS_BSP=$$bsp $(FLAGS_TO_PASS) \
|
||||
RTEMS_CUSTOM=$(RTEMS_ROOT)/make/custom/$$bsp.cfg \
|
||||
|
||||
Vendored
+60
@@ -39,3 +39,63 @@ fi])dnl
|
||||
rm -rf conftestdata
|
||||
AC_MSG_RESULT($rtems_cv_prog_MKDIR_M)
|
||||
])
|
||||
|
||||
dnl RTEMS_CHECK_MAKEFILE_T(path)
|
||||
dnl Private macro of RTEMS_CHECK_MAKEFILE
|
||||
AC_DEFUN(RTEMS_CHECK_MAKEFILE_T,
|
||||
[ test -f $srcdir/$1/Makefile.in && \
|
||||
makefiles="$makefiles $1/Makefile"
|
||||
])
|
||||
|
||||
dnl RTEMS_CHECK_MAKEFILE_R(path,temp,callback)
|
||||
dnl Private macro of RTEMS_CHECK_MAKEFILE
|
||||
dnl $1 path prefix
|
||||
dnl $2 temporary variable
|
||||
dnl $3 callback
|
||||
AC_DEFUN(RTEMS_CHECK_MAKEFILE_R,
|
||||
[ RTEMS_CHECK_MAKEFILE_T($1)
|
||||
$2list=`ls $srcdir/$1`
|
||||
for $2 in $$2list; do
|
||||
if test -d "$srcdir/$1/$$2"; then
|
||||
$3
|
||||
fi
|
||||
done
|
||||
])
|
||||
|
||||
dnl RTEMS_CHECK_MAKEFILE(path)
|
||||
dnl Check for Makefile.in's within the directory starting
|
||||
dnl at path and append an entry for Makefile to global variable
|
||||
dnl "makefiles" (from configure.in) for each Makefile.in found
|
||||
dnl
|
||||
dnl NOTE: This function should be called recursivly, but m4-macro
|
||||
dnl expansion doesn't allow recursive macros. Therefore this
|
||||
dnl macro is expanded into a nonrecursive macro, limited to
|
||||
dnl a descrete directory depth, that should be sufficent.
|
||||
dnl
|
||||
AC_DEFUN(RTEMS_CHECK_MAKEFILE,
|
||||
[ AC_MSG_CHECKING(for Makefiles in $1)
|
||||
if test -d $srcdir/$1; then
|
||||
RTEMS_CHECK_MAKEFILE_R($1,item,
|
||||
RTEMS_CHECK_MAKEFILE_R($1/$item,item0,
|
||||
RTEMS_CHECK_MAKEFILE_T($1/$item/$item0)
|
||||
)
|
||||
)
|
||||
AC_MSG_RESULT(done)
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
])
|
||||
|
||||
dnl canonicalize target name
|
||||
dnl NOTE: Most rtems targets do not fullfil autoconf
|
||||
dnl targets naming conventions "processor-vendor-os"
|
||||
dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
|
||||
dnl and we have to fix it for rtems ourselves
|
||||
|
||||
AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
|
||||
[AC_MSG_CHECKING(rtems target cpu)
|
||||
changequote(<<, >>)dnl
|
||||
target_cpu=`echo $target | /usr/bin/sed 's%^\([^-]*\)-\(.*\)$%\1%'`
|
||||
changequote([, ])dnl
|
||||
AC_MSG_RESULT($target_cpu)
|
||||
])
|
||||
+94
-276
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user