blob: 950e0b30dd1fecb44052961346b8898ba76c58b3 [file] [log] [blame]
Andrew Geissler84ad7c52020-06-27 00:00:16 -05001From 4926aec8897dc574d442e5a87b2576ab80046b10 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Mon, 23 Jan 2017 15:27:25 +0530
4Subject: [PATCH 01/11] [Patch, microblaze]: Add config/microblaze.mt for
5 target_makefile_frag Mirror MIPS method of creating copy of default.mt which
6 drops the compilation of generic sbrk.c to instead continue using the
7 microblaze provided version.
8
9[Libgloss]
10
11Changelog
12
132013-07-15 David Holsgrove <david.holsgrove@xilinx.com>
14
15 * config/microblaze.mt: New file.
16 * microblaze/configure.in: Switch default.mt to microblaze.mt.
17 * microblaze/configure: Likewise.
18
19Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
20---
21 libgloss/config/microblaze.mt | 30 ++++++++++++++++++++++++++++++
22 libgloss/microblaze/configure | 2 +-
23 libgloss/microblaze/configure.in | 2 +-
24 3 files changed, 32 insertions(+), 2 deletions(-)
25 create mode 100644 libgloss/config/microblaze.mt
26
27diff --git a/libgloss/config/microblaze.mt b/libgloss/config/microblaze.mt
28new file mode 100644
29index 0000000..e8fb922
30--- /dev/null
31+++ b/libgloss/config/microblaze.mt
32@@ -0,0 +1,30 @@
33+#
34+# Match default.mt to compile generic objects but continue building
35+# MicroBlaze specific sbrk.c
36+#
37+close.o: ${srcdir}/../close.c
38+ $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
39+fstat.o: ${srcdir}/../fstat.c
40+ $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
41+getpid.o: ${srcdir}/../getpid.c
42+ $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
43+isatty.o: ${srcdir}/../isatty.c
44+ $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
45+kill.o: ${srcdir}/../kill.c
46+ $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
47+lseek.o: ${srcdir}/../lseek.c
48+ $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
49+open.o: ${srcdir}/../open.c
50+ $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
51+print.o: ${srcdir}/../print.c
52+ $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
53+putnum.o: ${srcdir}/../putnum.c
54+ $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
55+read.o: ${srcdir}/../read.c
56+ $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
57+stat.o: ${srcdir}/../stat.c
58+ $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
59+unlink.o: ${srcdir}/../unlink.c
60+ $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
61+write.o: ${srcdir}/../write.c
62+ $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $?
63diff --git a/libgloss/microblaze/configure b/libgloss/microblaze/configure
64index 9b2bc7a..01f0fb2 100644
65--- a/libgloss/microblaze/configure
66+++ b/libgloss/microblaze/configure
67@@ -2020,7 +2020,7 @@ LIB_AM_PROG_AS
68
69
70 host_makefile_frag=${srcdir}/../config/default.mh
71-target_makefile_frag=${srcdir}/../config/default.mt
72+target_makefile_frag=${srcdir}/../config/microblaze.mt
73
74 host_makefile_frag_path=$host_makefile_frag
75
76diff --git a/libgloss/microblaze/configure.in b/libgloss/microblaze/configure.in
77index 77aa769..5d179fd 100644
78--- a/libgloss/microblaze/configure.in
79+++ b/libgloss/microblaze/configure.in
80@@ -35,7 +35,7 @@ LIB_AM_PROG_AS
81 AC_SUBST(bsp_prefix)
82
83 host_makefile_frag=${srcdir}/../config/default.mh
84-target_makefile_frag=${srcdir}/../config/default.mt
85+target_makefile_frag=${srcdir}/../config/microblaze.mt
86
87 dnl We have to assign the same value to other variables because autoconf
88 dnl doesn't provide a mechanism to substitute a replacement keyword with
89--
902.7.4
91