HomeFreeBSD

Add script for builtin module building.

Description

Add script for builtin module building.

This commit introduces a "copy-builtin" script designed to prepare a
kernel source tree for building SPL as a builtin module. The script
makes a full copy of all needed files, thus making the kernel source
tree fully independent of the spl source package.

To achieve that, some compilation flags (-include, -I) have been moved
to module/Makefile. This Makefile is only used when compiling external
modules; when compiling builtin modules, a Kbuild file generated by the
configure-builtin script is used instead. This makes sure Makefiles
inside the kernel source tree does not contain references to the spl
source package.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue zfsonlinux/zfs#851

Details

Provenance
Etienne Dechamps <etienne.dechamps@ovh.net>Authored on Jul 9 2012, 9:10 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jul 26 2012, 10:13 PM
Parents
rG723aa3b0c2ee: When checking for symbol exports, try compiling.
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGc167aadb27d5: Add script for builtin module building. (authored by Etienne Dechamps <etienne.dechamps@ovh.net>).Jul 26 2012, 10:13 PM