50 lines
1.4 KiB
BlitzBasic
50 lines
1.4 KiB
BlitzBasic
|
DESCRIPTION = "config-app"
|
||
|
LICENSE = "MediaTekProprietary"
|
||
|
DEPENDS+="bluetooth openssl libev json-c alsa-lib curl"
|
||
|
APPS_SRC = "${TOPDIR}/../src/apps/aud-base/config_app"
|
||
|
|
||
|
inherit workonsrc systemd
|
||
|
|
||
|
WORKONSRC = "${APPS_SRC}"
|
||
|
|
||
|
SYSTEMD_PACKAGES = "${PN}"
|
||
|
SYSTEMD_SERVICE_${PN} = "config_app.service"
|
||
|
|
||
|
do_compile() {
|
||
|
echo "Print Env"
|
||
|
MULTI_CPU=-j7
|
||
|
echo ${TOPDIR}
|
||
|
echo ${COMBO_CHIP_ID}
|
||
|
echo ${MTK_PROJECT}
|
||
|
#cd ${S}/nvram_helper && make ${MULTI_CPU}
|
||
|
sh ${S}/copy_include.sh ${TOPDIR} ${COMBO_CHIP_ID} ${MTK_PROJECT}
|
||
|
echo ${S}
|
||
|
cd ${S}/AssistantCenter && make
|
||
|
cd ${S}/daemon_light && make ${MULTI_CPU}
|
||
|
echo "fffffff"
|
||
|
cd ${S} && make
|
||
|
#cd ${S}/nvram_helper && make ${MULTI_CPU}
|
||
|
}
|
||
|
|
||
|
do_install() {
|
||
|
install -d ${D}${bindir}
|
||
|
install -d ${D}${systemd_unitdir}/system
|
||
|
install -d ${D}/etc/config_app
|
||
|
install -d ${D}/data
|
||
|
install -d ${D}/data/dingdong
|
||
|
install -d ${D}/data/dingdong/etc
|
||
|
|
||
|
cp -a ${S}/data/etc/* ${D}/data/dingdong/etc/ #配置文件
|
||
|
cp -a ${S}/data/etc_ro/* ${D}/etc/config_app/
|
||
|
install -m 755 ${S}/AssistantCenter/dingdong-AssistantCenter ${D}${bindir}
|
||
|
install -m 755 ${S}/config_app ${D}${bindir}
|
||
|
install -m 755 ${S}/config_app.service ${D}${systemd_unitdir}/system
|
||
|
install -m 755 ${S}/daemon_light/daemon.bin ${D}${bindir}
|
||
|
}
|
||
|
|
||
|
FILES_${PN} += "/etc /data/dingdong"
|
||
|
FILES_${PN} += "${systemd_unitdir}/system/config_app.service"
|
||
|
INSANE_SKIP_${PN} += "already-stripped ldflags"
|
||
|
FILES_${PN}-dev = ""
|
||
|
|