avs_mtk_voice/meta/meta-mediatek-mt8516/recipes-audio/images/mtk-image-aud-8516.bb

143 lines
3.3 KiB
BlitzBasic
Raw Permalink Normal View History

2022-05-13 08:02:31 +00:00
IMAGE_INSTALL = "packagegroup-core-boot-aud ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}"
IMAGE_LINGUAS = " "
LICENSE = "MIT"
inherit core-image
inherit create-link
inherit create-mtdverity
inherit mkusrdata
inherit pack-update-zip
2022-06-12 11:09:04 +00:00
#inherit extrausers
2022-05-13 08:02:31 +00:00
CORE_IMAGE_EXTRA_INSTALL += " \
packagegroup-mtk-upgrade-kit-native \
${@base_contains('LICENSE_FLAGS_GMRENDER', 'yes', 'packagegroup-mtk-gstreamer1.0', '' ,d)} \
"
IMAGE_INSTALL_append = " \
${@base_contains('LICENSE_FLAGS_GMRENDER', 'yes', 'gmediarender', '' ,d)} \
${@base_contains('LICENSE_FLAGS_BLUEZ', 'yes', 'bluez5', 'bluetooth' ,d)} \
openssl \
wpa-supplicant \
alsa-utils \
alsa-lib \
wpa-supplicant-passphrase \
mtkcombotool\
mtkwlan \
mtkcombo \
curl \
prog \
ntpdate \
2022-05-27 04:01:40 +00:00
appmainprog \
config-app \
2022-05-21 14:19:18 +00:00
mic-asp \
2022-05-13 08:02:31 +00:00
ppc \
ppccli \
mtk-audio-service \
mtk-alsa-plugins \
wifi-mw \
wlanMon \
android-tools-adbd \
mtd-utils-ubifs \
custom \
upgrade_app \
buildinfo \
tzapp \
coreutils \
data-ubi-mnt \
glibc-gconv-gb18030 \
glibc-gconv-gbgbk \
glibc-gconv-gbk \
glibc-gconv-euc-cn \
glibc-gconv-libgb \
utf-gbk \
wireless-tools \
tzdata \
cjson \
smtcn-mw \
dibbler-client \
c-ares \
cunit \
nghttp2 \
2022-05-13 16:46:23 +00:00
jemalloc \
portaudio \
2022-05-15 03:09:43 +00:00
opensc \
2022-05-25 08:39:08 +00:00
sqlite3 \
gstreamer1.0 \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-libav \
gstreamer1.0-plugins-ugly \
libopus \
libarchive \
faad2 \
nfs-utils \
2022-06-12 11:09:04 +00:00
softhsm2 \
libgcrypt \
zeromq \
2022-06-12 11:47:14 +00:00
json-c \
libev \
iptables \
2022-05-13 08:02:31 +00:00
"
install_proc() {
cd ${IMAGE_ROOTFS}/sbin
rm -rf
cd -
cd ${IMAGE_ROOTFS}/bin
rm -rf `ls systemd*|egrep -v systemd-firstboot`
rm -rf hostname.coreutils journalctl
2022-06-21 13:08:53 +00:00
rm -rf loginctl
2022-05-13 08:02:31 +00:00
cd -
cd ${IMAGE_ROOTFS}/usr/sbin
rm -rf `ls ubi*|egrep -v ubiattach`
rm -rf dibbler-client nandtest ch* group* grp* mkfs.ubifs newusers pw* unix* user*
cd -
cd ${IMAGE_ROOTFS}/usr/bin
rm -rf `ls dbus*|egrep -v dbus-daemon`
rm -rf openssl curl ffmpeg ffserver btmw-test mas_test2 pcm_merge_test mas_test btmw-rpc-test wifitesttool data_send2
rm -rf dingdong-AssistantCenter alsamixer base64 basename bashbug boots* bt-dbg btut
rm -rf chgrp chown chfn* cksum comm c_rehash csplit dir* expand expiry faillog fmt fold gpasswd groups*
2022-06-21 13:08:53 +00:00
rm -rf hostid id install join lastlog lbracket* logname md5sum nettle* new* nice nl od paste pathchk
2022-05-13 08:02:31 +00:00
rm -rf pinky pkcs1-conv pr ptx sexp-conv sha* shred shuf sum
rm -rf systemd-* timedatectl
rm -rf tac vdir uptime.coreutils users utf_gbk
rm -rf app_cli aplay
rm -rf mosquitto*
cd -
# remove not used library
cd ${IMAGE_ROOTFS}/usr/lib64
rm -rf libsecure_api.so libimg_vfy.so
rm -rf libbtmw-test.so libmas.so
cd -
cd ${IMAGE_ROOTFS}/lib/systemd
rm -rf systemd-journald systemd-logind systemd-timedated systemd-user-sessions systemd-vconsole-setup
cd -
# delete all timezone execpt Hong_Kong
cd ${IMAGE_ROOTFS}/usr/share/zoneinfo
rm -rf `ls|egrep -v Asia`
cd -
cd ${IMAGE_ROOTFS}/usr/share/zoneinfo/Asia
rm -rf `ls|egrep -v Hong_Kong`
cd -
cd ${IMAGE_ROOTFS}/etc
rm -rf localtime
ln -s ../usr/share/zoneinfo/Asia/Hong_Kong localtime
cd -
}
ROOTFS_POSTPROCESS_COMMAND += " install_proc"