diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2006-03-07 12:45:45 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2006-03-07 12:45:45 +0000 |
| commit | eed02bebcdc921557bebcc20221c112d41263ffe (patch) | |
| tree | 754650cad62fc03c3c8d43421793e682635f3b66 /tools | |
| parent | 3de0db0c3b0c2010ffb5c5884e8ec5ec260091d6 (diff) | |
| download | rockbox-eed02bebcdc921557bebcc20221c112d41263ffe.zip rockbox-eed02bebcdc921557bebcc20221c112d41263ffe.tar.gz rockbox-eed02bebcdc921557bebcc20221c112d41263ffe.tar.bz2 rockbox-eed02bebcdc921557bebcc20221c112d41263ffe.tar.xz | |
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-x | tools/configure | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure index dd84525..aef943c 100755 --- a/tools/configure +++ b/tools/configure @@ -714,6 +714,11 @@ toolsdir='\$(ROOTDIR)/tools' # toolset is the tools within the tools directory that we build for # this particular target. toolset="$iaudiobitmaptools" + + # architecture, manufacturer and model for the target-tree build + t_cpu="coldfire" + t_manufactorer="iaudio" + t_model="x5" ;; 13) @@ -1075,6 +1080,13 @@ sed > autoconf.h \ #endif /* __BUILD_AUTOCONF_H */ EOF +if test -n "$t_cpu"; then + TARGET_INC="-I\$(FIRMDIR)/target/$t_cpu/$t_manufactorer/$t_model" + TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufactorer" + TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu" + GCCOPTS="$GCCOPTS -DTARGET_TREE" +fi + if test "$simulator" = "yes"; then # add simul make stuff on the #SIMUL# line simmagic1="s,@SIMUL1@,@\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim," @@ -1116,6 +1128,7 @@ sed > Makefile \ -e "s,@CODECS@,${codecs},g" \ -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \ -e "s,@GCCOPTS@,${GCCOPTS},g" \ + -e "s,@TARGET_INC@,${TARGET_INC},g" \ -e "s!@LDOPTS@!${LDOPTS}!g" \ -e "s,@LOADADDRESS@,${loadaddress},g" \ -e "s,@EXTRADEF@,${extradefines},g" \ @@ -1178,6 +1191,7 @@ export DLLWRAP=@DLLWRAP@ export RANLIB=@RANLIB@ export PROFILE_OPTS=@PROFILE_OPTS@ export GCCOPTS=@GCCOPTS@ +export TARGET_INC=@TARGET_INC@ export LOADADDRESS=@LOADADDRESS@ export SIMVER=@SIMVER@ export SIMDIR=\$(ROOTDIR)/uisimulator/\$(SIMVER) |