dynamic loading of network stack no longer needed

This commit is contained in:
Joseph Henry
2017-04-06 19:16:01 -07:00
parent 997f12a592
commit 08cca3c7aa
463 changed files with 136513 additions and 0 deletions

50
ext/picotcp/modcheck.py Executable file
View File

@@ -0,0 +1,50 @@
#!/usr/bin/python
import os,sys
import subprocess
f = open('MODTREE')
mods = {}
commands = []
def get_deps(mod):
if not mod in mods.keys():
return []
deps = mods[mod]
retlist = [mod]
for i in deps.split(' '):
retlist.append(i)
for j in get_deps(i):
retlist.append(j)
return retlist
while(True):
r = f.readline()
if r == '':
break
if r != '\n':
strings = r.split(':')
mod = strings[0]
deps = strings[1].rstrip('\n')
mods[mod] = deps.strip(' ')
for k,v in mods.iteritems():
command = 'make dummy '
deps = get_deps(k)
for i in mods.keys():
if i in deps:
command += i + "=1 "
else:
command += i + "=0 "
commands.append(command)
nul = open('/dev/null', 'w')
for i in commands:
print 'Checking config:\n\t%s' % i
os.system('make clean >/dev/null')
args = i.split(' ')
subprocess.call(['make','clean'], shell=True, stdout=nul, stderr=nul)
subprocess.call(args[-1], shell=True,stdout=nul, stderr=nul)==0 or sys.exit(1)
print "CONFIG OK!"
print
sys.exit(0)