Mercurial > flash_v2
comparison examples/build_Make.params @ 1197:e68cf4daeda4
Update build_Make* to handle ConfigTool generated trees
| author | gthomas |
|---|---|
| date | Fri, 05 Sep 2003 13:57:29 +0000 |
| parents | f44d40e6cdd3 |
| children |
comparison
equal
deleted
inserted
replaced
| 1196:ecbb5d87bfe0 | 1197:e68cf4daeda4 |
|---|---|
| 3 # This script will set up a Makefile fragment with | 3 # This script will set up a Makefile fragment with |
| 4 # platform specifics. This fragement can be used by | 4 # platform specifics. This fragement can be used by |
| 5 # the automatically generated Makefile (via the script | 5 # the automatically generated Makefile (via the script |
| 6 # 'build_Makefile') | 6 # 'build_Makefile') |
| 7 | 7 |
| 8 # Copied from 'makefile' the "install" tree | 8 # Copied from 'makefile' in the "install" tree |
| 9 | 9 |
| 10 HOME=${1-`pwd`} | 10 ECOS_BUILD_DIR=${1-`pwd`} |
| 11 if [ ! -d ${HOME}/install ]; then | 11 ECOS_INSTALL_DIR=`echo ${ECOS_BUILD_DIR}/install` |
| 12 echo "Not an eCos install tree" | 12 if [ ! -d ${ECOS_BUILD_DIR}/install ]; then |
| 13 echo "usage: <eCos_repository>/build_Make.params [<eCos_install_dir>]" | 13 if [ ! -d ${ECOS_BUILD_DIR}/*_build ]; then |
| 14 exit | 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" | |
| 18 exit | |
| 19 else | |
| 20 ECOS_INSTALL_DIR=`echo ${ECOS_BUILD_DIR}/*_install` | |
| 21 ECOS_BUILD_DIR=`echo ${ECOS_BUILD_DIR}/*_build` | |
| 22 fi | |
| 15 fi | 23 fi |
| 16 | 24 |
| 17 cat <<EOF >Make.params | 25 cat <<EOF >Make.params |
| 18 | 26 |
| 19 # Copied from 'makefile' in the "install" tree | 27 # Copied from 'makefile' in the "install" tree |
| 20 | 28 |
| 21 EOF | 29 EOF |
| 22 | 30 |
| 23 grep export ${HOME}/makefile >>Make.params | 31 grep export ${ECOS_BUILD_DIR}/makefile >>Make.params |
| 24 | 32 |
| 25 cat <<EOF >>Make.params | 33 cat <<EOF >>Make.params |
| 26 | 34 |
| 27 # | 35 # |
| 28 # Target specific flags, etc. | 36 # Target specific flags, etc. |
| 29 # | 37 # |
| 30 | 38 |
| 31 EOF | 39 EOF |
| 32 | 40 |
| 33 cat ${HOME}/install/include/pkgconf/ecos.mak >>Make.params | 41 cat ${ECOS_INSTALL_DIR}/include/pkgconf/ecos.mak >>Make.params |
| 34 | 42 |
| 35 | 43 |
| 36 | 44 |
