Skip to contentSkip to conversation

target/xtensa/import_core.sh: don't add duplicate 'static'

PATCH New Max Filippov 1 participant 1 message Dec 8, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/xtensa/import_core.sh: don't add duplicate 'static'

xtensa-modules.c produced by recent Tensilica tools have Opcode_*_encode_fns arrays defined as static. Don't add extra 'static' in front of them when importing.

---
 target/xtensa/import_core.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/xtensa/import_core.sh +1 -1
index 039406bf28fa..e4a2e39f6353 100755
@@ -27,7 +27,7 @@ tar -xf "$OVERLAY" -O gdb/xtensa-config.c | \
 # Fix up known issues in the xtensa-modules.c
 #
 tar -xf "$OVERLAY" -O binutils/xtensa-modules.c | \
-    sed -e 's/\(xtensa_opcode_encode_fn.*\[\] =\)/static \1/' \
+    sed -e 's/^\(xtensa_opcode_encode_fn.*\[\] =\)/static \1/' \
         -e '/^int num_bypass_groups()/,/}/d' \
         -e '/^int num_bypass_group_chunks()/,/}/d' \
         -e '/^uint32 \*bypass_entry(int i)/,/}/d' \
Signature · 1 line
2.11.0