Mercurial > flash_v2
annotate examples/build_Make.params @ 1306:093db8861a73
Trying to get a handle on device going suddenly idle...
| author | gthomas |
|---|---|
| date | Tue, 14 Oct 2003 13:44:28 +0000 |
| parents | e68cf4daeda4 |
| children |
| rev | line source |
|---|---|
| 436 | 1 #! /bin/sh |
| 2 | |
| 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 | |
| 6 # 'build_Makefile') | |
| 7 | |
|
1197
e68cf4daeda4
Update build_Make* to handle ConfigTool generated trees
gthomas
parents:
436
diff
changeset
|
8 # Copied from 'makefile' in the "install" tree |
| 436 | 9 |
|
1197
e68cf4daeda4
Update build_Make* to handle ConfigTool generated trees
gthomas
parents:
436
diff
changeset
|
10 ECOS_BUILD_DIR=${1-`pwd`} |
|
e68cf4daeda4
Update build_Make* to handle ConfigTool generated trees
gthomas
parents:
436
diff
changeset
|
11 ECOS_INSTALL_DIR=`echo ${ECOS_BUILD_DIR}/install` |
|
e68cf4daeda4
Update build_Make* to handle ConfigTool generated trees
gthomas
parents:
436
diff
changeset
|
12 if [ ! -d ${ECOS_BUILD_DIR}/install ]; then |
|
e68cf4daeda4
Update build_Make* to handle ConfigTool generated trees
gthomas
parents:
436
diff
changeset
|
13 if [ ! -d ${ECOS_BUILD_DIR}/*_build ]; then |
|
e68cf4daeda4
Update build_Make* to handle ConfigTool generated trees
gthomas
parents:
436
diff
changeset
|
14 echo "Not an eCos install tree" |
|
e68cf4daeda4
Update build_Make* to handle ConfigTool generated trees
gthomas
parents:
436
diff
changeset
|
15 echo "usage: <eCos_repository>/build_Make.params [<eCos_install_dir>]" |
|
e68cf4daeda4
Update build_Make* to handle ConfigTool generated trees
gthomas
parents:
436
diff
changeset
|
16 echo "... where <eCos_install_dir> is the directory which contains" |
|
e68cf4daeda4
Update build_Make* to handle ConfigTool generated trees
gthomas
parents:
436
diff
changeset
|
17 echo " the *.ecc configuration file used to build the kernel" |
|
e68cf4daeda4
Update build_Make* to handle ConfigTool generated trees
gthomas
parents:
436
diff
changeset
|
18 exit |
|
e68cf4daeda4
Update build_Make* to handle ConfigTool generated trees
gthomas
parents:
436
diff
changeset
|
19 else |
|
e68cf4daeda4
Update build_Make* to handle ConfigTool generated trees
gthomas
parents:
436
diff
changeset
|
20 ECOS_INSTALL_DIR=`echo ${ECOS_BUILD_DIR}/*_install` |
|
e68cf4daeda4
Update build_Make* to handle ConfigTool generated trees
gthomas
parents:
436
diff
changeset
|
21 ECOS_BUILD_DIR=`echo ${ECOS_BUILD_DIR}/*_build` |
|
e68cf4daeda4
Update build_Make* to handle ConfigTool generated trees
gthomas
parents:
436
diff
changeset
|
22 fi |
| 436 | 23 fi |
| 24 | |
| 25 cat <<EOF >Make.params | |
| 26 | |
| 27 # Copied from 'makefile' in the "install" tree | |
| 28 | |
| 29 EOF | |
| 30 | |
|
1197
e68cf4daeda4
Update build_Make* to handle ConfigTool generated trees
gthomas
parents:
436
diff
changeset
|
31 grep export ${ECOS_BUILD_DIR}/makefile >>Make.params |
| 436 | 32 |
| 33 cat <<EOF >>Make.params | |
| 34 | |
| 35 # | |
| 36 # Target specific flags, etc. | |
| 37 # | |
| 38 | |
| 39 EOF | |
| 40 | |
|
1197
e68cf4daeda4
Update build_Make* to handle ConfigTool generated trees
gthomas
parents:
436
diff
changeset
|
41 cat ${ECOS_INSTALL_DIR}/include/pkgconf/ecos.mak >>Make.params |
| 436 | 42 |
| 43 | |
| 44 |
