mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-10-29 19:42:41 +00:00
nvidia-kernel-oot: support external device-tree recipes
When device-tree builds moved to nvidia-kernel-oot, the dtb files built from the platform dts files were getting stashed into the sysroot area for future use during image build, but the dts files themselves were *not* saved anywhere. This broke external device-tree recipes that wanted to include the platform dts and add modifications. Add export of dts files into nvidia-kernel-oot sysroot area, under usr/src/device-tree subdir. Signed-off-by: S. Lockwood-Childs <sjl@vctlabs.com>
This commit is contained in:
committed by
Matt Madison
parent
b029c54549
commit
bf56a8470b
@@ -96,9 +96,14 @@ do_install() {
|
||||
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}
|
||||
|
||||
# include device-tree source for building external dtb
|
||||
install -d ${D}/usr/src/device-tree
|
||||
cp -R ${S}/hardware/nvidia/ ${D}/usr/src/device-tree
|
||||
}
|
||||
|
||||
SYSROOT_DIRS += "/boot/devicetree"
|
||||
SYSROOT_DIRS += "/usr/src/device-tree"
|
||||
|
||||
KERNEL_MODULE_PROBECONF = "nvgpu"
|
||||
module_conf_nvgpu = 'options nvgpu devfreq_timer="delayed"'
|
||||
@@ -107,6 +112,7 @@ PACKAGES =+ "${PN}-devicetrees ${PN}-display ${PN}-cameras ${PN}-bluetooth ${PN}
|
||||
FILES:${PN}-devicetrees = "/boot/devicetree"
|
||||
FILES:${PN}-dev = "\
|
||||
${includedir}/${BPN} \
|
||||
/usr/src/device-tree \
|
||||
"
|
||||
ALLOW_EMPTY:${PN}-display = "1"
|
||||
ALLOW_EMPTY:${PN}-cameras = "1"
|
||||
|
||||
@@ -79,9 +79,14 @@ do_install() {
|
||||
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}
|
||||
|
||||
# include device-tree source for building external dtb
|
||||
install -d ${D}/usr/src/device-tree
|
||||
cp -R ${S}/hardware/nvidia/ ${D}/usr/src/device-tree
|
||||
}
|
||||
|
||||
SYSROOT_DIRS += "/boot/devicetree"
|
||||
SYSROOT_DIRS += "/usr/src/device-tree"
|
||||
|
||||
KERNEL_MODULE_PROBECONF = "nvgpu"
|
||||
module_conf_nvgpu = 'options nvgpu devfreq_timer="delayed"'
|
||||
@@ -90,6 +95,7 @@ PACKAGES =+ "${PN}-devicetrees ${PN}-display ${PN}-cameras ${PN}-bluetooth ${PN}
|
||||
FILES:${PN}-devicetrees = "/boot/devicetree"
|
||||
FILES:${PN}-dev = "\
|
||||
${includedir}/${BPN} \
|
||||
/usr/src/device-tree \
|
||||
"
|
||||
ALLOW_EMPTY:${PN}-display = "1"
|
||||
ALLOW_EMPTY:${PN}-cameras = "1"
|
||||
|
||||
Reference in New Issue
Block a user