From ac16b9402f7a8f4938964f296ee01f2c201c1838 Mon Sep 17 00:00:00 2001
From: Chris Larson <clarson@kergoth.com>
Date: Tue, 10 Aug 2004 01:59:54 +0000
Subject: Updates to base_set_filespath syntax, so that .oe's that include
 others can call it, thereby ensuring that they're able to locate overrides
 specific files.

BKrev: 41182c1aoZUxQQyNwYlYaTemw9jDkw
---
 classes/base.oeclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'classes')

diff --git a/classes/base.oeclass b/classes/base.oeclass
index fb05053d27..f20d5b9d81 100644
--- a/classes/base.oeclass
+++ b/classes/base.oeclass
@@ -27,17 +27,17 @@ def base_read_file(filename):
 
 DEPENDS_prepend="${@base_dep_prepend(d)} "
 
-def base_set_filespath(d):
+def base_set_filespath(path, d):
 	import os, oe
 	filespath = []
-	for p in [ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}", "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ]:
+	for p in path:
 		overrides = oe.data.getVar("OVERRIDES", d, 1) or ""
 		overrides = overrides + ":"
 		for o in overrides.split(":"):
 			filespath.append(os.path.join(p, o))
 	oe.data.setVar("FILESPATH", ":".join(filespath), d)
 
-FILESPATH = "${@base_set_filespath(d)}"
+FILESPATH = "${@base_set_filespath([ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}", "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ], d)}"
 
 die() {
 	oefatal "$*"
-- 
cgit v1.2.3