From eed02bebcdc921557bebcc20221c112d41263ffe Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 7 Mar 2006 12:45:45 +0000 Subject: 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 --- tools/configure | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tools/configure') 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' # 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) -- cgit v1.2.3