Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
elfutils
/
refs/tags/rel/13/fp3/6.A.022.1
/
.
/
libcpu
/
android_mnemonic_preprocess.sh
blob: 2b05249529e5efffef1b36c36d6bc25d01c58244 [
file
] [
log
] [
blame
]
#!/bin/sh
arch
=
"$1"
defs
=
"$2"
out
=
"$3"
$M4
"-D${arch}"
-
DDISASSEMBLER
"$defs"
\
|
sed
"1,/^%%/d;/^#/d;/^[[:space:]]*$/d;s/[^:]*:\([^[:space:]]*\).*/MNE(\\1)/;s/{[^}]*}//g;/INVALID/d"
\
|
sort
-
u \
>
"$out"