From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7250097659913961472 X-Received: by 2002:a2e:9082:0:b0:2b1:e807:f0f with SMTP id l2-20020a2e9082000000b002b1e8070f0fmr24285426ljg.28.1688044906439; Thu, 29 Jun 2023 06:21:46 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6402:70b:b0:51d:a761:a8cf with SMTP id w11-20020a056402070b00b0051da761a8cfls627614edx.1.-pod-prod-04-eu; Thu, 29 Jun 2023 06:21:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72BP97wP/9nMNEA/Tyb/7tUenuyh9aNsto6unza2FX8nRnvSujyYF8iToJU+efOijWDjss X-Received: by 2002:a17:907:6292:b0:983:ba44:48af with SMTP id nd18-20020a170907629200b00983ba4448afmr34797343ejc.53.1688044905068; Thu, 29 Jun 2023 06:21:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688044905; cv=none; d=google.com; s=arc-20160816; b=S4tplqP3wyJvY2Jg97/7kxK55fEfKldmojCIXoOm1CAP0JPjqjKD2Ffhy8UF9pVMl5 WgyHGnuyECXkEkIPhh2+t6P6pPuzuJxWvtDItzaNSjWNva6pvEr6sVnLJT/9MMIwtO9j bOE/K2f5e0Ud3dISdUUeZIcQgOnGGIsrfDXEg/6BnR7q6dEZfRUjBKPH7X7yZ/BtoALU 13Xt0GaPg076BVzODnTyv7daiEqE5pHlnYB6q7/jyxInM/88CgmFXH7/Zt8xuno6fAxw zxLu8vbKnI9TyJILzWX5YCPiuPjYDv73GQuQtJZMue+GScyzAnbvYJV7EagrHQM+IzCW Hzvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=KbvVXuR2B1mKgdz1iNiUm+qWRT1mL0TqZbLK8tBL2nQ=; fh=cO05w28sj2zLz/KQyX7tI+fFAXAs6oZfnKJHwQ+/Rig=; b=SLRRnxh1IizxASJ3ViK9aTT7TOARhnAUWol6blNaQtlfa+GZb+YDjuePenBXXXLqT8 4NzsUQnffQpcQn8O+NLw+ZcEHuuR88vrN9XIaw8QQ8jVDYQWMgaJBqllrhtdfKWn2QJW 4iwKWSDdFd0xqDEYqBd7Nw+HMRADHLukyhmbMIzW9q3kGRXa7AloaZVi2uvUOtXYiCs8 xjgQnWiJmEaScbDE6sZKXtZ4mdo+kL9YDaVo9gMctnBygh/7IrlP8zh6vXbaQarU7KSN ukJna00V29n91IAxtyZOFkgYnfWLP6/XwxQQiDdK+PXszM363VF1Ic4xeauydx1/zPgj ynsA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=fLhBRIzG; spf=pass (google.com: domain of ch@denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=ch@denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by gmr-mx.google.com with ESMTPS id gc37-20020a1709072b2500b009885c0ef8d2si1067148ejc.1.2023.06.29.06.21.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jun 2023 06:21:45 -0700 (PDT) Received-SPF: pass (google.com: domain of ch@denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=fLhBRIzG; spf=pass (google.com: domain of ch@denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=ch@denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Received: from localhost (dslb-088-077-007-063.088.077.pools.vodafone-ip.de [88.77.7.63]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ch@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 2880D85C5A; Thu, 29 Jun 2023 15:21:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1688044904; bh=KbvVXuR2B1mKgdz1iNiUm+qWRT1mL0TqZbLK8tBL2nQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fLhBRIzG0oHASFl1NFsSEXM+6arFgOwFK3n3iuiX809mPSJ545sOUVdUxw/VdD4cE bMJWaDLtqdB7+1nlcIdHznzYduAhODWN7uq+UqPGWk7SdYCPTh1sQF0XkWJxcSticv hbqfRTAs9A1mIX2uGbxpIgVpPHNkdpSZXiOyUdvnBRWARtZ8DqWckhqiG9xdCLfHfY p7aV+WODSaeCddp5joX/x2J5vR63miHqPxAkjwj3ZjMUb2sizBwHiUWzMaDfa5UPey 70dc0xJ++3Ca/EZ6b/HRQUKgjFTFfSzscXOizBvxcyNeBB7R1apHzsQ0780uKUQHBM ssPHF8HcU7Brg== From: Claudius Heine To: isar-users@googlegroups.com Cc: Claudius Heine Subject: [RFC PATCH 1/1] linux-module: append local files path to FILSPATH Date: Thu, 29 Jun 2023 15:21:08 +0200 Message-Id: <20230629132107.2202204-2-ch@denx.de> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230629132107.2202204-1-ch@denx.de> References: <20230629132107.2202204-1-ch@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-TUID: 3tla7XWkdSl+ FILESEXTRAPATHS is meant to allow bbappend files to overwrite files from their recipe. For this reason the 'normal' patter in bbappend files is to prepend the local file path to FILESEXTRAPATHS, which results in files from the local file path to be preferred over files from the original recipe, or other, lower prioritized bbappend files. The `module.inc` file is meant to be included by other recipes (`.bb`) files. So it should still allow the recipe to overwrite files its files that where added via the normal recipes `FILESPATH` search path. If `module.inc` uses `FILESEXTRAPATHS:prepend` to add its local file path to `FILESPATH`, then the recipe, that includes the `module.inc` would have to use `FILESEXTRAPATHS:prepend` as well, after including the `module.inc` file in order to overwrite the files from the `module.inc` file. However this is a workaround of the issue. `module.inc` should append its local file search path to `FILESPATH`, so that it allows other recipes to overwrite any file from it, without requiring an additional workaround. Signed-off-by: Claudius Heine --- meta/recipes-kernel/linux-module/module.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-kernel/linux-module/module.inc b/meta/recipes-kernel/linux-module/module.inc index 76ad860..333c66b 100644 --- a/meta/recipes-kernel/linux-module/module.inc +++ b/meta/recipes-kernel/linux-module/module.inc @@ -5,7 +5,7 @@ # # SPDX-License-Identifier: MIT -FILESEXTRAPATHS:prepend := "${FILE_DIRNAME}/files:" +FILESPATH:append := ":${FILE_DIRNAME}/files" DESCRIPTION ?= "Custom kernel module ${PN}" -- 2.40.1