blob: abcb141ae654225c22016c74bf8007697d549aa7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
# Extra cleanup tasks to trim some extra fat from the target.
# If $TARGET_DIR is not set, bail immediately.
if [ -z "$TARGET_DIR" ]; then
exit 1
fi
# libstdc++ is not used by any skiroot binaries.
rm $TARGET_DIR/usr/lib/libstdc++*
# libelf is needed for kexec, but no point in keeping foreign platform support.
for n in aarch64 alpha arm i386 ia64 m68k s390 sh sparc tilegx x86_64
do
rm $TARGET_DIR/usr/lib/elfutils/libebl_${n}*.so
done
# Keeping hardware driver modules in the skiroot build is more important than
# keeping pretty-printing support for vendors in skiroot.
rm $TARGET_DIR/etc/udev/hwdb.d/*
exit 0
|