summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bootloader/Makefile2
-rw-r--r--firmware/Makefile2
-rwxr-xr-xtools/configure14
3 files changed, 16 insertions, 2 deletions
diff --git a/bootloader/Makefile b/bootloader/Makefile
index d1a17df56a..a524e6348e 100644
--- a/bootloader/Makefile
+++ b/bootloader/Makefile
@@ -7,7 +7,7 @@
7# $Id$ 7# $Id$
8# 8#
9 9
10INCLUDES= -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I. -I$(OBJDIR) \ 10INCLUDES= $(TARGET_INC) -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I. -I$(OBJDIR) \
11 -I$(BUILDDIR) 11 -I$(BUILDDIR)
12 12
13DEPFILE = $(OBJDIR)/dep-bootloader 13DEPFILE = $(OBJDIR)/dep-bootloader
diff --git a/firmware/Makefile b/firmware/Makefile
index 41485da861..a35a1205b6 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -7,7 +7,7 @@
7# $Id$ 7# $Id$
8# 8#
9 9
10INCLUDES=-Iinclude -I$(FIRMDIR) -Iexport -Icommon -Idrivers -I$(BUILDDIR) 10INCLUDES=$(TARGET_INC) -Iinclude -I$(FIRMDIR) -Iexport -Icommon -Idrivers -I$(BUILDDIR)
11 11
12CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(BUILDDATE) $(EXTRA_DEFINES) \ 12CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(BUILDDATE) $(EXTRA_DEFINES) \
13 -DMEM=${MEMORYSIZE} 13 -DMEM=${MEMORYSIZE}
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)