mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 14:18:20 +00:00
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.
This commit is contained in:
8
wscript
8
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 = {}
|
||||
|
||||
Reference in New Issue
Block a user