Changed the generation of symbols to the mknmlist script. Now symbols.h is not automatically generated so we can use it as a normal include file and remove symbols-def.h.

This commit is contained in:
adamdunkels 2007-01-24 16:11:48 +00:00
parent bea6aa5b3d
commit 83b348631f
6 changed files with 57 additions and 10 deletions

View file

@ -1,5 +1,6 @@
#!/bin/sh
echo "#include \"symbols.h\"" > symbols.c
echo "const int symbols_nelts = 0;" >> symbols.c
echo "const struct symbols symbols[] = {{0,0}};" >> symbols.c
echo "#include \"loader/symbols-def.h\"" > symbols.h
echo "#include \"loader/symbols.h\"" > symbols.h
echo "extern const struct symbols symbols[1];">> symbols.h