nvidia-kernel-oot: install headers under ${includedir}/${BPN}

Signed-off-by: Daniel Chaves <dchvs11@gmail.com>
This commit is contained in:
Daniel Chaves
2024-10-22 19:13:16 +00:00
committed by Matt Madison
parent 6ee8c498d8
commit 369d75b204

View File

@@ -93,6 +93,8 @@ do_install() {
install -m 0644 ${B}/nvidia-oot/device-tree/platform/generic-dts/dtbs/* ${D}/boot/devicetree/
install -d ${D}${includedir}/${BPN}
find ${B} -name Module.symvers -type f | xargs sed -e's:${B}/::g' >${D}${includedir}/${BPN}/Module.symvers
cp -R ${S}/nvidia-oot/include/* ${D}/${includedir}/${BPN}
}
SYSROOT_DIRS += "/boot/devicetree"
@@ -102,6 +104,9 @@ module_conf_nvgpu = 'options nvgpu devfreq_timer="delayed"'
PACKAGES =+ "${PN}-devicetrees ${PN}-display ${PN}-cameras ${PN}-bluetooth ${PN}-wifi ${PN}-canbus ${PN}-virtualization ${PN}-alsa ${PN}-test ${PN}-base"
FILES:${PN}-devicetrees = "/boot/devicetree"
FILES:${PN}-dev = "\
${includedir}/${BPN} \
"
ALLOW_EMPTY:${PN}-display = "1"
ALLOW_EMPTY:${PN}-cameras = "1"
ALLOW_EMPTY:${PN}-bluetooth = "1"