Skip to content

Commit 78cfd3c

Browse files
committed
camx: add camera userspace libs
- Add recipe for the camera userspace libs. - created separate firmware recipes Signed-off-by: Ganesh Khose <[email protected]>
1 parent 380250a commit 78cfd3c

File tree

9 files changed

+198
-0
lines changed

9 files changed

+198
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
SUMMARY = "Qualcomm camera core driver and pipeline related libraries"
2+
DESCRIPTION = "Collection of prebuilt libraries to support camera downstream functionality."
3+
LICENSE = "CLOSED"
4+
5+
# no top-level dir in the archive, unpack to subdir to prevent UNPACKDIR pollution
6+
SRC_URI = "https://qartifactory-edge.qualcomm.com/artifactory/qsc_releases/software/chip/component/camx.qclinux.0.0/${PROMO_TAG}/prebuilt_yocto/${BPN}_${PV}_armv8-2a.tar.gz;subdir=${BPN}-${PV}"
7+
SRC_URI[sha256sum] = "a9fc7848f5e108665c6205ed0155b375a9ad72a9ce0040f8bbeeaba2217194b0"
8+
PROMO_TAG = "251120"
9+
10+
DEPENDS += "camxlib-kt fastrpc libxml2 protobuf abseil-cpp"
11+
12+
do_install() {
13+
install -d ${D}${libdir}
14+
cp -r ${S}/usr/lib/* ${D}${libdir}
15+
install -d ${D}${includedir}
16+
cp -r ${S}/usr/include/* ${D}${includedir}
17+
rm -f ${D}/usr/lib/qcm6490/*.a
18+
}
19+
20+
FILES_SOLIBSDEV = ""
21+
FILES:${PN} = "/usr/lib/*"
22+
FILES:${PN}-dev = "/usr/include/*"
23+
INSANE_SKIP:${PN} += "file-rdeps ldflags"
24+
25+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
SUMMARY = "Qualcomm camera core driver and pipeline related libraries"
2+
DESCRIPTION = "Collection of prebuilt libraries to support camera downstream functionality."
3+
LICENSE = "CLOSED"
4+
5+
# no top-level dir in the archive, unpack to subdir to prevent UNPACKDIR pollution
6+
SRC_URI = "https://qartifactory-edge.qualcomm.com/artifactory/qsc_releases/software/chip/component/camx.qclinux.0.0/251120/prebuilt_yocto/${BPN}_${PV}_armv8-2a.tar.gz;subdir=${BPN}-${PV}"
7+
SRC_URI[sha256sum] = "629c940989b32951283463f4bf0f7ce1ac88e4b24e4c7acb2bb0a4c7481d2eee"
8+
9+
DEPENDS += "camxlib fastrpc protobuf-native protobuf "
10+
# Install lib file at right location
11+
do_install() {
12+
install -d ${D}${libdir}
13+
cp -r ${S}/usr/lib/* ${D}${libdir}
14+
15+
install -d ${D}${includedir}
16+
cp -r ${S}/usr/include/* ${D}${includedir}
17+
}
18+
FILES:${PN} = "\
19+
/usr/lib/*"
20+
FILES:${PN}-dev = "/usr/include/*"
21+
#Skips check for .so symlinks
22+
INSANE_SKIP:${PN} = "dev-so"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
SUMMARY = "Qualcomm camera common utility API used by camera driver"
2+
DESCRIPTION = "Collection of prebuilt libraries to support camera downstream functionality."
3+
LICENSE = "CLOSED"
4+
5+
# no top-level dir in the archive, unpack to subdir to prevent UNPACKDIR pollution
6+
SRC_URI = "https://qartifactory-edge.qualcomm.com/artifactory/qsc_releases/software/chip/component/camx.qclinux.0.0/251120/prebuilt_yocto/${BPN}_${PV}_armv8-2a.tar.gz;subdir=${BPN}-${PV}"
7+
SRC_URI[sha256sum] = "71a381ae20e497f0d16789b22d10eeb1284558aebdf2cc6daa9855d05b807333"
8+
9+
DEPENDS += "glib-2.0"
10+
do_install() {
11+
install -d ${D}${libdir}
12+
cp -r ${S}/usr/lib/* ${D}${libdir}
13+
install -d ${D}${includedir}
14+
cp -r ${S}/usr/include/* ${D}${includedir}
15+
}
16+
FILES:${PN}-dev = "/usr/include/*"
17+
FILES:${PN} = "/usr/lib/*"
18+
#Skips check for .so symlinks
19+
INSANE_SKIP:${PN} = "dev-so"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
SUMMARY = "Qualcomm camera firmware files"
2+
DESCRIPTION = "Collection of prebuilt libraries to support camera downstream functionality."
3+
LICENSE = "CLOSED"
4+
5+
# no top-level dir in the archive, unpack to subdir to prevent UNPACKDIR pollution
6+
SRC_URI = "https://qartifactory-edge.qualcomm.com/artifactory/qsc_releases/software/chip/component/camx.qclinux.0.0/251120/prebuilt_yocto/${BPN}_${PV}_armv8-2a.tar.gz;subdir=${BPN}-${PV}"
7+
SRC_URI[sha256sum] = "d5d071abea434c16f3bf410699300977eeb7b5b7b7491b057887f40cb87cfa3f"
8+
9+
# Install lib file at right location
10+
do_install() {
11+
install -d ${D}/lib/firmware
12+
cp -r ${S}/lib/firmware/* ${D}/lib/firmware
13+
}
14+
FILES:${PN} = "/lib/firmware/*"
15+
16+
# Firmware file are pre-compiled, pre-stripped, and not target architecture executables.
17+
# Skipping QA checks: 'already-stripped', 'arch', and 'usrmerge' because:
18+
# - Firmware is not AArch64 ELF (arch check fails)
19+
# - Pre-stripped by vendor (already-stripped)
20+
# - Must remain in /lib/firmware for kernel to load (usrmerge check fails)
21+
INSANE_SKIP_${PN} += "already-stripped arch usrmerge"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
SUMMARY = "Qualcomm camera firmware files"
2+
DESCRIPTION = "Collection of prebuilt libraries to support camera downstream functionality."
3+
LICENSE = "CLOSED"
4+
5+
# no top-level dir in the archive, unpack to subdir to prevent UNPACKDIR pollution
6+
SRC_URI = "https://qartifactory-edge.qualcomm.com/artifactory/qsc_releases/software/chip/component/camx.qclinux.0.0/251120/prebuilt_yocto/${BPN}_${PV}_armv8-2a.tar.gz;subdir=${BPN}-${PV}"
7+
SRC_URI[sha256sum] = "d075ac5d013bd0984e38ecae9ab6ae77cda1814faab6aa2c69d48a139807a547"
8+
9+
# Install lib file at right location
10+
do_install() {
11+
install -d ${D}/lib/firmware
12+
cp -r ${S}/lib/firmware/* ${D}/lib/firmware
13+
}
14+
FILES:${PN} = "/lib/firmware/*"
15+
16+
# Firmware file are pre-compiled, pre-stripped, and not target architecture executables.
17+
# Skipping QA checks: 'already-stripped', 'arch', and 'usrmerge' because:
18+
# - Firmware is not AArch64 ELF (arch check fails)
19+
# - Pre-stripped by vendor (already-stripped)
20+
# - Must remain in /lib/firmware for kernel to load (usrmerge check fails)
21+
INSANE_SKIP_${PN} += "already-stripped arch usrmerge"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
SUMMARY = "Qualcomm camera algo related libraries"
2+
DESCRIPTION = "Collection of prebuilt libraries to support camera downstream functionality."
3+
LICENSE = "CLOSED"
4+
5+
# no top-level dir in the archive, unpack to subdir to prevent UNPACKDIR pollution
6+
SRC_URI = "https://qartifactory-edge.qualcomm.com/artifactory/qsc_releases/software/chip/component/camx.qclinux.0.0/251120/prebuilt_yocto/${BPN}_${PV}_armv8-2a.tar.gz;subdir=${BPN}-${PV}"
7+
SRC_URI[sha256sum] = "c0b2f23c0c87df6b113466b83948cf2baf80b38492e1899984193108a0bab8e3"
8+
9+
DEPENDS += "camxfirmware fastrpc protobuf-native protobuf protobuf-native libxml2 virtual/egl virtual/libgles2"
10+
# Install lib file at right location
11+
do_install() {
12+
install -d ${D}${libdir}
13+
cp -r ${S}/usr/lib/* ${D}${libdir}
14+
}
15+
FILES:${PN} = "/usr/lib/*"
16+
FILES:${PN}-dev = ""
17+
#Skips check for archtecture
18+
INSANE_SKIP:${PN}-dbg = "arch"
19+
INSANE_SKIP:${PN} = "arch"
20+
# The modules require .so to be dynamicaly loaded
21+
INSANE_SKIP:${PN} += "dev-so"
22+
INSANE_SKIP:${PN} += "file-rdeps"
23+
# Prebuilt libraries are already stripped
24+
INSANE_SKIP:${PN} += "already-stripped"
25+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
SUMMARY = "Qualcomm camera algo related libraries"
2+
DESCRIPTION = "Collection of prebuilt libraries to support camera downstream functionality."
3+
LICENSE = "CLOSED"
4+
5+
# no top-level dir in the archive, unpack to subdir to prevent UNPACKDIR pollution
6+
SRC_URI = "https://qartifactory-edge.qualcomm.com/artifactory/qsc_releases/software/chip/component/camx.qclinux.0.0/251120/prebuilt_yocto/${BPN}_${PV}_armv8-2a.tar.gz;subdir=${BPN}-${PV}"
7+
SRC_URI[sha256sum] = "aa2c2bf77d0e7ca6450de50c307f6f4e1781041d7b4c9cc0b085f5b98ac148be"
8+
9+
DEPENDS += "camxfirmware camxcommon fastrpc protobuf-native protobuf libxml2"
10+
# Install lib file at right location
11+
do_install() {
12+
install -d ${D}${libdir}
13+
cp -r ${S}/usr/lib/* ${D}${libdir}
14+
}
15+
FILES:${PN} = "/usr/lib/*"
16+
#Skips check for archtecture
17+
INSANE_SKIP:${PN} = "arch"
18+
# The modules require .so to be dynamicaly loaded
19+
INSANE_SKIP:${PN} += "dev-so"
20+
# Prebuilt libraries are already stripped
21+
INSANE_SKIP:${PN} += "already-stripped"
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
SUMMARY = "Qualcomm camera development related libraries, binary"
2+
DESCRIPTION = "Collection of prebuilt libraries to support camera downstream functionality."
3+
LICENSE = "CLOSED"
4+
5+
# no top-level dir in the archive, unpack to subdir to prevent UNPACKDIR pollution
6+
SRC_URI = "https://qartifactory-edge.qualcomm.com/artifactory/qsc_releases/software/chip/component/camx.qclinux.0.0/${PROMO_TAG}/prebuilt_yocto/${BPN}_${PV}_armv8-2a.tar.gz;subdir=${BPN}-${PV}"
7+
SRC_URI[sha256sum] = "93be63a95f5ea7d5be2648709c777b07feb71d5fba651acb9cc05197465cb666"
8+
PROMO_TAG = "251120"
9+
10+
#Build-time dependencies required for this recipe
11+
DEPENDS += "camx-kt fastrpc camxlib-kt glib-2.0 libxml2"
12+
13+
do_install() {
14+
install -d ${D}${libdir}
15+
cp -r ${S}/usr/lib/* ${D}${libdir}
16+
}
17+
18+
# Prevent packaging of development symlinks for shared libraries (.so)
19+
FILES_SOLIBSDEV = ""
20+
FILES:${PN} = "/usr/lib/*"
21+
22+
# Skip additional QA checks:
23+
# - These modules require .so files to be dynamically loaded
24+
# - file-rdeps: runtime dependency checks (not applicable for prebuilt binaries)
25+
# - ldflags: linker flags check (irrelevant for prebuilt binaries)
26+
INSANE_SKIP:${PN} += "dev-so file-rdeps ldflags"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
SUMMARY = "Qualcomm camera development related libraries, binary"
2+
DESCRIPTION = "Collection of prebuilt libraries to support camera downstream functionality."
3+
LICENSE = "CLOSED"
4+
5+
# no top-level dir in the archive, unpack to subdir to prevent UNPACKDIR pollution
6+
SRC_URI = "https://qartifactory-edge.qualcomm.com/artifactory/qsc_releases/software/chip/component/camx.qclinux.0.0/251120/prebuilt_yocto/${BPN}_${PV}_armv8-2a.tar.gz;subdir=${BPN}-${PV}"
7+
SRC_URI[sha256sum] = "ed134570cce02d17cee56b2ca81889f9ea78091451ed65b2e873053a9bd30bf3"
8+
9+
DEPENDS += "camx camxcommon fastrpc camxlib glib-2.0 libxml2"
10+
do_install() {
11+
install -d ${D}${libdir}
12+
cp -r ${S}/usr/lib/* ${D}${libdir}
13+
}
14+
FILES:${PN} = "/usr/lib/*"
15+
#Skips check for .so symlinks
16+
INSANE_SKIP:${PN} = "already-stripped"
17+
#The modules require .so to be dynamicaly loaded
18+
INSANE_SKIP:${PN} += "dev-so"

0 commit comments

Comments
 (0)