Differences between revisions 1 and 2
Revision 1 as of 2012-08-14 06:46:56
Size: 620
Editor: bbb
Comment:
Revision 2 as of 2012-08-14 06:47:29
Size: 657
Editor: bbb
Comment:
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:

On to the [[../Step2|next step]].

Step 1: Add a Source File to the Build System

To begin adding a new plugin, create a new source file in the litmus/ directory and add it to the build system.

  1. Create the empty file litmus/sched_demo.c (all file names are relative to the kernel repository).

    •  $ touch litmus/sched_demo.c
  2. Edit the file litmus/Makefile to add sched_demo.o to the list named obj-y.

  3. Compile the kernel to ensure that everything works.

After you've verified there are no errors, create commit with git.

$ git add litmus/Makefile
$ git add litmus/sched_demo.c
$ git commit

On to the next step.

CreateAPluginTutorial/Step1 (last edited 2012-08-14 06:47:29 by bbb)