From e2c08f4f7bedc2dcc9590fcb9e06039d59a19731 Mon Sep 17 00:00:00 2001 From: Philip Elcan Date: Thu, 25 Oct 2018 12:50:57 -0400 Subject: [PATCH] gpu: nvgpu: unit: install-unit: check for -next Check for nvgpu-next before trying to copy it to the target. This avoids an error message when the directory doesn't exist. Change-Id: I0e195779c7bd53c19e3e5e2ce0aaa4ac4c5c653d Signed-off-by: Philip Elcan Reviewed-on: https://git-master.nvidia.com/r/1935594 Reviewed-by: Nicolas Benech GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta Reviewed-by: Alex Waterman Reviewed-by: mobile promotions Tested-by: mobile promotions --- userspace/install-unit.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/userspace/install-unit.sh b/userspace/install-unit.sh index 2fe3d1b4f..a4b532a11 100755 --- a/userspace/install-unit.sh +++ b/userspace/install-unit.sh @@ -107,4 +107,6 @@ done # target jetson. This means you may jcp $nvgpu_bins nvgpu_unit jcp $TOP/kernel/nvgpu $TOP/kernel -jcp $TOP/kernel/nvgpu-next $TOP/kernel +if [ -d TOP/kernel/nvgpu-next ]; then + jcp $TOP/kernel/nvgpu-next $TOP/kernel +fi