summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-10 08:16:12 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-12 07:51:30 +0100
commitd5d9a89d0398e0f143991edd59b5a4c4c9996ac9 (patch)
tree9a779b472cb089e36c991340ba430dbeb71b6eb4
parentdl06: Do not include loaded objs in base image (diff)
downloadrtems-d5d9a89d0398e0f143991edd59b5a4c4c9996ac9.tar.bz2
build: Fix cache file placement
The "bsp_list" and "bsp_defaults" commands get a waflib.Context object which has no build node. Use a hard coded build path for these commands.
-rwxr-xr-xwscript8
1 files changed, 5 insertions, 3 deletions
diff --git a/wscript b/wscript
index 5f6958dbf3..5ad93de453 100755
--- a/wscript
+++ b/wscript
@@ -1135,9 +1135,11 @@ def load_from_yaml(load, ctx, data_by_uid, base, path):
def load_items_in_directory(ctx, ctors, path):
- f = ctx.bldnode.make_node(
- "c4che/" + re.sub(r"[^\w]", "_", path) + ".pickle"
- )
+ p = "c4che/" + re.sub(r"[^\w]", "_", path) + ".pickle"
+ try:
+ f = ctx.bldnode.make_node(p)
+ except AttributeError:
+ f = ctx.path.make_node("build/" + p)
f.parent.mkdir()
cache_file = f.abspath()
data_by_uid = {}