mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 17:59:16 +08:00
waf: Fix source code generators.
There have been some bugs with the strings left from the transition to directly building from libbsd.py.
This commit is contained in:
parent
821976e825
commit
1588cf1e03
@ -290,7 +290,7 @@ class Builder(builder.ModuleManager):
|
|||||||
rpcgen = self.data['RPCGen']
|
rpcgen = self.data['RPCGen']
|
||||||
rpcname = rpcgen['files']['all']['default'][0][:-2]
|
rpcname = rpcgen['files']['all']['default'][0][:-2]
|
||||||
bld(target = rpcname + '.h',
|
bld(target = rpcname + '.h',
|
||||||
source = y + '.x',
|
source = rpcname + '.x',
|
||||||
rule = host_shell + '${RPCGEN} -h -o ${TGT} ${SRC}')
|
rule = host_shell + '${RPCGEN} -h -o ${TGT} ${SRC}')
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -300,10 +300,10 @@ class Builder(builder.ModuleManager):
|
|||||||
if bld.env.AUTO_REGEN:
|
if bld.env.AUTO_REGEN:
|
||||||
routekw = self.data['RouteKeywords']
|
routekw = self.data['RouteKeywords']
|
||||||
rkwname = routekw['files']['all']['default'][0]
|
rkwname = routekw['files']['all']['default'][0]
|
||||||
rkw_rule = host_shell + 'cat ${SRC} | ' + \
|
rkw_rule = host_shell + "cat ${SRC} | " + \
|
||||||
'awk \'BEGIN { r = 0 } { if (NF == 1) ' + \
|
"awk 'BEGIN { r = 0 } { if (NF == 1) " + \
|
||||||
'printf \\"#define\\\\tK_%%s\\\\t%%d\\\\n\\\\t{\\\\\\"%%s\\\\\\", K_%%s},\\\\n\\", ' + \
|
"printf \"#define\\tK_%%s\\t%%d\\n\\t{\\\"%%s\\\", K_%%s},\\n\", " + \
|
||||||
'toupper($1), ++r, $1, toupper($1)}\' > ${TGT}'
|
"toupper($1), ++r, $1, toupper($1)}' > ${TGT}"
|
||||||
bld(target = rkwname + '.h',
|
bld(target = rkwname + '.h',
|
||||||
source = rkwname,
|
source = rkwname,
|
||||||
rule = rkw_rule)
|
rule = rkw_rule)
|
||||||
@ -324,7 +324,7 @@ class Builder(builder.ModuleManager):
|
|||||||
else:
|
else:
|
||||||
lexIncludes = []
|
lexIncludes = []
|
||||||
lex_rule = host_shell + '${LEX} -P ' + lex['sym'] + ' -t ${SRC} | ' + \
|
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:
|
if bld.env.AUTO_REGEN:
|
||||||
bld(target = lex['file'][:-2]+ '.c',
|
bld(target = lex['file'][:-2]+ '.c',
|
||||||
source = lex['file'],
|
source = lex['file'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user