2024-09-09 08:57:42 +00:00
|
|
|
inherit autotools-brokensep pkgconfig
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
DESCRIPTION = "Open Source kernel tests"
|
|
|
|
LICENSE = "BSD"
|
|
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/\
|
|
|
|
${LICENSE};md5=3775480a712fc46a69647678acb234cb"
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
FILESPATH =+ "${WORKSPACE}:"
|
|
|
|
SRC_URI = "file://qcom-opensource/kernel/kernel-tests/"
|
|
|
|
S = "${WORKDIR}/qcom-opensource/kernel/kernel-tests"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
DEPENDS = "virtual/kernel libxml2 glib-2.0"
|
|
|
|
# This DEPENDS is to serialize kernel module builds
|
|
|
|
DEPENDS_append_mdm9635 = " qcacld-ll rtsp-alg"
|
|
|
|
DEPENDS_append_mdm9640 = " qcacld-ll rtsp-alg"
|
|
|
|
#DEPENDS_append_mdmcalifornium = " qcacld-ll rtsp-alg"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
PR = "r6"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
CFLAGS_pn-${PN} = ""
|
|
|
|
CPPFLAGS_pn-${PN} = ""
|
|
|
|
CXXFLAGS_pn-${PN} = ""
|
|
|
|
LDFLAGS_pn-${PN} = ""
|
|
|
|
PACKAGE_STRIP = "no"
|
|
|
|
|
|
|
|
EXTRA_OEMAKE += "ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}"
|
|
|
|
|
|
|
|
EXTRA_OECONF = "--prefix=/usr/kernel-tests \
|
2024-09-09 08:57:42 +00:00
|
|
|
--with-kernel=${STAGING_KERNEL_BUILDDIR} \
|
2024-09-09 08:52:07 +00:00
|
|
|
--disable-sps \
|
2024-09-09 08:57:42 +00:00
|
|
|
--with-glib \
|
|
|
|
--with-sanitized-headers=${STAGING_KERNEL_BUILDDIR}/usr/include"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
EXTRA_OECONF_append_msm7627a = " --disable-ion"
|
|
|
|
EXTRA_OECONF_append_msm7627a = " --disable-ocmem"
|
|
|
|
EXTRA_OECONF_append_msm7627a = " --enable-v4l2apps"
|
2024-09-09 08:57:42 +00:00
|
|
|
EXTRA_OECONF_append_mdmcalifornium = " --disable-memory_prof"
|
|
|
|
EXTRA_OECONF_append_mdmcalifornium += " --disable-bam_dmux_loopback"
|
|
|
|
EXTRA_OECONF_append_mdmcalifornium += " --disable-iommu"
|
|
|
|
EXTRA_OECONF_append_mdmcalifornium += " --disable-ion"
|
|
|
|
EXTRA_OECONF_append_mdmcalifornium += " --disable-ip_accelerator"
|
|
|
|
EXTRA_OECONF_append_mdmcalifornium += " --disable-ocmem"
|
|
|
|
EXTRA_OECONF_append_mdm9607 = " --disable-ion"
|
|
|
|
EXTRA_OECONF_append_mdm9607 += " --disable-ocmem"
|
|
|
|
EXTRA_OECONF_append_mdm9607 += " --disable-ip_accelerator"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
FILES_${PN}-dbg = "${prefix}/kernel-tests/*/.debug/* ${prefix}/src/debug/*"
|
|
|
|
FILES_${PN}-dbg += "${libdir}/*.so ${libdir}/.debug/*"
|
|
|
|
FILES_${PN} = "${prefix}/kernel-tests/* ${prefix}/src/*"
|
|
|
|
FILES_${PN} += "${datadir}/pixmaps/* ${libdir}/*"
|