OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [examples/] [build_Make.params] - Blame information for rev 793

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
#! /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: /build_Make.params []"
16
    echo "... where  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 <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 <>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
# Add CFLAGS manipulation - this should match /packages/pkgconf/rules.mak
45
#
46
 
47
cat <>Make.params
48
 
49
#
50
# Modify CFLAGS to match newer compilers
51
#
52
ACTUAL_CFLAGS = \$(ECOS_GLOBAL_CFLAGS)
53
ACTUAL_CXXFLAGS = \$(ECOS_GLOBAL_CFLAGS)
54
ACTUAL_LDFLAGS = \$(ECOS_GLOBAL_LDFLAGS)
55
 
56
# GCC since 2.95 does -finit-priority by default so remove it from old HALs
57
ACTUAL_CFLAGS := \$(subst -finit-priority,,\$(ACTUAL_CFLAGS))
58
 
59
# -fvtable-gc is known to be broken in all recent GCC.
60
ACTUAL_CFLAGS := \$(subst -fvtable-gc,,\$(ACTUAL_CFLAGS))
61
 
62
# Expand inline functions
63
ACTUAL_CFLAGS := -finline-limit=7000 \$(ACTUAL_CFLAGS)
64
 
65
# Separate C++ flags out from C flags.
66
ACTUAL_CFLAGS := \$(subst -fno-rtti,,\$(ACTUAL_CFLAGS))
67
ACTUAL_CFLAGS := \$(subst -frtti,,\$(ACTUAL_CFLAGS))
68
ACTUAL_CFLAGS := \$(subst -Woverloaded-virtual,,\$(ACTUAL_CFLAGS))
69
ACTUAL_CFLAGS := \$(subst -fvtable-gc,,\$(ACTUAL_CFLAGS))
70
 
71
ACTUAL_CXXFLAGS := \$(subst -Wstrict-prototypes,,\$(ACTUAL_CXXFLAGS))
72
 
73
EOF
74
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.