M7350/oe-core/meta-msm/recipes/init-audio/init-audio_git.bb

37 lines
1.1 KiB
BlitzBasic
Raw Normal View History

2024-09-09 08:57:42 +00:00
inherit autotools
2024-09-09 08:52:07 +00:00
DESCRIPTION = "Installing audio init script"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/BSD;md5=3775480a712fc46a69647678acb234cb"
2024-09-09 08:57:42 +00:00
PR = "r5"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
DEPENDS_append_mdm9635 +="alsa-intf"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
#re-use non-perf settings
BASEMACHINE = "${@d.getVar('MACHINE', True).replace('-perf', '')}"
SRC_URI = "file://init_qcom_audio"
SRC_URI_msm8974 = "file://${BASEMACHINE}/init_qcom_audio"
SRC_URI_msm8610 = "file://${BASEMACHINE}/init_qcom_audio"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
S = "${WORKDIR}"
S_msm8974 = "${WORKDIR}/${BASEMACHINE}"
S_msm8610 = "${WORKDIR}/${BASEMACHINE}"
INITSCRIPT_NAME_msm8974 = "init_qcom_audio"
INITSCRIPT_PARAMS_msm8974 = "start 99 2 3 4 5 . stop 1 0 1 6 ."
INITSCRIPT_NAME_msm8610 = "init_qcom_audio"
INITSCRIPT_PARAMS_msm8610 = "start 99 2 3 4 5 . stop 1 0 1 6 ."
2024-09-09 08:52:07 +00:00
do_install() {
2024-09-09 08:57:42 +00:00
install -m 0755 ${S}/init_qcom_audio -D ${D}${sysconfdir}/init.d/init_qcom_audio
}
do_install_msm8974() {
install -m 0755 ${S}/${BASEMACHINE}/init_qcom_audio -D ${D}${sysconfdir}/init.d/init_qcom_audio
2024-09-09 08:52:07 +00:00
}
2024-09-09 08:57:42 +00:00
do_install_msm8610() {
install -m 0755 ${S}/${BASEMACHINE}/init_qcom_audio -D ${D}${sysconfdir}/init.d/init_qcom_audio
2024-09-09 08:52:07 +00:00
}