Skip to content
Snippets Groups Projects
Commit 7d6c37cf authored by Linux Build Service Account's avatar Linux Build Service Account
Browse files

Merge 1267a150 on remote branch

Change-Id: Id1d351cec45f3dc328761059370552d6b656ad3a
parents 276b6bb9 1267a150
No related branches found
No related tags found
No related merge requests found
Showing
with 442 additions and 0 deletions
BBPATH =. "${LAYERDIR}:"
BBFILE_COLLECTIONS += "qti-cvp"
BBFILE_PRIORITY_qti-cvp = "12"
BBFILE_PATTERN_qti-cvp := "^${LAYERDIR}/"
LAYERSERIES_COMPAT_qti-cvp = "dunfell kirkstone"
LAYERDEPENDS_qti-cvp = "core"
BBFILES += "${LAYERDIR}/recipes/*/*.bb \
${LAYERDIR}/recipes/*/*.bbappend"
inherit linux-kernel-base deploy
DESCRIPTION = "QTI CVP driver"
LICENSE = "GPL-2.0 WITH Linux-syscall-note"
LIC_FILES_CHKSUM = "file://${WORKSPACE}/kernel-5.15/kernel_platform/msm-kernel/COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
PR = "r0"
#DEPENDS = "bc-native rsync-native mmrm-kernel"
DEPENDS = "bc-native rsync-native"
do_configure[depends] += "virtual/kernel:do_shared_workdir"
FILESPATH =+ "${WORKSPACE}:"
SRC_URI = "file://vendor/qcom/opensource/cvp-kernel/ \
file://${BASEMACHINE}/cvp_load.conf"
SRC_URI += "file://kernel-5.15/kernel_platform"
SRC_URI += "file://kernel-5.15/out/${KERNEL_DEFCONFIG}"
S = "${WORKDIR}/vendor/qcom/opensource/cvp-kernel/"
KERNEL_VERSION = "${@oe.utils.read_file('${STAGING_KERNEL_BUILDDIR}/kernel-abiversion')}"
EXTRA_OEMAKE += "TARGET_SUPPORT=${BASEMACHINE}"
# Disable parallel make
PARALLEL_MAKE = "-j1"
do_compile() {
echo "WORKDIR path -> " ${WORKDIR}
echo "D path -> " ${D}
echo "base_libdir path -> " ${base_libdir}
echo "STAGING_DIR_HOST path -> " ${STAGING_DIR_HOST}
echo "KERNEL_VERSION -> " ${KERNEL_VERSION}
echo "COMPONENTS_DIR -> " ${COMPONENTS_DIR}
echo "MMRM SYMVERS PATH -> " ${COMPONENTS_DIR}/aarch64/mmrm-kernel${base_libdir}/modules/${KERNEL_VERSION}/
cd ${WORKDIR}/kernel-${PREFERRED_VERSION_linux-msm}/kernel_platform && \
BUILD_CONFIG=msm-kernel/${KERNEL_CONFIG} \
EXT_MODULES=../../vendor/qcom/opensource/cvp-kernel/ \
ROOTDIR=${WORKDIR}/ \
MODULE_OUT=${WORKDIR}/vendor/qcom/opensource/cvp-kernel \
OUT_DIR=${WORKDIR}/kernel-5.15/out/${KERNEL_DEFCONFIG} \
KERNEL_UAPI_HEADERS_DIR=${STAGING_KERNEL_BUILDDIR} \
./build/build_module.sh \
KBUILD_EXTRA_SYMBOLS=${STAGING_DIR_HOST}/lib/modules/${KERNEL_VERSION}/Module.symvers
KBUILD_EXTRA_SYMBOLS+=${COMPONENTS_DIR}/aarch64/mmrm-kernel${base_libdir}/modules/${KERNEL_VERSION}/Module.symvers
}
do_install() {
install -d ${D}/usr/lib/modules/
install -m 0755 ${WORKDIR}/${BASEMACHINE}/cvp_load.conf -D ${D}${sysconfdir}/modules-load.d/cvp_load.conf
install -m 0755 ${WORKDIR}/vendor/qcom/opensource/cvp-kernel/msm/msm-cvp.ko -D ${D}${base_libdir}/modules/${KERNEL_VERSION}/msm-cvp.ko
install -m 0755 ${WORKDIR}/vendor/qcom/opensource/cvp-kernel/Module.symvers -D ${D}${base_libdir}/modules/${KERNEL_VERSION}/Module.symver
}
do_deploy() {
# Deploy unstripped kernel modules into ${DEPLOYDIR}/kernel_modules for debugging purposes
install -d ${DEPLOYDIR}/kernel_modules
for kmod in $(find ${D} -name "*.ko") ; do
install -m 0644 $kmod ${DEPLOYDIR}/kernel_modules
done
}
addtask deploy after do_install before do_package
#FILES_${PN} += "${base_libdir}/modules/*"
INSANE_SKIP:${PN} += "installed-vs-shipped"
FILES_${PN} += "${base_libdir}/modules/*/*.ko"
FILES_${PN}-dev += "/usr/include/*"
do_rm_work[noexec] = "1"
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted (subject to the limitations in the
# disclaimer below) provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
# NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
# GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
# HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#!/bin/bash
[Unit]
Description= Load eva dlkm service
SourcePath=/etc/initscripts/start_eva_le
[Service]
Restart=on-failure
RemainAfterExit=yes
# This service file has no binary and it is to execute the list of commands in <script>.
# Use Script file only when there is NO binary or commands to be executed/ modules to be installed cases.
# ExecStart=/bin/bash /etc/initscripts/start_eva_le start
ExecStart=/bin/bash -c "/etc/initscripts/start_eva_le start && test -f /sys/devices/virtual/cvp/cvp/boot && echo 1 > /sys/devices/virtual/cvp/cvp/boot"
ExecStop=/bin/bash /etc/initscripts/start_eva_le stop
[Install]
WantedBy=multi-user.target
#Conf file to load video-driver modules at boot-up time
msm-eva
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted (subject to the limitations in the
# disclaimer below) provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
# NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
# GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
# HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
export MODULE_BASE=/usr/lib/modules/
set -e
case "$1" in
start)
echo -n "Starting/Loading eva module: "
echo "msm-eva:start/load" > /dev/kmsg
insmod $MODULE_BASE/msm-eva.ko
echo "done loading msm-eva module"
;;
stop)
echo -n "Bypassing Unloading of msm-eva module "
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage { start | stop | restart}" >&2
exit 1
;;
esac
exit 0
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted (subject to the limitations in the
# disclaimer below) provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
# NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
# GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
# HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#!/bin/bash
[Unit]
Description= Load eva dlkm service
SourcePath=/etc/initscripts/start_eva_le
[Service]
Restart=on-failure
RemainAfterExit=yes
# This service file has no binary and it is to execute the list of commands in <script>.
# Use Script file only when there is NO binary or commands to be executed/ modules to be installed cases.
# ExecStart=/bin/bash /etc/initscripts/start_eva_le start
ExecStart=/bin/bash -c "/etc/initscripts/start_eva_le start && test -f /sys/devices/virtual/cvp/cvp/boot && echo 1 > /sys/devices/virtual/cvp/cvp/boot"
ExecStop=/bin/bash /etc/initscripts/start_eva_le stop
[Install]
WantedBy=multi-user.target
#Conf file to load video-driver modules at boot-up time
msm-eva
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted (subject to the limitations in the
# disclaimer below) provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
# NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
# GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
# HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
export MODULE_BASE=/usr/lib/modules/
set -e
case "$1" in
start)
echo -n "Starting/Loading eva module: "
echo "msm-eva:start/load" > /dev/kmsg
insmod $MODULE_BASE/msm-eva.ko
echo "done loading msm-eva module"
;;
stop)
echo -n "Bypassing Unloading of msm-eva module "
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage { start | stop | restart}" >&2
exit 1
;;
esac
exit 0
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted (subject to the limitations in the
# disclaimer below) provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
# NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
# GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
# HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#!/bin/bash
[Unit]
Description= Load cvp dlkm service
SourcePath=/etc/initscripts/start_cvp_le
[Service]
Restart=on-failure
RemainAfterExit=yes
# This service file has no binary and it is to execute the list of commands in <script>.
# Use Script file only when there is NO binary or commands to be executed/ modules to be installed cases.
# ExecStart=/bin/bash /etc/initscripts/start_cvp_le start
ExecStart=/bin/bash -c "/etc/initscripts/start_cvp_le start && test -f /sys/devices/virtual/cvp/cvp/boot && echo 1 > /sys/devices/virtual/cvp/cvp/boot"
ExecStop=/bin/bash /etc/initscripts/start_cvp_le stop
[Install]
WantedBy=multi-user.target
#Conf file to load video-driver modules at boot-up time
msm-cvp
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted (subject to the limitations in the
# disclaimer below) provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
# NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
# GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
# HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
export MODULE_BASE=/usr/lib/modules/
set -e
case "$1" in
start)
echo -n "Starting/Loading cvp module: "
echo "msm-eva:start/load" > /dev/kmsg
insmod $MODULE_BASE/msm-cvp.ko
echo "done loading msm-cvp module"
;;
stop)
echo -n "Bypassing Unloading of msm-cvp module "
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage { start | stop | restart}" >&2
exit 1
;;
esac
exit 0
SUMMARY = "QTI CVP Package Group"
LICENSE = "BSD-3-Clause-Clear"
PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit packagegroup
PROVIDES = "${PACKAGES}"
PACKAGES = "\
packagegroup-qti-cvp \
"
RDEPENDS:packagegroup-qti-cvp = " \
cvp-kernel \
"
inherit qprebuilt autotools-brokensep pkgconfig
HOMEPAGE = "https://git.codelinaro.org/"
DESCRIPTION = "Generates qti_cvp_kernel headers"
LICENSE = "GPL-2.0 WITH Linux-syscall-note"
LIC_FILES_CHKSUM = "file://${WORKSPACE}/kernel-5.15/kernel_platform/msm-kernel/COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
PACKAGE_ARCH ?= "${MACHINE_ARCH}"
FILESPATH = "${WORKSPACE}/:"
SRC_URI = "file://vendor/qcom/opensource/cvp-kernel/include/uapi/eva/media"
S = "${WORKDIR}//vendor/qcom/opensource/cvp-kernel/include/uapi/eva/media"
ALLOW_EMPTY_${PN} = "1"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment