summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Nagy <tnagy2pow10@gmail.com>2015-02-26 23:32:47 +0100
committerAmar Takhar <amar@rtems.org>2015-12-11 15:15:45 -0500
commitb8937b2dace44e0450521fa2dc21c6d27d2e354c (patch)
treedb0269684d2b0f6fa7c15b6014484301295caf5c
parent25c2546b9464f3542c454f024ad731cde4190b3e (diff)
Copy files without 'cp' in the build so that it works on Windows
-rw-r--r--rtems_waf/waf.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/rtems_waf/waf.py b/rtems_waf/waf.py
index 9f8a1112db..a116eb6fe5 100644
--- a/rtems_waf/waf.py
+++ b/rtems_waf/waf.py
@@ -101,12 +101,13 @@ def rtems_program(ctx, target_name, source, **kwarg):
@conf
def copy(ctx, source, target, name):
- ctx(
- rule='cp ${SRC} ${TGT}', # XXX: Make something that works on windows.
- source=source,
- target=target,
- name=name
- )
+ ctx(
+ features = 'subst',
+ source = source,
+ target = target,
+ is_copy = True,
+ name = name,
+ )
@conf
def copy_or_subst(ctx, source, target, name):