summaryrefslogtreecommitdiffstats
path: root/meta-microblaze/recipes-extended
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@xilinx.com>2021-12-02 04:39:53 -0800
committerMark Hatle <mark.hatle@xilinx.com>2022-01-14 11:21:55 -0800
commitc9afc4648479ca31bacfd1d814689794988ea5d9 (patch)
tree1385fe29174ace52508030ddec17ad25e69d6606 /meta-microblaze/recipes-extended
parent45ef140975dd4bcba78ef8df0a9f0106caedabcd (diff)
downloadmeta-xilinx-c9afc4648479ca31bacfd1d814689794988ea5d9.tar.gz
microblaze m4/diffutils/grep: Add stack direction info to m4 macros
These tools require knowledge of the stack direction, since we are cross compiling they are unable to detect the stack growth direction so it must be defined in the m4 macro. It turns out the direction was already set, but defined as 'microblaze' instead of 'microblaze*' which caused problems on little endian. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-microblaze/recipes-extended')
-rw-r--r--meta-microblaze/recipes-extended/diffutils/diffutils_%.bbappend4
-rw-r--r--meta-microblaze/recipes-extended/diffutils/files/m4-stack-direction-microblaze.patch11
-rw-r--r--meta-microblaze/recipes-extended/grep/files/m4-stack-direction-microblaze.patch11
-rw-r--r--meta-microblaze/recipes-extended/grep/grep_%.bbappend4
4 files changed, 30 insertions, 0 deletions
diff --git a/meta-microblaze/recipes-extended/diffutils/diffutils_%.bbappend b/meta-microblaze/recipes-extended/diffutils/diffutils_%.bbappend
new file mode 100644
index 00000000..c0afc82d
--- /dev/null
+++ b/meta-microblaze/recipes-extended/diffutils/diffutils_%.bbappend
@@ -0,0 +1,4 @@
1FILESEXTRAPATHS:append:microblaze := ":${THISDIR}/files"
2SRC_URI:append:microblaze = " \
3 file://m4-stack-direction-microblaze.patch \
4"
diff --git a/meta-microblaze/recipes-extended/diffutils/files/m4-stack-direction-microblaze.patch b/meta-microblaze/recipes-extended/diffutils/files/m4-stack-direction-microblaze.patch
new file mode 100644
index 00000000..b8b40fb8
--- /dev/null
+++ b/meta-microblaze/recipes-extended/diffutils/files/m4-stack-direction-microblaze.patch
@@ -0,0 +1,11 @@
1--- m4-1.4.19/m4/stack-direction.m4.orig 2021-11-30 13:19:56.005640547 -0800
2+++ m4-1.4.19/m4/stack-direction.m4 2021-11-30 13:20:03.917640741 -0800
3@@ -35,7 +35,7 @@
4 m68* | \
5 m88k | \
6 mcore | \
7- microblaze | \
8+ microblaze* | \
9 mips* | \
10 mmix | \
11 mn10200 | \
diff --git a/meta-microblaze/recipes-extended/grep/files/m4-stack-direction-microblaze.patch b/meta-microblaze/recipes-extended/grep/files/m4-stack-direction-microblaze.patch
new file mode 100644
index 00000000..b8b40fb8
--- /dev/null
+++ b/meta-microblaze/recipes-extended/grep/files/m4-stack-direction-microblaze.patch
@@ -0,0 +1,11 @@
1--- m4-1.4.19/m4/stack-direction.m4.orig 2021-11-30 13:19:56.005640547 -0800
2+++ m4-1.4.19/m4/stack-direction.m4 2021-11-30 13:20:03.917640741 -0800
3@@ -35,7 +35,7 @@
4 m68* | \
5 m88k | \
6 mcore | \
7- microblaze | \
8+ microblaze* | \
9 mips* | \
10 mmix | \
11 mn10200 | \
diff --git a/meta-microblaze/recipes-extended/grep/grep_%.bbappend b/meta-microblaze/recipes-extended/grep/grep_%.bbappend
new file mode 100644
index 00000000..c0afc82d
--- /dev/null
+++ b/meta-microblaze/recipes-extended/grep/grep_%.bbappend
@@ -0,0 +1,4 @@
1FILESEXTRAPATHS:append:microblaze := ":${THISDIR}/files"
2SRC_URI:append:microblaze = " \
3 file://m4-stack-direction-microblaze.patch \
4"