Some Nvidia firmware is shared between products but the symlinks cross
product/driver boundaries, resulting in the -nvidia-tegra package
depending on the ~150MB -nvidia-gpu package for a few 10kb files.
If we replace the symlinks with the actual content of the files then this
dependency disappears.
linux-firmware/linux-firmware-nvidia-tegra: RDEPENDS: removed "linux-firmware-nvidia-gpu"
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
path_to_file=$(dirname $path_to_file)
done
done
+
+ # Some Nvidia firmware is shared but the symlinks cross product/driver boundaries,
+ # resulting in the -nvidia-tegra package depending on the ~150MB -nvidia-gpu package
+ # for a single 10kb file.
+ # Replace these symlinks with duplicates of the files to avoid this.
+ for symlink in $(find ${D}${firmwaredir}/nvidia/g*b/gr/ -type l -name sw_\*_init.bin); do
+ cp --remove-destination "$(readlink -f $symlink)" $symlink
+ done
}
PACKAGES =+ "${PN}-amphion-vpu-license ${PN}-amphion-vpu \