diff options
-rw-r--r-- | bootloader/Makefile | 2 | ||||
-rw-r--r-- | firmware/Makefile | 2 | ||||
-rwxr-xr-x | tools/configure | 14 |
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 | ||
10 | INCLUDES= -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I. -I$(OBJDIR) \ | 10 | INCLUDES= $(TARGET_INC) -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I. -I$(OBJDIR) \ |
11 | -I$(BUILDDIR) | 11 | -I$(BUILDDIR) |
12 | 12 | ||
13 | DEPFILE = $(OBJDIR)/dep-bootloader | 13 | DEPFILE = $(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 | ||
10 | INCLUDES=-Iinclude -I$(FIRMDIR) -Iexport -Icommon -Idrivers -I$(BUILDDIR) | 10 | INCLUDES=$(TARGET_INC) -Iinclude -I$(FIRMDIR) -Iexport -Icommon -Idrivers -I$(BUILDDIR) |
11 | 11 | ||
12 | CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(BUILDDATE) $(EXTRA_DEFINES) \ | 12 | CFLAGS = $(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 */ |
1076 | EOF | 1081 | EOF |
1077 | 1082 | ||
1083 | if 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" | ||
1088 | fi | ||
1089 | |||
1078 | if test "$simulator" = "yes"; then | 1090 | if 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@ | |||
1178 | export RANLIB=@RANLIB@ | 1191 | export RANLIB=@RANLIB@ |
1179 | export PROFILE_OPTS=@PROFILE_OPTS@ | 1192 | export PROFILE_OPTS=@PROFILE_OPTS@ |
1180 | export GCCOPTS=@GCCOPTS@ | 1193 | export GCCOPTS=@GCCOPTS@ |
1194 | export TARGET_INC=@TARGET_INC@ | ||
1181 | export LOADADDRESS=@LOADADDRESS@ | 1195 | export LOADADDRESS=@LOADADDRESS@ |
1182 | export SIMVER=@SIMVER@ | 1196 | export SIMVER=@SIMVER@ |
1183 | export SIMDIR=\$(ROOTDIR)/uisimulator/\$(SIMVER) | 1197 | export SIMDIR=\$(ROOTDIR)/uisimulator/\$(SIMVER) |