增加 AVS SDK rpm安装包支持
This commit is contained in:
parent
245577586f
commit
8c358b7430
|
@ -0,0 +1,75 @@
|
|||
#
|
||||
# Copyright (c) 2019 Amazon.com, Inc.
|
||||
# Copyright (c) 2019 Luxoft Sweden AB
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
SUMMARY = "An SDK for commercial device makers to integrate Alexa directly into connected products."
|
||||
HOMEPAGE = "https://developer.amazon.com/avs/sdk"
|
||||
LICENSE = "Apache-2.0"
|
||||
#LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d92e60ee98664c54f68aa515a6169708"
|
||||
|
||||
#DEPENDS = "useradd curl nghttp2 sqlite3 openssl gstreamer1.0 gstreamer1.0-plugins-base libopus libarchive cjson"
|
||||
|
||||
SRC_URI = "file://avs-device-sdk-1.26.0-r0.aarch64.rpm \
|
||||
file://avs-device-sdk.service \
|
||||
"
|
||||
#SRCREV = "${AUTOREV}"
|
||||
|
||||
COMPATIBLE_HOST = "aarch64-poky-linux"
|
||||
|
||||
#S = "${WORKDIR}/rpms"
|
||||
|
||||
KWDRESDIR = "${WORKDIR}/avs/avs-weakup-sdk/wakeword-models/x1f8"
|
||||
KWDINSDIR = "${D}/data/avs/wakeword-models/x1f8"
|
||||
DSTWRKDIR = "/home/avs/SampleApp"
|
||||
|
||||
inherit systemd
|
||||
|
||||
SYSTEMD_SERVICE_${PN} = "avs-device-sdk.service"
|
||||
SYSTEMD_AUTO_ENABLE_${PN} = "enable"
|
||||
|
||||
FILES_${PN} = "/home/avs/SampleApp/* /etc/* /lib/* /data/dingdong/*"
|
||||
FILES_${PN} += "/data/dingdong/etc/ /data/database/"
|
||||
FILES_${PN} += "/data/avs/*"
|
||||
|
||||
do_install_append() {
|
||||
# Install Sample application to test Alexa Voice Service
|
||||
install -d ${D}/etc
|
||||
install -d ${D}/lib/firmware/
|
||||
install -d ${D}/lib/firmware/led_animation
|
||||
install -d -o avs -g avs ${D}/home/avs
|
||||
install -d -o avs -g avs ${D}/home/avs/SampleApp
|
||||
install -d -o avs -g avs ${D}/data/avs
|
||||
install -d -o avs -g avs ${D}/data/avs/samples
|
||||
install -d -o avs -g avs ${D}/data/avs/wakeword-models
|
||||
install -d -o avs -g avs ${D}/data/avs/samples/fingerprinting
|
||||
install -d -o avs -g avs ${D}/data/avs/samples/watermarking
|
||||
install -d -o avs -g avs ${D}/data/avs/wakeword-models/x1f8
|
||||
install -d -o avs -g avs ${D}/data/dingdong/
|
||||
install -d -o avs -g avs ${D}/data/dingdong/etc/
|
||||
install -d -o avs -g avs ${D}/data/database/
|
||||
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 0644 ${WORKDIR}/avs-device-sdk.service ${D}${systemd_unitdir}/system
|
||||
|
||||
install -m 0755 -o avs -g avs ${WORKDIR}/${DSTWRKDIR}/* ${D}/home/avs/SampleApp/
|
||||
|
||||
install -m 0644 -o avs -g avs ${WORKDIR}/etc/asound.conf ${D}/etc/asound.conf
|
||||
install -m 0644 -o avs -g avs ${WORKDIR}/etc/led_config.json ${D}/etc/led_config.json
|
||||
install -m 0644 -o avs -g avs ${WORKDIR}/etc/WakewordModelMapping.json ${D}/etc/WakewordModelMapping.json
|
||||
|
||||
install -m 0644 -o avs -g avs ${WORKDIR}/data/avs/AlexaClientSDKConfig.json ${D}/data/avs/AlexaClientSDKConfig.json
|
||||
|
||||
install -m 0644 -o avs -g avs ${WORKDIR}/data/avs/samples/fingerprinting/fingerprint_test_list \
|
||||
${D}/data/avs/samples/fingerprinting/fingerprint_test_list
|
||||
install -m 0644 -o avs -g avs ${WORKDIR}/data/avs/samples/watermarking/watermark.alexa+echo.bin \
|
||||
${D}/data/avs/samples/watermarking/watermark.alexa+echo.bin
|
||||
|
||||
install -m 0644 -o avs -g avs ${WORKDIR}/data/avs/wakeword-models/x1f8/* ${D}/data/avs/wakeword-models/x1f8
|
||||
|
||||
install -m 0644 -o avs -g avs ${WORKDIR}/lib/firmware/led_animation/* ${D}/lib/firmware/led_animation/
|
||||
}
|
||||
|
||||
INSANE_SKIP_${PN} += "rpaths already-stripped"
|
Binary file not shown.
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=AVS SDK Sample Application Service
|
||||
After=appmainprog.service network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/bin/bash /home/avs/SampleApp/setup_avs.sh
|
||||
StandardOutput=tty
|
||||
StandardError=tty
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -79,7 +79,7 @@ IMAGE_INSTALL_append = " \
|
|||
libev \
|
||||
iptables \
|
||||
useradd \
|
||||
avs-device-sdk \
|
||||
avs-device-sdk-rpm \
|
||||
"
|
||||
|
||||
install_proc() {
|
||||
|
|
Loading…
Reference in New Issue