5.4. Encumbered Files
Prev | Chapter 5. Source Tree Guidelines and Policies | Next

## 5.4. Encumbered Files

It might occasionally be necessary to include an encumbered file in the FreeBSD source tree. For example, if a device requires a small piece of binary code to be loaded to it before the device will operate, and we do not have the source to that code, then the binary file is said to be encumbered. The following policies apply to including encumbered files in the FreeBSD source tree.

1. Any file which is interpreted or executed by the system CPU(s) and not in source format is encumbered.

2. Any file with a license more restrictive than BSD or GNU is encumbered.

3. A file which contains downloadable binary data for use by the hardware is not encumbered, unless (1) or (2) apply to it. It must be stored in an architecture neutral ASCII format (file2c or uuencoding is recommended).

4. Any encumbered file requires specific approval from the Core Team before it is added to the repository.

5. Encumbered files go in `src/contrib` or `src/sys/contrib`.

6. The entire module should be kept together. There is no point in splitting it, unless there is code-sharing with non-encumbered code.

7. Object files are named ``arch`/`filename`.o.uu>`.

8. Kernel files:

   1. Should always be referenced in `conf/files.*` (for build simplicity).

   2. Should always be in `LINT`, but the Core Team decides per case if it should be commented out or not. The Core Team can, of course, change their minds later on.

   3. The Release Engineer decides whether or not it goes into the release.

9. User-land files:

   1. The Core team decides if the code should be part of `make world`.

   2. The Release Engineering decides if it goes into the release.

Prev | Up | Next
5.3. Contributed Software | Home | 5.5. Shared Libraries

All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.