Project

General

Profile

Actions

Feature #16548

open

uts Makefiles could be much less verbose and shared between platforms

Added by Rich Lowe 16 days ago. Updated 14 days ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
kernel
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

As a side-project from the arm64-gate, I had been investigating how to make the illumos kernel makefile situation much less duplicative (entirely duplicated per-platform, currently, a merge nightmare).

The approach I took is the same Makefile.com approach that illumos uses in libraries and commands, where the Makefile.com lives with the module sources (this could in future allow for changes to the recursive-aspect of the uts compilation, not just the leafs).

This necessarily means each driver needs its own source directory, which is invasive but -- if anything -- also an improvement.

At the end of this experiment, it became clear that a framework makefile Makefile.kmod, also makes Makefile.com much simpler and more declarative.

Actions #1

Updated by Rich Lowe 14 days ago

This has several gerrit CRs, so I'm not sure how best to update the bug field. They are:

https://code.illumos.org/c/illumos-gate/+/3477 Move sources that are logically part of the introduction of */Makefile.com
https://code.illumos.org/c/illumos-gate/+/3478 Commonize common aspects of the uts build
https://code.illumos.org/c/illumos-gate/+/3479 Introduce Makefile.kmod
https://code.illumos.org/c/illumos-gate/+/3480 Sort OBJS, DEPENDS_ON in a way that breaks wsdiff

Actions

Also available in: Atom PDF