Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/config More TODOs.
details: https://anonhg.NetBSD.org/src/rev/a1f7039093b4
branches: trunk
changeset: 332924:a1f7039093b4
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Sun Oct 12 04:23:46 2014 +0000
description:
More TODOs.
diffstat:
usr.bin/config/TODO | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
diffs (36 lines):
diff -r ac78e02764c3 -r a1f7039093b4 usr.bin/config/TODO
--- a/usr.bin/config/TODO Sun Oct 12 03:56:18 2014 +0000
+++ b/usr.bin/config/TODO Sun Oct 12 04:23:46 2014 +0000
@@ -33,3 +33,32 @@
:
Kill linker definitions in sys/conf/Makefile.inc.kern.
+
+o Differenciate "options" and "flags"/"params".
+
+ "options" enables featurs by adding *.c files (via attributes).
+
+ "flags" and "params" are to change contents of *.c files. These don't add
+ *.c files to the result kernek, or don't build attributes (modules).
+
+o Make flags/params per attributes (modules).
+
+ Basically flags and params are cpp(1) #define's generated in opt_*.h. Make
+ them local to one attributes (modules). Flags/params which affects files
+ across attributes (modules) are possible, but should be discouraged.
+
+o Generate things only by definitions.
+
+ In the ideal dynamically modular world, "selection" will be done not at
+ compile time but at runtime. Users select their wanted modules, by
+ dynamically loading them.
+
+ This means that the system provides all choices; that is, build all modules
+ in the source tree. Necessary information is defined in the "definition"
+ part.
+
+o Split cfdata.
+
+ cfdata is pattern matching rules to enable devices at runtime device
+ auto-configuration. It is pure data and can (should) be generated separatedly
+ from the code.
Home |
Main Index |
Thread Index |
Old Index