summaryrefslogtreecommitdiffstats
path: root/libbsd.txt
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-06 09:31:20 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-06 09:32:12 +0200
commit28c973a9b4caf453535b4b03d416ee1279e92b0c (patch)
treee74c7e760b3d2e0afd8ab6610aac80236eed3162 /libbsd.txt
parentAdd script to create the kernel namespace header (diff)
downloadrtems-libbsd-28c973a9b4caf453535b4b03d416ee1279e92b0c.tar.bz2
Add "How to import code from FreeBSD"
Diffstat (limited to 'libbsd.txt')
-rw-r--r--libbsd.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/libbsd.txt b/libbsd.txt
index 3bc34e7c..63c641b1 100644
--- a/libbsd.txt
+++ b/libbsd.txt
@@ -619,6 +619,20 @@ direction.
You can add more than one verbose option (-v) to the command line and get more
detail and debug level information from the command.
+== How to import code from FreeBSD
+
+. Run `git status` and make sure your working directory is clean.
+. Run `./freebsd-to-rtems.py -R`
+. Run `./freebsd-to-rtems.py`
+. Run `git status` and make sure your working directory is clean. If you see modified files, then the `freebsd-to-rtems.py` script needs to be fixed first.
+. Add the files to import to `libbsd.py`.
+. Run `./freebsd-to-rtems.py`
+. Immediately check in the imported files without the changes to `libbsd_waf.py`. Do not touch the imported files yourself at this point.
+. Port the imported files to RTEMS. See 'Rules for Modifying FreeBSD Source'.
+. Add a test to the testsuite if possible.
+. Run `./create-kernel-namespace.sh` if you imported kernel space headers. Add only your new defines via `git add -p rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h`.
+. Create one commit from this.
+
== Initialization of the BSD Library
The initialization of the BSD library is based on the FreeBSD SYSINIT(9)