aboutsummaryrefslogtreecommitdiffstats
path: root/meta-microblaze/recipes-core/newlib/files/0001-Patch-microblaze-Add-config-microblaze.mt-for-target.patch
blob: 584aab11f6a75b8f075b4cca54cc613590080ddc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
From d3b09cb319fb1af1bcb83aa50d559ccccdeac639 Mon Sep 17 00:00:00 2001
From: Mahesh Bodapati <mbodapat@xilinx.com>
Date: Mon, 23 Jan 2017 15:27:25 +0530
Subject: [PATCH 01/11] [Patch, microblaze]: Add config/microblaze.mt for
 target_makefile_frag Mirror MIPS method of creating copy of default.mt which
 drops the compilation of generic sbrk.c to instead continue using the
 microblaze provided version.

[Libgloss]

Changelog

2013-07-15  David Holsgrove <david.holsgrove@xilinx.com>

  * config/microblaze.mt: New file.
  * microblaze/configure.in: Switch default.mt to microblaze.mt.
  * microblaze/configure: Likewise.

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
---
 libgloss/config/microblaze.mt    | 30 ++++++++++++++++++++++++++++++
 libgloss/microblaze/configure    |  2 +-
 libgloss/microblaze/configure.ac |  2 +-
 3 files changed, 32 insertions(+), 2 deletions(-)
 create mode 100644 libgloss/config/microblaze.mt

diff --git a/libgloss/config/microblaze.mt b/libgloss/config/microblaze.mt
new file mode 100644
index 000000000..e8fb922dd
--- /dev/null
+++ b/libgloss/config/microblaze.mt
@@ -0,0 +1,30 @@
+#
+# Match default.mt to compile generic objects but continue building
+# MicroBlaze specific sbrk.c
+#
+close.o: ${srcdir}/../close.c
+	$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
+fstat.o: ${srcdir}/../fstat.c
+	$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
+getpid.o: ${srcdir}/../getpid.c
+	$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
+isatty.o: ${srcdir}/../isatty.c
+	$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
+kill.o: ${srcdir}/../kill.c
+	$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
+lseek.o: ${srcdir}/../lseek.c
+	$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
+open.o: ${srcdir}/../open.c
+	$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
+print.o: ${srcdir}/../print.c
+	$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
+putnum.o: ${srcdir}/../putnum.c
+	$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
+read.o: ${srcdir}/../read.c
+	$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
+stat.o: ${srcdir}/../stat.c
+	$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
+unlink.o: ${srcdir}/../unlink.c
+	$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
+write.o: ${srcdir}/../write.c
+	$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
diff --git a/libgloss/microblaze/configure b/libgloss/microblaze/configure
index 05f68682c..faa23c584 100755
--- a/libgloss/microblaze/configure
+++ b/libgloss/microblaze/configure
@@ -2550,7 +2550,7 @@ test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
 
 
 host_makefile_frag=${srcdir}/../config/default.mh
-target_makefile_frag=${srcdir}/../config/default.mt
+target_makefile_frag=${srcdir}/../config/microblaze.mt
 
 host_makefile_frag_path=$host_makefile_frag
 
diff --git a/libgloss/microblaze/configure.ac b/libgloss/microblaze/configure.ac
index 5eda42e73..d5c789d40 100644
--- a/libgloss/microblaze/configure.ac
+++ b/libgloss/microblaze/configure.ac
@@ -35,7 +35,7 @@ LIB_AM_PROG_AS
 AC_SUBST(bsp_prefix)
 
 host_makefile_frag=${srcdir}/../config/default.mh
-target_makefile_frag=${srcdir}/../config/default.mt
+target_makefile_frag=${srcdir}/../config/microblaze.mt
 
 dnl We have to assign the same value to other variables because autoconf
 dnl doesn't provide a mechanism to substitute a replacement keyword with
-- 
2.37.1 (Apple Git-137.1)