RE: Adding new platform to build hierarchy
"Jan Stoess" <[email protected]>
| Newsgroups | gmane.comp.micro-kernel.l4.l4ka.general |
|---|---|
| Message-ID | <[email protected]> |
Martin, > How do I introduce new platforms into the build structure so I can > select them with "make menuconfig"? Which files to I need to change? > > Yes, it's a newbie question, but you don't need to explain Makefiles, I > just don't understand these autoconf/automake things. ;-) > The kernel isn't configured via autoconf/automake; it uses the cml2 configuration tool (see for example http://catb.org/esr/cml2/). For adding a new platform to the powerpc kernel (and kdb, which is compiled together with the kernel), you'd roughly have to do the following: - add your platform configuration to the architecture's configuration menu files in kernel/config/powerpc.cml and kernel/config/rules.cml - create platform-specific directories under src/platform/rawppc, kdb/platform/rawppc, include/platform/rawppc, ... - add your source and header files to the platform directories - create a Makeconf file for each source directory specifying the build rules for your source files Best Regards, -Jan