mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
Fooling around with ways to add our own makerules.
This commit is contained in:
parent
2c706e40eb
commit
b4413ece8b
2 changed files with 7 additions and 4 deletions
|
@ -422,15 +422,16 @@ def nmakerule(dir, rule):
|
|||
cmd = "([^" + wspc + "]+)"
|
||||
sep = "([" + wspc + "]+)"
|
||||
rest = "(.*)"
|
||||
tail = "([" + wspc + "]*)"
|
||||
pat = sep + cmd + sep + cmd + sep + rest + tail
|
||||
headtail = "([" + wspc + "]*)"
|
||||
pat = cmd + sep + cmd + sep + rest + headtail
|
||||
print "pat :", pat, ":", rule
|
||||
command_re = re.compile(pat)
|
||||
m = command_re.match(rule)
|
||||
print m, rule
|
||||
print m
|
||||
rulename = m.group(1)
|
||||
dependencies = m.group(3)
|
||||
actions = m.group(5)
|
||||
print "rulename ", rulename, " deps ", dependencies
|
||||
print "rulename :", rulename, ": deps:", dependencies,":"
|
||||
print " actions ", actions
|
||||
userrules.append(rule)
|
||||
|
||||
|
@ -502,6 +503,7 @@ command_actions = {
|
|||
'keyboard' : keyboard,
|
||||
'docipl' : docipl,
|
||||
'makerule' : makerule,
|
||||
'nmakerule' : nmakerule,
|
||||
'option' : option,
|
||||
'nooption' : nooption,
|
||||
'commandline' : commandline
|
||||
|
|
|
@ -2,6 +2,7 @@ target winfast
|
|||
#comment
|
||||
|
||||
mainboard leadtek/winfast6300
|
||||
nmakerule blah blah.o cc -c blah.c
|
||||
option SERIAL_CONSOLE
|
||||
keyboard pc80
|
||||
option NEWPCI
|
||||
|
|
Loading…
Add table
Reference in a new issue