]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - examples/build_Make.params
Initial revision
[karo-tx-redboot.git] / examples / build_Make.params
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
8 # Copied from 'makefile' in the "install" tree
9
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"
18     exit
19   else
20     ECOS_INSTALL_DIR=`echo ${ECOS_BUILD_DIR}/*_install`
21     ECOS_BUILD_DIR=`echo ${ECOS_BUILD_DIR}/*_build`
22   fi
23 fi
24
25 cat <<EOF >Make.params
26
27 # Copied from 'makefile' in the "install" tree
28
29 EOF
30
31 grep export ${ECOS_BUILD_DIR}/makefile >>Make.params
32
33 cat <<EOF >>Make.params
34
35 #
36 # Target specific flags, etc.
37 #
38
39 EOF
40
41 cat ${ECOS_INSTALL_DIR}/include/pkgconf/ecos.mak >>Make.params
42
43
44