summaryrefslogtreecommitdiffstats
path: root/waf_libbsd.py
diff options
context:
space:
mode:
authorChristian Mauderer <christian.mauderer@embedded-brains.de>2018-05-02 14:59:48 +0200
committerChristian Mauderer <christian.mauderer@embedded-brains.de>2018-05-03 07:09:46 +0200
commit1588cf1e031027819374d3039e7f5425db5b23d3 (patch)
tree2eeae80a4b77c2696c1b4e3d361c64ac293d845e /waf_libbsd.py
parent821976e8255ac8de3179803b5c85de51a971781d (diff)
downloadrtems-libbsd-1588cf1e031027819374d3039e7f5425db5b23d3.tar.bz2
waf: Fix source code generators.
There have been some bugs with the strings left from the transition to directly building from libbsd.py.
Diffstat (limited to 'waf_libbsd.py')
-rw-r--r--waf_libbsd.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/waf_libbsd.py b/waf_libbsd.py
index 2ce856b2..a0b8e9f3 100644
--- a/waf_libbsd.py
+++ b/waf_libbsd.py
@@ -290,7 +290,7 @@ class Builder(builder.ModuleManager):
rpcgen = self.data['RPCGen']
rpcname = rpcgen['files']['all']['default'][0][:-2]
bld(target = rpcname + '.h',
- source = y + '.x',
+ source = rpcname + '.x',
rule = host_shell + '${RPCGEN} -h -o ${TGT} ${SRC}')
#
@@ -300,10 +300,10 @@ class Builder(builder.ModuleManager):
if bld.env.AUTO_REGEN:
routekw = self.data['RouteKeywords']
rkwname = routekw['files']['all']['default'][0]
- rkw_rule = host_shell + 'cat ${SRC} | ' + \
- 'awk \'BEGIN { r = 0 } { if (NF == 1) ' + \
- 'printf \\"#define\\\\tK_%%s\\\\t%%d\\\\n\\\\t{\\\\\\"%%s\\\\\\", K_%%s},\\\\n\\", ' + \
- 'toupper($1), ++r, $1, toupper($1)}\' > ${TGT}'
+ rkw_rule = host_shell + "cat ${SRC} | " + \
+ "awk 'BEGIN { r = 0 } { if (NF == 1) " + \
+ "printf \"#define\\tK_%%s\\t%%d\\n\\t{\\\"%%s\\\", K_%%s},\\n\", " + \
+ "toupper($1), ++r, $1, toupper($1)}' > ${TGT}"
bld(target = rkwname + '.h',
source = rkwname,
rule = rkw_rule)
@@ -324,7 +324,7 @@ class Builder(builder.ModuleManager):
else:
lexIncludes = []
lex_rule = host_shell + '${LEX} -P ' + lex['sym'] + ' -t ${SRC} | ' + \
- 'sed -e \'/YY_BUF_SIZE/s/16384/1024/\' > ${TGT}")'
+ 'sed -e \'/YY_BUF_SIZE/s/16384/1024/\' > ${TGT}'
if bld.env.AUTO_REGEN:
bld(target = lex['file'][:-2]+ '.c',
source = lex['file'],