Metamode

Introduction

Metamode is an incremental build system for FreeBSD, which uses bmake's meta mode and filemon(4) to create metadata files, substantially decreasing build times by only building what has changed since the last build.

Note: Enabling META_MODE also implies (enables) NO_CLEAN in the buildworld process

Setup

  1. Add WITH_META_MODE=YES to /etc/src-env.conf

  2. Run # kldload filemon

  3. Run # make cleanworld once. If objects don't have .meta files then META_MODE won't do the right thing on an incremental build. 1

  4. FreeBSD buildworld will now create meta files to improve the performance of future builds.

Caveats

References


CategoryHowTo

MetaMode (last edited 2021-09-06T05:26:01+0000 by KubilayKocak)