From patchwork Mon Aug 26 21:22:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 21031 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id DA09AC323E for ; Mon, 26 Aug 2024 21:22:50 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 00D2B63422; Mon, 26 Aug 2024 23:22:49 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="AkmdXzqS"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 5250D63417 for ; Mon, 26 Aug 2024 23:22:49 +0200 (CEST) Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 799226CA for ; Mon, 26 Aug 2024 23:21:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1724707302; bh=VVn4bgkoU5uiyosCcLPoRFvTo8ErpOnqTDB6LNmzDxQ=; h=From:To:Subject:Date:From; b=AkmdXzqSPJFohcM49Kk7wGez7dE0Tnzro8BgrtyMfo6Kmq3pe5Wtxu0OsymI0vRQO 8U65CFPYb8OP4hXeVPp6lKjJ5pUOePmW0CUs/e5slnAlQMCATfVGrl363AHftIWn+J 4C+5u1J1P8/xhfyYgkzF0lMum9+JHDdoac6mNeV0= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Subject: [PATCH] utils: update-kernel-headers: Support relative path to kernel git tree Date: Tue, 27 Aug 2024 00:22:45 +0300 Message-ID: <20240826212245.18922-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.44.2 MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" When given a relative path to the kernel git tree, update-kernel-headers.sh fails to execute the headers_install.sh script from the kernel sources. Fix it by turning the kernel directory into an absolute path. Signed-off-by: Laurent Pinchart Reviewed-by: Umang Jain Reviewed-by: Jacopo Mondi --- utils/update-kernel-headers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/update-kernel-headers.sh b/utils/update-kernel-headers.sh index 8405be0ac923..9a64dfb5698c 100755 --- a/utils/update-kernel-headers.sh +++ b/utils/update-kernel-headers.sh @@ -9,7 +9,7 @@ if [ $# != 1 ] ; then fi header_dir="$(dirname "$(realpath "$0")")/../include/linux" -kernel_dir="$1" +kernel_dir="$(realpath "$1")" # Bail out if the directory doesn't contain kernel sources line=$(head -3 "${kernel_dir}/Kbuild" 2>/dev/null | tail -1)