3 # This script will set up a Makefile fragment with
4 # platform specifics. This fragement can be used by
5 # the automatically generated Makefile (via the script
8 # Copied from 'makefile' in the "install" tree
10 ECOS_BUILD_DIR=${1-`pwd`}
11 ECOS_INSTALL_DIR=`echo ${ECOS_BUILD_DIR}/install`
12 if [ ! -d ${ECOS_BUILD_DIR}/install ]; then
13 if [ ! -d ${ECOS_BUILD_DIR}/*_build ]; then
14 echo "Not an eCos install tree"
15 echo "usage: <eCos_repository>/build_Make.params [<eCos_install_dir>]"
16 echo "... where <eCos_install_dir> is the directory which contains"
17 echo " the *.ecc configuration file used to build the kernel"
20 ECOS_INSTALL_DIR=`echo ${ECOS_BUILD_DIR}/*_install`
21 ECOS_BUILD_DIR=`echo ${ECOS_BUILD_DIR}/*_build`
25 cat <<EOF >Make.params
27 # Copied from 'makefile' in the "install" tree
31 grep export ${ECOS_BUILD_DIR}/makefile >>Make.params
33 cat <<EOF >>Make.params
36 # Target specific flags, etc.
41 cat ${ECOS_INSTALL_DIR}/include/pkgconf/ecos.mak >>Make.params