summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-03-07 12:45:45 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-03-07 12:45:45 +0000
commiteed02bebcdc921557bebcc20221c112d41263ffe (patch)
tree754650cad62fc03c3c8d43421793e682635f3b66 /tools
parent3de0db0c3b0c2010ffb5c5884e8ec5ec260091d6 (diff)
downloadrockbox-eed02bebcdc921557bebcc20221c112d41263ffe.tar.gz
rockbox-eed02bebcdc921557bebcc20221c112d41263ffe.zip
Add the target directory tree to the include path, and set the TARGET_TREE macro for the targets that use it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8945 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure
index dd84525eb4..aef943cfd3 100755
--- a/tools/configure
+++ b/tools/configure
@@ -714,6 +714,11 @@ toolsdir='\$(ROOTDIR)/tools'
714 # toolset is the tools within the tools directory that we build for 714 # toolset is the tools within the tools directory that we build for
715 # this particular target. 715 # this particular target.
716 toolset="$iaudiobitmaptools" 716 toolset="$iaudiobitmaptools"
717
718 # architecture, manufacturer and model for the target-tree build
719 t_cpu="coldfire"
720 t_manufactorer="iaudio"
721 t_model="x5"
717 ;; 722 ;;
718 723
719 13) 724 13)
@@ -1075,6 +1080,13 @@ sed > autoconf.h \
1075#endif /* __BUILD_AUTOCONF_H */ 1080#endif /* __BUILD_AUTOCONF_H */
1076EOF 1081EOF
1077 1082
1083if test -n "$t_cpu"; then
1084 TARGET_INC="-I\$(FIRMDIR)/target/$t_cpu/$t_manufactorer/$t_model"
1085 TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufactorer"
1086 TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
1087 GCCOPTS="$GCCOPTS -DTARGET_TREE"
1088fi
1089
1078if test "$simulator" = "yes"; then 1090if test "$simulator" = "yes"; then
1079 # add simul make stuff on the #SIMUL# line 1091 # add simul make stuff on the #SIMUL# line
1080 simmagic1="s,@SIMUL1@,@\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim," 1092 simmagic1="s,@SIMUL1@,@\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
@@ -1116,6 +1128,7 @@ sed > Makefile \
1116 -e "s,@CODECS@,${codecs},g" \ 1128 -e "s,@CODECS@,${codecs},g" \
1117 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \ 1129 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
1118 -e "s,@GCCOPTS@,${GCCOPTS},g" \ 1130 -e "s,@GCCOPTS@,${GCCOPTS},g" \
1131 -e "s,@TARGET_INC@,${TARGET_INC},g" \
1119 -e "s!@LDOPTS@!${LDOPTS}!g" \ 1132 -e "s!@LDOPTS@!${LDOPTS}!g" \
1120 -e "s,@LOADADDRESS@,${loadaddress},g" \ 1133 -e "s,@LOADADDRESS@,${loadaddress},g" \
1121 -e "s,@EXTRADEF@,${extradefines},g" \ 1134 -e "s,@EXTRADEF@,${extradefines},g" \
@@ -1178,6 +1191,7 @@ export DLLWRAP=@DLLWRAP@
1178export RANLIB=@RANLIB@ 1191export RANLIB=@RANLIB@
1179export PROFILE_OPTS=@PROFILE_OPTS@ 1192export PROFILE_OPTS=@PROFILE_OPTS@
1180export GCCOPTS=@GCCOPTS@ 1193export GCCOPTS=@GCCOPTS@
1194export TARGET_INC=@TARGET_INC@
1181export LOADADDRESS=@LOADADDRESS@ 1195export LOADADDRESS=@LOADADDRESS@
1182export SIMVER=@SIMVER@ 1196export SIMVER=@SIMVER@
1183export SIMDIR=\$(ROOTDIR)/uisimulator/\$(SIMVER) 1197export SIMDIR=\$(ROOTDIR)/uisimulator/\$(SIMVER)