forked from batocera-linux/batocera.linux
-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathcheck-armhf-libs.sh
executable file
·41 lines (34 loc) · 1.32 KB
/
check-armhf-libs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# list libraries in 64 and 32 bit builds
ls output/h700/target/usr/lib | awk 'BEGIN {FS="."} {print $1}' |grep lib | sort | uniq > ./liblist64.txt
ls output/h700_armhf_libs/target/usr/lib | awk 'BEGIN {FS="."} {print $1}' |grep lib | sort | uniq > ./liblist32.txt
echo
echo Missing libs:
if [[ $1 == '-a' ]]; then
diff ./liblist64.txt ./liblist32.txt | grep lib | grep \<
exit 0
fi
ignored='avahi libdns_sd' # avahi
ignored+=' samba libsmb libsamdb libnss libndr' # samba
ignored+=' libtevent wbclient dcerpc libnetapi' # samba
ignored+=' nfsid ntfs libbtrfs libext2fs libe2p libcom_err libss' # fs
ignored+=' libfdisk libparted' # fs
ignored+=' pigpio bluetooth libi2c' # hw
ignored+=' libelf libdw libasm' # elfutils
ignored+=' libgamestream moonlight' # moonlight
ignored+=' lightspark mupen libretro solarus' # emulators
ignored+=' mosquitto libxtables' # net
ignored+=' alpm' # pacman
ignored+=' libSAASound' # used by simcoupe
ignored+=' libSDL2_mixer_ext' # used by thextech
ignored+=' libgomp' # gcc
ignored+=' libip4tc libip6tc' # iptables
ignored+=' libprocps' # procps
ignored+=' libsyslog' # sysklogd
diff ./liblist64.txt ./liblist32.txt | grep lib | grep \< > libdiff.txt
for ignore in $ignored; do
grep -v $ignore libdiff.txt > libdiff.txt.grep
mv libdiff.txt.grep libdiff.txt
done
cat libdiff.txt
rm libdiff.txt