Add build scripts for embedded (netboot) edition

This commit is contained in:
Floris Bos 2022-02-14 11:03:37 +01:00
parent 71754dd164
commit 25947fc199
223 changed files with 32637 additions and 1 deletions

View file

@ -0,0 +1,24 @@
#!/bin/sh
#
# Trim down images by removing some files we do not need
#
(cd ${TARGET_DIR}/bin
rm -f choom col colcrt colrm column fincore findmnt flock \
getopt hexdump ipcmk isosize look lscpu lsipc lsirq lslocks \
lsns mcookie namei pcre2grep pcre2test prlimit qml qmlpreview \
qmlscene qmltestrunner renice rev script scriptlive scriptreplay \
setarch setsid uuidgen uuidparse whereis xmlwf zstd zstdgrep zstdless \
zstdmt zstdcat linux32 linux64 lzmadec lzmainfo uname26 unzstd unxz xz \
xzcat xzcmp xzdev xzdiff xzegrep xzfgrep xzgrep xzless xzmore)
(cd ${TARGET_DIR}/usr/sbin
rm -f blkdiscard blkid blkzone blockdev chcpu ctrlaltdel fdisk findfs \
fsfreeze fstrim ldattach mkswap readprofile rtcwake swaplabel \
swapoff swapon)
rm -rf ${TARGET_DIR}/usr/lib/metatypes ${TARGET_DIR}/usr/lib/qt/plugins/qmltooling
rm -f ${TARGET_DIR}/usr/lib/qt/plugins/platforms/libqvnc.so ${TARGET_DIR}/usr/lib/libQt5QuickTest.so* ${TARGET_DIR}/usr/lib/libQt5Test.so*