aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/merge-maps.sh
diff options
context:
space:
mode:
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-07-06 09:22:35 +0200
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-07-06 16:09:40 +0200
commit8b25d1ad5d2264bdfc2818c7bda74ee2697df6db (patch)
tree8c3c769777f7e66a2d1ba7dd7651b563cfde370b /scripts/merge-maps.sh
parent97f17497d162afdb82c8704bf097f0fee3724b2e (diff)
Imported Upstream version 16.07-rc1
Change-Id: I40a523e52f12e8496fdd69e902824b0226c303de Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Diffstat (limited to 'scripts/merge-maps.sh')
-rwxr-xr-xscripts/merge-maps.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/scripts/merge-maps.sh b/scripts/merge-maps.sh
deleted file mode 100755
index edc88dea..00000000
--- a/scripts/merge-maps.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-FILES=$(find "$RTE_SDK"/lib "$RTE_SDK"/drivers -name "*_version.map")
-SYMBOLS=$(grep -h "{" $FILES | sort -u | sed 's/{//')
-
-first=0
-prev_sym="none"
-
-for s in $SYMBOLS; do
- echo "$s {"
- echo " global:"
- echo ""
- for f in $FILES; do
- sed -n "/$s {/,/}/p" "$f" | sed '/^$/d' | grep -v global | grep -v local | sed -e '1d' -e '$d'
- done | sort -u
- echo ""
- if [ $first -eq 0 ]; then
- first=1;
- echo " local: *;";
- fi
- if [ "$prev_sym" = "none" ]; then
- echo "};";
- prev_sym=$s;
- else
- echo "} $prev_sym;";
- prev_sym=$s;
- fi
- echo ""
-done