diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-07-26 14:27:52 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-07-28 18:11:29 -0500 |
commit | 92e24665f792181a70de1409e88fbbacbcc38f67 (patch) | |
tree | c04f8444849ede3368f4d11b8fa24ab37f53fc05 | |
parent | 0aedcea6d78c798bbb132fa99f5e6521fc5115f6 (diff) | |
download | meta-xilinx-92e24665f792181a70de1409e88fbbacbcc38f67.tar.gz |
meta-microblaze: newlib/libgloss: Update for microblaze
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
17 files changed, 114 insertions, 173 deletions
diff --git a/meta-microblaze/recipes-core/newlib/files/0001-Patch-microblaze-Add-config-microblaze.mt-for-target.patch b/meta-microblaze/recipes-core/newlib/files/0001-Patch-microblaze-Add-config-microblaze.mt-for-target.patch deleted file mode 100644 index 31076208..00000000 --- a/meta-microblaze/recipes-core/newlib/files/0001-Patch-microblaze-Add-config-microblaze.mt-for-target.patch +++ /dev/null | |||
@@ -1,88 +0,0 @@ | |||
1 | From d3b09cb319fb1af1bcb83aa50d559ccccdeac639 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | ||
3 | Date: Mon, 23 Jan 2017 15:27:25 +0530 | ||
4 | Subject: [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 | |||
11 | Changelog | ||
12 | |||
13 | 2013-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 | |||
19 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> | ||
20 | |||
21 | Upstream-Status: Pending | ||
22 | |||
23 | --- | ||
24 | libgloss/config/microblaze.mt | 30 ++++++++++++++++++++++++++++++ | ||
25 | libgloss/microblaze/configure | 2 +- | ||
26 | libgloss/microblaze/configure.ac | 2 +- | ||
27 | 3 files changed, 32 insertions(+), 2 deletions(-) | ||
28 | create mode 100644 libgloss/config/microblaze.mt | ||
29 | |||
30 | Index: git/libgloss/config/microblaze.mt | ||
31 | =================================================================== | ||
32 | --- /dev/null | ||
33 | +++ git/libgloss/config/microblaze.mt | ||
34 | @@ -0,0 +1,30 @@ | ||
35 | +# | ||
36 | +# Match default.mt to compile generic objects but continue building | ||
37 | +# MicroBlaze specific sbrk.c | ||
38 | +# | ||
39 | +close.o: ${srcdir}/../close.c | ||
40 | + $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
41 | +fstat.o: ${srcdir}/../fstat.c | ||
42 | + $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
43 | +getpid.o: ${srcdir}/../getpid.c | ||
44 | + $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
45 | +isatty.o: ${srcdir}/../isatty.c | ||
46 | + $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
47 | +kill.o: ${srcdir}/../kill.c | ||
48 | + $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
49 | +lseek.o: ${srcdir}/../lseek.c | ||
50 | + $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
51 | +open.o: ${srcdir}/../open.c | ||
52 | + $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
53 | +print.o: ${srcdir}/../print.c | ||
54 | + $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
55 | +putnum.o: ${srcdir}/../putnum.c | ||
56 | + $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
57 | +read.o: ${srcdir}/../read.c | ||
58 | + $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
59 | +stat.o: ${srcdir}/../stat.c | ||
60 | + $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
61 | +unlink.o: ${srcdir}/../unlink.c | ||
62 | + $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
63 | +write.o: ${srcdir}/../write.c | ||
64 | + $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
65 | Index: git/libgloss/configure | ||
66 | =================================================================== | ||
67 | --- git.orig/libgloss/configure | ||
68 | +++ git/libgloss/configure | ||
69 | @@ -2909,6 +2909,7 @@ case "${target}" in | ||
70 | ac_config_files="$ac_config_files microblaze/Makefile" | ||
71 | |||
72 | subdirs="$subdirs microblaze" | ||
73 | + target_makefile_frag=${srcdir}/config/microblaze.mt | ||
74 | ;; | ||
75 | mt-*-*) | ||
76 | ac_config_files="$ac_config_files mt/Makefile" | ||
77 | Index: git/libgloss/configure.ac | ||
78 | =================================================================== | ||
79 | --- git.orig/libgloss/configure.ac | ||
80 | +++ git/libgloss/configure.ac | ||
81 | @@ -172,6 +172,7 @@ case "${target}" in | ||
82 | microblaze*-*-*) | ||
83 | AC_CONFIG_FILES([microblaze/Makefile]) | ||
84 | subdirs="$subdirs microblaze" | ||
85 | + target_makefile_frag=${srcdir}/config/microblaze.mt | ||
86 | ;; | ||
87 | mt-*-*) | ||
88 | AC_CONFIG_FILES([mt/Makefile]) | ||
diff --git a/meta-microblaze/recipes-core/newlib/files/0002-Patch-microblaze-Modified-_exceptional_handler.patch b/meta-microblaze/recipes-core/newlib/files/0001-Patch-microblaze-Modified-_exceptional_handler.patch index 3c940329..6e0e2377 100644 --- a/meta-microblaze/recipes-core/newlib/files/0002-Patch-microblaze-Modified-_exceptional_handler.patch +++ b/meta-microblaze/recipes-core/newlib/files/0001-Patch-microblaze-Modified-_exceptional_handler.patch | |||
@@ -1,13 +1,12 @@ | |||
1 | From c96521b00af5259e1404c921cc6a22fbb16c1ace Mon Sep 17 00:00:00 2001 | 1 | From e2293e32df22089aa9a9fb3727aba4faa3774b7c Mon Sep 17 00:00:00 2001 |
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
3 | Date: Mon, 23 Jan 2017 15:30:02 +0530 | 3 | Date: Mon, 23 Jan 2017 15:30:02 +0530 |
4 | Subject: [PATCH 02/11] [Patch, microblaze]: Modified _exceptional_handler | 4 | Subject: [PATCH 01/11] [Patch, microblaze]: Modified _exceptional_handler |
5 | Modified the _exceptional_handler to support the changes made in GCC related | 5 | Modified the _exceptional_handler to support the changes made in GCC related |
6 | to Superviosry call | 6 | to Superviosry call |
7 | 7 | ||
8 | Signed-off-by:Nagaraju Mekala<nmekala@xilix.com> | 8 | Signed-off-by:Nagaraju Mekala<nmekala@xilix.com> |
9 | 9 | (cherry picked from commit c96521b00af5259e1404c921cc6a22fbb16c1ace) | |
10 | Upstream-Status: Pending | ||
11 | --- | 10 | --- |
12 | libgloss/microblaze/_exception_handler.S | 1 - | 11 | libgloss/microblaze/_exception_handler.S | 1 - |
13 | 1 file changed, 1 deletion(-) | 12 | 1 file changed, 1 deletion(-) |
@@ -23,5 +22,5 @@ index 59385ad9b..7a91a781e 100644 | |||
23 | - addi r11,r11,8 | 22 | - addi r11,r11,8 |
24 | bra r11 | 23 | bra r11 |
25 | -- | 24 | -- |
26 | 2.37.1 (Apple Git-137.1) | 25 | 2.34.1 |
27 | 26 | ||
diff --git a/meta-microblaze/recipes-core/newlib/files/0003-LOCAL-Add-missing-declarations-for-xil_printf-to-std.patch b/meta-microblaze/recipes-core/newlib/files/0002-LOCAL-Add-missing-declarations-for-xil_printf-to-std.patch index 96b83269..74389b07 100644 --- a/meta-microblaze/recipes-core/newlib/files/0003-LOCAL-Add-missing-declarations-for-xil_printf-to-std.patch +++ b/meta-microblaze/recipes-core/newlib/files/0002-LOCAL-Add-missing-declarations-for-xil_printf-to-std.patch | |||
@@ -1,24 +1,24 @@ | |||
1 | From 765f715f4077780395d381bf25870b61008f8013 Mon Sep 17 00:00:00 2001 | 1 | From b7b5423f937e63dcb09dbd2d14566e82ff7adc67 Mon Sep 17 00:00:00 2001 |
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
3 | Date: Mon, 23 Jan 2017 15:39:45 +0530 | 3 | Date: Mon, 23 Jan 2017 15:39:45 +0530 |
4 | Subject: [PATCH 03/11] [LOCAL]: Add missing declarations for xil_printf to | 4 | Subject: [PATCH 02/11] [LOCAL]: Add missing declarations for xil_printf to |
5 | stdio.h for inclusion in toolchain and use in c++ apps | 5 | stdio.h for inclusion in toolchain and use in c++ apps |
6 | 6 | ||
7 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> | 7 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> |
8 | 8 | ||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Conflicts: | 9 | Conflicts: |
12 | newlib/libc/include/stdio.h | 10 | newlib/libc/include/stdio.h |
11 | |||
12 | (cherry picked from commit 765f715f4077780395d381bf25870b61008f8013) | ||
13 | --- | 13 | --- |
14 | newlib/libc/include/stdio.h | 3 +++ | 14 | newlib/libc/include/stdio.h | 3 +++ |
15 | 1 file changed, 3 insertions(+) | 15 | 1 file changed, 3 insertions(+) |
16 | 16 | ||
17 | diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h | 17 | diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h |
18 | index 7748351f0..fd95f1344 100644 | 18 | index 77966578d..fda52fdba 100644 |
19 | --- a/newlib/libc/include/stdio.h | 19 | --- a/newlib/libc/include/stdio.h |
20 | +++ b/newlib/libc/include/stdio.h | 20 | +++ b/newlib/libc/include/stdio.h |
21 | @@ -245,6 +245,9 @@ int sprintf (char *__restrict, const char *__restrict, ...) | 21 | @@ -251,6 +251,9 @@ int sprintf (char *__restrict, const char *__restrict, ...) |
22 | _ATTRIBUTE ((__format__ (__printf__, 2, 3))); | 22 | _ATTRIBUTE ((__format__ (__printf__, 2, 3))); |
23 | int remove (const char *); | 23 | int remove (const char *); |
24 | int rename (const char *, const char *); | 24 | int rename (const char *, const char *); |
@@ -29,5 +29,5 @@ index 7748351f0..fd95f1344 100644 | |||
29 | int _rename (const char *, const char *); | 29 | int _rename (const char *, const char *); |
30 | #endif | 30 | #endif |
31 | -- | 31 | -- |
32 | 2.37.1 (Apple Git-137.1) | 32 | 2.34.1 |
33 | 33 | ||
diff --git a/meta-microblaze/recipes-core/newlib/files/0004-Local-deleting-the-xil_printf.c-file-as-now-it-part-.patch b/meta-microblaze/recipes-core/newlib/files/0003-Local-deleting-the-xil_printf.c-file-as-now-it-part-.patch index 6d398bdc..d3775f4e 100644 --- a/meta-microblaze/recipes-core/newlib/files/0004-Local-deleting-the-xil_printf.c-file-as-now-it-part-.patch +++ b/meta-microblaze/recipes-core/newlib/files/0003-Local-deleting-the-xil_printf.c-file-as-now-it-part-.patch | |||
@@ -1,11 +1,10 @@ | |||
1 | From edf132aae14fadd15630916781a14a29cafd37ef Mon Sep 17 00:00:00 2001 | 1 | From 471a4a4ee556af3274b6d3652cfd4f35801b9b57 Mon Sep 17 00:00:00 2001 |
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
3 | Date: Mon, 23 Jan 2017 15:42:11 +0530 | 3 | Date: Mon, 23 Jan 2017 15:42:11 +0530 |
4 | Subject: [PATCH 04/11] [Local]: deleting the xil_printf.c file as now it part | 4 | Subject: [PATCH 03/11] [Local]: deleting the xil_printf.c file as now it part |
5 | of BSP | 5 | of BSP |
6 | 6 | ||
7 | Upstream-Status: Pending | 7 | (cherry picked from commit edf132aae14fadd15630916781a14a29cafd37ef) |
8 | |||
9 | --- | 8 | --- |
10 | libgloss/microblaze/xil_printf.c | 284 ------------------------------- | 9 | libgloss/microblaze/xil_printf.c | 284 ------------------------------- |
11 | 1 file changed, 284 deletions(-) | 10 | 1 file changed, 284 deletions(-) |
@@ -302,5 +301,5 @@ index f18ee8446..000000000 | |||
302 | - | 301 | - |
303 | -/*---------------------------------------------------*/ | 302 | -/*---------------------------------------------------*/ |
304 | -- | 303 | -- |
305 | 2.37.1 (Apple Git-137.1) | 304 | 2.34.1 |
306 | 305 | ||
diff --git a/meta-microblaze/recipes-core/newlib/files/0005-Local-deleting-the-xil_printf.o-from-MAKEFILE.patch b/meta-microblaze/recipes-core/newlib/files/0004-Local-deleting-the-xil_printf.o-from-MAKEFILE.patch index 1576e54d..b441c320 100644 --- a/meta-microblaze/recipes-core/newlib/files/0005-Local-deleting-the-xil_printf.o-from-MAKEFILE.patch +++ b/meta-microblaze/recipes-core/newlib/files/0004-Local-deleting-the-xil_printf.o-from-MAKEFILE.patch | |||
@@ -1,19 +1,18 @@ | |||
1 | From 250aa479da0b688b87f1fa42f45ecd4536194a45 Mon Sep 17 00:00:00 2001 | 1 | From cff1abc10b20e8f9083ee7a5dc3ebfae431c430c Mon Sep 17 00:00:00 2001 |
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
3 | Date: Mon, 23 Jan 2017 15:44:17 +0530 | 3 | Date: Mon, 23 Jan 2017 15:44:17 +0530 |
4 | Subject: [PATCH 05/11] [Local]: deleting the xil_printf.o from MAKEFILE | 4 | Subject: [PATCH 04/11] [Local]: deleting the xil_printf.o from MAKEFILE |
5 | |||
6 | Upstream-Status: Pending | ||
7 | 5 | ||
6 | (cherry picked from commit 250aa479da0b688b87f1fa42f45ecd4536194a45) | ||
8 | --- | 7 | --- |
9 | libgloss/microblaze/Makefile.in | 2 +- | 8 | libgloss/microblaze/Makefile.in | 2 +- |
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | 9 | 1 file changed, 1 insertion(+), 1 deletion(-) |
11 | 10 | ||
12 | diff --git a/libgloss/microblaze/Makefile.in b/libgloss/microblaze/Makefile.in | 11 | diff --git a/libgloss/microblaze/Makefile.in b/libgloss/microblaze/Makefile.in |
13 | index fe04a08c9..32aafda37 100644 | 12 | index f1fa286bb..6d369242d 100644 |
14 | --- a/libgloss/microblaze/Makefile.in | 13 | --- a/libgloss/microblaze/Makefile.in |
15 | +++ b/libgloss/microblaze/Makefile.in | 14 | +++ b/libgloss/microblaze/Makefile.in |
16 | @@ -81,7 +81,7 @@ GENOBJS = fstat.o getpid.o isatty.o kill.o lseek.o print.o putnum.o stat.o unlin | 15 | @@ -83,7 +83,7 @@ GENOBJS = fstat.o getpid.o isatty.o kill.o lseek.o print.o putnum.o stat.o unlin |
17 | open.o close.o read.o write.o | 16 | open.o close.o read.o write.o |
18 | OBJS = ${GENOBJS} sbrk.o timer.o _exception_handler.o _hw_exception_handler.o \ | 17 | OBJS = ${GENOBJS} sbrk.o timer.o _exception_handler.o _hw_exception_handler.o \ |
19 | _interrupt_handler.o _program_clean.o _program_init.o \ | 18 | _interrupt_handler.o _program_clean.o _program_init.o \ |
@@ -23,5 +22,5 @@ index fe04a08c9..32aafda37 100644 | |||
23 | 22 | ||
24 | # Tiny Linux BSP. | 23 | # Tiny Linux BSP. |
25 | -- | 24 | -- |
26 | 2.37.1 (Apple Git-137.1) | 25 | 2.34.1 |
27 | 26 | ||
diff --git a/meta-microblaze/recipes-core/newlib/files/0006-MB-X-intial-commit.patch b/meta-microblaze/recipes-core/newlib/files/0005-MB-X-intial-commit.patch index 779580b6..3f113228 100644 --- a/meta-microblaze/recipes-core/newlib/files/0006-MB-X-intial-commit.patch +++ b/meta-microblaze/recipes-core/newlib/files/0005-MB-X-intial-commit.patch | |||
@@ -1,10 +1,9 @@ | |||
1 | From 97684eb81807189dbcdca560d086100ba8bfa906 Mon Sep 17 00:00:00 2001 | 1 | From 6c4a1e25108584fc472f42d58b14ee5f951080d9 Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Fri, 27 Jul 2018 16:10:36 +0530 | 3 | Date: Fri, 27 Jul 2018 16:10:36 +0530 |
4 | Subject: [PATCH 06/11] MB-X intial commit | 4 | Subject: [PATCH 05/11] MB-X intial commit |
5 | |||
6 | Upstream-Status: Pending | ||
7 | 5 | ||
6 | (cherry picked from commit 97684eb81807189dbcdca560d086100ba8bfa906) | ||
8 | --- | 7 | --- |
9 | libgloss/microblaze/crt0.S | 2 +- | 8 | libgloss/microblaze/crt0.S | 2 +- |
10 | libgloss/microblaze/crt1.S | 2 +- | 9 | libgloss/microblaze/crt1.S | 2 +- |
@@ -192,5 +191,5 @@ index 434195e2c..3119d82c5 100644 | |||
192 | { | 191 | { |
193 | /* To get here, *a1 == *a2, thus if we find a null in *a1, | 192 | /* To get here, *a1 == *a2, thus if we find a null in *a1, |
194 | -- | 193 | -- |
195 | 2.37.1 (Apple Git-137.1) | 194 | 2.34.1 |
196 | 195 | ||
diff --git a/meta-microblaze/recipes-core/newlib/files/0007-Patch-Microblaze-newlib-port-for-microblaze-m64-flag.patch b/meta-microblaze/recipes-core/newlib/files/0006-Patch-Microblaze-newlib-port-for-microblaze-m64-flag.patch index f3e20253..52a4319b 100644 --- a/meta-microblaze/recipes-core/newlib/files/0007-Patch-Microblaze-newlib-port-for-microblaze-m64-flag.patch +++ b/meta-microblaze/recipes-core/newlib/files/0006-Patch-Microblaze-newlib-port-for-microblaze-m64-flag.patch | |||
@@ -1,14 +1,14 @@ | |||
1 | From e7b0c93274c2f51adc7c20c24a28d3cd5974fddc Mon Sep 17 00:00:00 2001 | 1 | From 9fcd09b603d8deb2bbd3557aae6faba311dbdf12 Mon Sep 17 00:00:00 2001 |
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
3 | Date: Tue, 11 Sep 2018 14:32:20 +0530 | 3 | Date: Tue, 11 Sep 2018 14:32:20 +0530 |
4 | Subject: [PATCH 07/11] [Patch, Microblaze]: newlib port for microblaze m64 | 4 | Subject: [PATCH 06/11] [Patch, Microblaze]: newlib port for microblaze m64 |
5 | flag... | 5 | flag... |
6 | 6 | ||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Conflicts: | 7 | Conflicts: |
10 | libgloss/microblaze/_hw_exception_handler.S | 8 | libgloss/microblaze/_hw_exception_handler.S |
11 | libgloss/microblaze/_interrupt_handler.S | 9 | libgloss/microblaze/_interrupt_handler.S |
10 | |||
11 | (cherry picked from commit e7b0c93274c2f51adc7c20c24a28d3cd5974fddc) | ||
12 | --- | 12 | --- |
13 | libgloss/microblaze/_exception_handler.S | 6 +- | 13 | libgloss/microblaze/_exception_handler.S | 6 +- |
14 | libgloss/microblaze/_hw_exception_handler.S | 7 +- | 14 | libgloss/microblaze/_hw_exception_handler.S | 7 +- |
@@ -1135,5 +1135,5 @@ index cdd87c76f..971862bcb 100644 | |||
1135 | +#endif | 1135 | +#endif |
1136 | .end setjmp | 1136 | .end setjmp |
1137 | -- | 1137 | -- |
1138 | 2.37.1 (Apple Git-137.1) | 1138 | 2.34.1 |
1139 | 1139 | ||
diff --git a/meta-microblaze/recipes-core/newlib/files/0008-fixing-the-bug-in-crt-files-added-addlik-instead-of-.patch b/meta-microblaze/recipes-core/newlib/files/0007-fixing-the-bug-in-crt-files-added-addlik-instead-of-.patch index b82d7b5c..6e7b2e48 100644 --- a/meta-microblaze/recipes-core/newlib/files/0008-fixing-the-bug-in-crt-files-added-addlik-instead-of-.patch +++ b/meta-microblaze/recipes-core/newlib/files/0007-fixing-the-bug-in-crt-files-added-addlik-instead-of-.patch | |||
@@ -1,11 +1,10 @@ | |||
1 | From 924721fdb8eed60fe58c8a7976955bac02efc200 Mon Sep 17 00:00:00 2001 | 1 | From eb41f08c22949726576d001e27ec8be3531d947a Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Fri, 28 Sep 2018 12:07:43 +0530 | 3 | Date: Fri, 28 Sep 2018 12:07:43 +0530 |
4 | Subject: [PATCH 08/11] fixing the bug in crt files, added addlik instead of | 4 | Subject: [PATCH 07/11] fixing the bug in crt files, added addlik instead of |
5 | lli insn | 5 | lli insn |
6 | 6 | ||
7 | Upstream-Status: Pending | 7 | (cherry picked from commit 924721fdb8eed60fe58c8a7976955bac02efc200) |
8 | |||
9 | --- | 8 | --- |
10 | libgloss/microblaze/crt0.S | 6 +++--- | 9 | libgloss/microblaze/crt0.S | 6 +++--- |
11 | libgloss/microblaze/crt1.S | 6 +++--- | 10 | libgloss/microblaze/crt1.S | 6 +++--- |
@@ -100,5 +99,5 @@ index 54ba473ea..a25c84734 100644 | |||
100 | brealid r15, _crtinit /* Initialize BSS and run program */ | 99 | brealid r15, _crtinit /* Initialize BSS and run program */ |
101 | nop | 100 | nop |
102 | -- | 101 | -- |
103 | 2.37.1 (Apple Git-137.1) | 102 | 2.34.1 |
104 | 103 | ||
diff --git a/meta-microblaze/recipes-core/newlib/files/0009-Patch-MicroBlaze-Added-MB-64-support-to-strcmp-strcp.patch b/meta-microblaze/recipes-core/newlib/files/0008-Patch-MicroBlaze-Added-MB-64-support-to-strcmp-strcp.patch index 1a89c31b..7eaf0a88 100644 --- a/meta-microblaze/recipes-core/newlib/files/0009-Patch-MicroBlaze-Added-MB-64-support-to-strcmp-strcp.patch +++ b/meta-microblaze/recipes-core/newlib/files/0008-Patch-MicroBlaze-Added-MB-64-support-to-strcmp-strcp.patch | |||
@@ -1,11 +1,10 @@ | |||
1 | From e7a5086bc3e38cf5bc5c5943de6cf5135ed6a77b Mon Sep 17 00:00:00 2001 | 1 | From 82e5a92af613455cb7aed4eee7da3d723e5f5011 Mon Sep 17 00:00:00 2001 |
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
3 | Date: Tue, 17 Nov 2020 13:06:41 +0530 | 3 | Date: Tue, 17 Nov 2020 13:06:41 +0530 |
4 | Subject: [PATCH 09/11] [Patch,MicroBlaze] : Added MB-64 support to | 4 | Subject: [PATCH 08/11] [Patch,MicroBlaze] : Added MB-64 support to |
5 | strcmp/strcpy/strlen files Signed-off-by:Mahesh Bodapati<mbodapat@xilinx.com> | 5 | strcmp/strcpy/strlen files Signed-off-by:Mahesh Bodapati<mbodapat@xilinx.com> |
6 | 6 | ||
7 | Upstream-Status: Pending | 7 | (cherry picked from commit e7a5086bc3e38cf5bc5c5943de6cf5135ed6a77b) |
8 | |||
9 | --- | 8 | --- |
10 | newlib/libc/machine/microblaze/strcmp.c | 63 ++++++++++++++++++++++++- | 9 | newlib/libc/machine/microblaze/strcmp.c | 63 ++++++++++++++++++++++++- |
11 | newlib/libc/machine/microblaze/strcpy.c | 57 ++++++++++++++++++++++ | 10 | newlib/libc/machine/microblaze/strcpy.c | 57 ++++++++++++++++++++++ |
@@ -228,5 +227,5 @@ index acb4464bc..b6f2d3c13 100644 | |||
228 | #endif /* ! HAVE_HW_PCMP */ | 227 | #endif /* ! HAVE_HW_PCMP */ |
229 | } | 228 | } |
230 | -- | 229 | -- |
231 | 2.37.1 (Apple Git-137.1) | 230 | 2.34.1 |
232 | 231 | ||
diff --git a/meta-microblaze/recipes-core/newlib/files/0010-Patch-MicroBlaze-Removing-the-Assembly-implementatio.patch b/meta-microblaze/recipes-core/newlib/files/0009-Patch-MicroBlaze-Removing-the-Assembly-implementatio.patch index aaa2a009..2a3d8632 100644 --- a/meta-microblaze/recipes-core/newlib/files/0010-Patch-MicroBlaze-Removing-the-Assembly-implementatio.patch +++ b/meta-microblaze/recipes-core/newlib/files/0009-Patch-MicroBlaze-Removing-the-Assembly-implementatio.patch | |||
@@ -1,12 +1,12 @@ | |||
1 | From 6b8e5c7a773de4609f9c855aa714eca5a3f8b4ab Mon Sep 17 00:00:00 2001 | 1 | From 5a7955b68f5066b00413e751d1de967181c88b94 Mon Sep 17 00:00:00 2001 |
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
3 | Date: Tue, 9 Nov 2021 22:53:44 +0530 | 3 | Date: Tue, 9 Nov 2021 22:53:44 +0530 |
4 | Subject: [PATCH 10/11] [Patch,MicroBlaze] : Removing the Assembly | 4 | Subject: [PATCH 09/11] [Patch,MicroBlaze] : Removing the Assembly |
5 | implementation of 64bit string function. | 5 | implementation of 64bit string function. |
6 | 6 | ||
7 | Revisit in next release and fix it | 7 | Revisit in next release and fix it |
8 | 8 | ||
9 | Upstream-Status: Pending | 9 | (cherry picked from commit 6b8e5c7a773de4609f9c855aa714eca5a3f8b4ab) |
10 | --- | 10 | --- |
11 | newlib/libc/machine/microblaze/mb_endian.h | 4 + | 11 | newlib/libc/machine/microblaze/mb_endian.h | 4 + |
12 | newlib/libc/machine/microblaze/strcmp.c | 95 ++++++++-------------- | 12 | newlib/libc/machine/microblaze/strcmp.c | 95 ++++++++-------------- |
@@ -337,5 +337,5 @@ index b6f2d3c13..940753996 100644 | |||
337 | #endif /* ! HAVE_HW_PCMP */ | 337 | #endif /* ! HAVE_HW_PCMP */ |
338 | } | 338 | } |
339 | -- | 339 | -- |
340 | 2.37.1 (Apple Git-137.1) | 340 | 2.34.1 |
341 | 341 | ||
diff --git a/meta-microblaze/recipes-core/newlib/files/0011-Fixed-the-bug-in-crtinit.s-for-MB-64.patch b/meta-microblaze/recipes-core/newlib/files/0010-Fixed-the-bug-in-crtinit.s-for-MB-64.patch index 5e89db18..76b83372 100644 --- a/meta-microblaze/recipes-core/newlib/files/0011-Fixed-the-bug-in-crtinit.s-for-MB-64.patch +++ b/meta-microblaze/recipes-core/newlib/files/0010-Fixed-the-bug-in-crtinit.s-for-MB-64.patch | |||
@@ -1,10 +1,9 @@ | |||
1 | From bab2eafd2d4ca1f2caacd50120e8ac94aca1b7c4 Mon Sep 17 00:00:00 2001 | 1 | From 3790e623bec70441d7d34f9390760b611a968e9d Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju <nmekala@xilinx.com> | 2 | From: Nagaraju <nmekala@xilinx.com> |
3 | Date: Tue, 14 Jan 2020 22:32:30 +0530 | 3 | Date: Tue, 14 Jan 2020 22:32:30 +0530 |
4 | Subject: [PATCH 11/11] Fixed the bug in crtinit.s for MB-64 | 4 | Subject: [PATCH 10/11] Fixed the bug in crtinit.s for MB-64 |
5 | |||
6 | Upstream-Status: Pending | ||
7 | 5 | ||
6 | (cherry picked from commit bab2eafd2d4ca1f2caacd50120e8ac94aca1b7c4) | ||
8 | --- | 7 | --- |
9 | libgloss/microblaze/crtinit.S | 2 +- | 8 | libgloss/microblaze/crtinit.S | 2 +- |
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | 9 | 1 file changed, 1 insertion(+), 1 deletion(-) |
@@ -23,5 +22,5 @@ index 854117536..f79140734 100644 | |||
23 | beagti r18, .Lloopsbss | 22 | beagti r18, .Lloopsbss |
24 | .Lendsbss: | 23 | .Lendsbss: |
25 | -- | 24 | -- |
26 | 2.37.1 (Apple Git-137.1) | 25 | 2.34.1 |
27 | 26 | ||
diff --git a/meta-microblaze/recipes-core/newlib/files/0011-Use-port-specific-sbrk.patch b/meta-microblaze/recipes-core/newlib/files/0011-Use-port-specific-sbrk.patch new file mode 100644 index 00000000..52df9e34 --- /dev/null +++ b/meta-microblaze/recipes-core/newlib/files/0011-Use-port-specific-sbrk.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | From c7e7aea9c60f87096a38604a9d4738cf762669dd Mon Sep 17 00:00:00 2001 | ||
2 | From: Aayush Misra <aayushm@amd.com> | ||
3 | Date: Fri, 26 Jul 2024 19:08:17 +0530 | ||
4 | Subject: [PATCH 11/11] Use port-specific sbrk | ||
5 | |||
6 | --- | ||
7 | libgloss/microblaze/Makefile.in | 1 + | ||
8 | 1 file changed, 1 insertion(+) | ||
9 | |||
10 | diff --git a/libgloss/microblaze/Makefile.in b/libgloss/microblaze/Makefile.in | ||
11 | index 6d369242d..d5206a849 100644 | ||
12 | --- a/libgloss/microblaze/Makefile.in | ||
13 | +++ b/libgloss/microblaze/Makefile.in | ||
14 | @@ -122,6 +122,7 @@ linux-crt0.o: linux-crt0.S | ||
15 | crtinit.o: crtinit.S | ||
16 | sim-crtinit.o: sim-crtinit.S | ||
17 | sim-pgcrtinit.o: sim-pgcrtinit.S | ||
18 | +sbrk.o: sbrk.c | ||
19 | |||
20 | # target specific makefile fragment comes in here. | ||
21 | @target_makefile_frag@ | ||
22 | -- | ||
23 | 2.34.1 | ||
24 | |||
diff --git a/meta-microblaze/recipes-core/newlib/libgloss-microblaze.inc b/meta-microblaze/recipes-core/newlib/libgloss-microblaze.inc new file mode 100644 index 00000000..5410286b --- /dev/null +++ b/meta-microblaze/recipes-core/newlib/libgloss-microblaze.inc | |||
@@ -0,0 +1,13 @@ | |||
1 | require microblaze-newlib.inc | ||
2 | |||
3 | do_configure:prepend() { | ||
4 | # hack for microblaze, which needs xilinx.ld to literally do any linking (its hard coded in its LINK_SPEC) | ||
5 | export CC="${CC} -L${S}/libgloss/microblaze" | ||
6 | } | ||
7 | |||
8 | # Libgloss provides various .o files in libdir | ||
9 | # These must NOT be stripped, but for some reason they are installed +x | ||
10 | # which triggers them to be stripped. | ||
11 | do_install:append() { | ||
12 | chmod 0644 ${D}${libdir}/*.o | ||
13 | } | ||
diff --git a/meta-microblaze/recipes-core/newlib/libgloss_%.bbappend b/meta-microblaze/recipes-core/newlib/libgloss_%.bbappend index 15be1732..0ebe2e13 100644 --- a/meta-microblaze/recipes-core/newlib/libgloss_%.bbappend +++ b/meta-microblaze/recipes-core/newlib/libgloss_%.bbappend | |||
@@ -1,13 +1,4 @@ | |||
1 | require microblaze-newlib.inc | 1 | MICROBLAZEPATCHES = "" |
2 | MICROBLAZEPATCHES:microblaze = "libgloss-microblaze.inc" | ||
2 | 3 | ||
3 | do_configure:prepend:microblaze() { | 4 | require ${MICROBLAZEPATCHES} |
4 | # hack for microblaze, which needs xilinx.ld to literally do any linking (its hard coded in its LINK_SPEC) | ||
5 | export CC="${CC} -L${S}/libgloss/microblaze" | ||
6 | } | ||
7 | |||
8 | # Libgloss provides various .o files in libdir | ||
9 | # These must NOT be stripped, but for some reason they are installed +x | ||
10 | # which triggers them to be stripped. | ||
11 | do_install:append:microblaze() { | ||
12 | chmod 0644 ${D}${libdir}/*.o | ||
13 | } | ||
diff --git a/meta-microblaze/recipes-core/newlib/microblaze-newlib.inc b/meta-microblaze/recipes-core/newlib/microblaze-newlib.inc index a1e3b92f..99d3d02e 100644 --- a/meta-microblaze/recipes-core/newlib/microblaze-newlib.inc +++ b/meta-microblaze/recipes-core/newlib/microblaze-newlib.inc | |||
@@ -1,19 +1,23 @@ | |||
1 | # Add MicroBlaze Patches | 1 | # Add MicroBlaze Patches |
2 | FILESEXTRAPATHS:append:microblaze := ":${THISDIR}/files" | 2 | FILESEXTRAPATHS:append := ":${THISDIR}/files" |
3 | SRC_URI:append:microblaze = " \ | 3 | |
4 | file://0001-Patch-microblaze-Add-config-microblaze.mt-for-target.patch \ | 4 | # Our changes are all local, no real patch-status |
5 | file://0002-Patch-microblaze-Modified-_exceptional_handler.patch \ | 5 | ERROR_QA:remove = "patch-status" |
6 | file://0003-LOCAL-Add-missing-declarations-for-xil_printf-to-std.patch \ | 6 | |
7 | file://0004-Local-deleting-the-xil_printf.c-file-as-now-it-part-.patch \ | 7 | SRC_URI += " \ |
8 | file://0005-Local-deleting-the-xil_printf.o-from-MAKEFILE.patch \ | 8 | file://0001-Patch-microblaze-Modified-_exceptional_handler.patch \ |
9 | file://0006-MB-X-intial-commit.patch \ | 9 | file://0002-LOCAL-Add-missing-declarations-for-xil_printf-to-std.patch \ |
10 | file://0007-Patch-Microblaze-newlib-port-for-microblaze-m64-flag.patch \ | 10 | file://0003-Local-deleting-the-xil_printf.c-file-as-now-it-part-.patch \ |
11 | file://0008-fixing-the-bug-in-crt-files-added-addlik-instead-of-.patch \ | 11 | file://0004-Local-deleting-the-xil_printf.o-from-MAKEFILE.patch \ |
12 | file://0009-Patch-MicroBlaze-Added-MB-64-support-to-strcmp-strcp.patch \ | 12 | file://0005-MB-X-intial-commit.patch \ |
13 | file://0010-Patch-MicroBlaze-Removing-the-Assembly-implementatio.patch \ | 13 | file://0006-Patch-Microblaze-newlib-port-for-microblaze-m64-flag.patch \ |
14 | file://0011-Fixed-the-bug-in-crtinit.s-for-MB-64.patch \ | 14 | file://0007-fixing-the-bug-in-crt-files-added-addlik-instead-of-.patch \ |
15 | file://0008-Patch-MicroBlaze-Added-MB-64-support-to-strcmp-strcp.patch \ | ||
16 | file://0009-Patch-MicroBlaze-Removing-the-Assembly-implementatio.patch \ | ||
17 | file://0010-Fixed-the-bug-in-crtinit.s-for-MB-64.patch \ | ||
18 | file://0011-Use-port-specific-sbrk.patch \ | ||
15 | " | 19 | " |
16 | 20 | ||
17 | EXTRA_OECONF:append:xilinx-standalone:microblaze = " \ | 21 | EXTRA_OECONF:append:xilinx-standalone = " \ |
18 | --disable-newlib-reent-check-verify \ | 22 | --disable-newlib-reent-check-verify \ |
19 | " | 23 | " |
diff --git a/meta-microblaze/recipes-core/newlib/newlib-microblaze.inc b/meta-microblaze/recipes-core/newlib/newlib-microblaze.inc new file mode 100644 index 00000000..116bfbf3 --- /dev/null +++ b/meta-microblaze/recipes-core/newlib/newlib-microblaze.inc | |||
@@ -0,0 +1,7 @@ | |||
1 | require microblaze-newlib.inc | ||
2 | |||
3 | do_configure:prepend() { | ||
4 | # hack for microblaze, which needs xilinx.ld to literally do any linking (its hard coded in its LINK_SPEC) | ||
5 | export CC="${CC} -L${S}/libgloss/microblaze" | ||
6 | } | ||
7 | |||
diff --git a/meta-microblaze/recipes-core/newlib/newlib_%.bbappend b/meta-microblaze/recipes-core/newlib/newlib_%.bbappend index d30e61ec..27bdee48 100644 --- a/meta-microblaze/recipes-core/newlib/newlib_%.bbappend +++ b/meta-microblaze/recipes-core/newlib/newlib_%.bbappend | |||
@@ -1,7 +1,4 @@ | |||
1 | require microblaze-newlib.inc | 1 | MICROBLAZEPATCHES = "" |
2 | 2 | MICROBLAZEPATCHES:microblaze = "newlib-microblaze.inc" | |
3 | do_configure:prepend:microblaze() { | ||
4 | # hack for microblaze, which needs xilinx.ld to literally do any linking (its hard coded in its LINK_SPEC) | ||
5 | export CC="${CC} -L${S}/libgloss/microblaze" | ||
6 | } | ||
7 | 3 | ||
4 | require ${MICROBLAZEPATCHES} | ||