aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-11-05 21:25:31 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-11-05 21:25:31 +0000
commitf70c8b37e4efff5127f489da3f160fa3585848b1 (patch)
tree44f00b5148d9567f0d40f8931ae38bc19f34a7d8
parentd1c5fa36954228425b625c85233b77996827e270 (diff)
downloadupstream-f70c8b37e4efff5127f489da3f160fa3585848b1.tar.gz
upstream-f70c8b37e4efff5127f489da3f160fa3585848b1.tar.bz2
upstream-f70c8b37e4efff5127f489da3f160fa3585848b1.zip
uboot-ifxmips: fix compile errors with the cs toolchain due to non-PIC code
SVN-Revision: 18321
-rw-r--r--package/uboot-ifxmips/patches/110-compile_fix.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/uboot-ifxmips/patches/110-compile_fix.patch b/package/uboot-ifxmips/patches/110-compile_fix.patch
new file mode 100644
index 00000000000..34d0ac6e530
--- /dev/null
+++ b/package/uboot-ifxmips/patches/110-compile_fix.patch
@@ -0,0 +1,25 @@
+--- a/cpu/mips/Makefile
++++ b/cpu/mips/Makefile
+@@ -36,6 +36,9 @@ START := $(addprefix $(obj),$(START))
+
+ all: $(obj).depend $(START) $(LIB)
+
++start.o: start.S
++ $(CC) $(AFLAGS) -fPIC -c -o $@ $<
++
+ $(LIB): $(OBJS)
+ $(AR) $(ARFLAGS) $@ $(OBJS)
+
+--- a/Makefile
++++ b/Makefile
+@@ -185,8 +185,8 @@ include $(TOPDIR)/config.mk
+ OBJS = cpu/$(CPU)/start.o
+ OBJS_BOOTSTRAP = cpu/$(CPU)/start_bootstrap.o
+
+-cpu/$(CPU)/start_bootstrap.S: cpu/$(CPU)/start.S
+- ln -s start.S cpu/$(CPU)/start_bootstrap.S
++cpu/$(CPU)/start_bootstrap.o: cpu/$(CPU)/start.S
++ $(CC) $(AFLAGS) -fPIC -DCFG_BOOTSTRAP_CODE -c -o $@ $<
+
+ ifeq ($(CPU),i386)
+ OBJS += cpu/$(CPU)/start16.o
='#n161'>161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283