From patchwork Mon May 4 00:04:27 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 26605 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 41077C32F6 for ; Mon, 4 May 2026 00:04:42 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D369A63020; Mon, 4 May 2026 02:04:39 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="WSK01FPt"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6BE3F62E6A for ; Mon, 4 May 2026 02:04:36 +0200 (CEST) Received: from killaraus.ideasonboard.com (2001-14ba-703d-e500--2a1.rev.dnainternet.fi [IPv6:2001:14ba:703d:e500::2a1]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9A0DC9C for ; Mon, 4 May 2026 02:04:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1777853074; bh=C9oqFelaWn6q4GZB8ooKfmJdbBv1JRQQC1eZaH2/TbA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WSK01FPtqiwNuOA1oRAuvsY34jwzfCnZSlEI3IxalL0s0YK3rc+gdr8Ih1ySHMVrq 95XCKPreDt4Hdf3EwR2JIF/8hfaZdVlf1LbTFfO8bXihz8KmMto79gK/dZlwA40liP y9+Qr2GI+soMormLi2yI1ZWeRaU5b7i4XE3l9niY= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Subject: [PATCH 2/6] utils: update-kernel-headers: Create destination directory Date: Mon, 4 May 2026 03:04:27 +0300 Message-ID: <20260504000431.1340150-3-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260504000431.1340150-1-laurent.pinchart@ideasonboard.com> References: <20260504000431.1340150-1-laurent.pinchart@ideasonboard.com> 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" Before copying headers, create the destination directory if it does not exist. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Barnabás Pőcze --- utils/update-kernel-headers.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/update-kernel-headers.sh b/utils/update-kernel-headers.sh index f9baa66d00b4..93599dfe5d52 100755 --- a/utils/update-kernel-headers.sh +++ b/utils/update-kernel-headers.sh @@ -65,7 +65,9 @@ headers=" for header in $headers ; do name="${header#*/}" - cp "${install_dir}/usr/include/${header}" "${header_dir}/${name}" + dest="${header_dir}/${name}" + mkdir -p "$(dirname "$dest")" + cp "${install_dir}/usr/include/${header}" "${dest}" done # The IPU3 header is a special case, as it's stored in staging. Handle it