145 lines
3.6 KiB
BlitzBasic
Executable File
145 lines
3.6 KiB
BlitzBasic
Executable File
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
|
|
#inherit extrausers
|
|
|
|
EXTRA_USERS_PARAMS = "usermod -p $(openssl passwd avs123!@#) root;"
|
|
EXTRA_USERS_PARAMS += "useradd -P $(openssl passwd avs123!@#) aud8516;"
|
|
|
|
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_FFMPEG', 'yes', 'ffmpeg', '' ,d)} \
|
|
${@base_contains('LICENSE_FLAGS_AISPEECH', 'yes', 'aispeech', '' ,d)} \
|
|
${@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 \
|
|
appmainprog \
|
|
mic-asp \
|
|
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 \
|
|
jemalloc \
|
|
portaudio \
|
|
opensc \
|
|
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 \
|
|
softhsm2 \
|
|
libgcrypt \
|
|
zeromq \
|
|
json-c \
|
|
"
|
|
|
|
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
|
|
rm -rf loginctl login.shadow
|
|
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*
|
|
rm -rf hostid id install join lastlog lbracket* logname md5sum nettle* new* nice nl od passwd* paste pathchk
|
|
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"
|
|
|