mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
For some units that depend on libraries, tmake generates what seems to be stub libraries, with all functions implemented as a simple 'ret' instruction. For instance, libfalcon_utf.so can be seen in multiple places: du -b $(sudo find . -name libfalcon_utf.so) 7808 ./nvidia/kernel/nvgpu/userspace/units/pmu-l4t_64/libfalcon_utf.so 7808 ./nvidia/kernel/nvgpu/userspace/units/acr-l4t_64/libfalcon_utf.so 7808 ./nvidia/kernel/nvgpu/userspace/units/falcon/falcon_tests-l4t_64/libfalcon_utf.so 76968 ./nvidia/kernel/nvgpu/userspace/units/falcon-l4t_64/libfalcon_utf.so 76968 ./systemimage/home/nvgpu_unit/units/libfalcon_utf.so The "real" library is in falcon-l4t_64/, and it contains actual code. But install-unit.sh copies all *.so files to nvgpu_unit/units on target. In some cases, we end up with a "stub" library being used instead of the expected one. To avoid this, make sure to copy the largest libraries (in bytes) last. Also, remove the '-u' option of rsync to force the copy. Jira NVGPU-4089 Change-Id: I3832373db9c5aa72ad9ce59eb09ec031609a69e4 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2215319 GVS: Gerrit_Virtual_Submit Reviewed-by: Philip Elcan <pelcan@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
4.1 KiB
Executable File
4.1 KiB
Executable File