[OE-core] [PATCH 1/1] btrfs-tools: workaround DEBUG_BUILD for arm

Robert Yang liezhi.yang at windriver.com
Tue Mar 10 09:25:52 UTC 2015


Workaround when:
MACHINE = "qemuarm"
DEBUG_BUILD = "1"

Errors:
{standard input}: Assembler messages:
{standard input}:3383: Error: invalid operands (.text and *UND* sections) for `-'
{standard input}:3389: Error: invalid operands (.text and *UND* sections) for `-'
make: *** [cmds-fi-disk_usage.o] Error 1

Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
 .../btrfs-tools/btrfs-tools_git.bb                 |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb b/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
index d86075c..382ee7c 100644
--- a/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
+++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
@@ -28,3 +28,10 @@ do_install () {
 }
 
 BBCLASSEXTEND = "native"
+
+# Workaround when DEBUG_BUILD:
+# {standard input}: Assembler messages:
+# {standard input}:3383: Error: invalid operands (.text and *UND* sections) for `-'
+# {standard input}:3389: Error: invalid operands (.text and *UND* sections) for `-'
+# make: *** [cmds-fi-disk_usage.o] Error 1
+CFLAGS_append_arm = " -O2"
-- 
1.7.9.5




More information about the Openembedded-core mailing list