git: build - Separate out CFLAGS for kernel & module build

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Feb 7 11:11:16 PST 2017


commit 56f51086aa3f6f77915d41cf7d311585f0086a49
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Feb 7 11:07:22 2017 -0800

    build - Separate out CFLAGS for kernel & module build
    
    * Make COPTFLAGS apply to module builds in addition to kernel builds.
    
    * Implement a new make variable, KCFLAGS, for specifying overrides for
      kernel and module builds.
    
    * Fixup the module build infrastructure to use KCFLAGS, and get rid of
      infiltration from the more generic CFLAGS onto the kernel & modules
      build.

Summary of changes:
 share/man/man5/make.conf.5                 | 14 ++++++++------
 share/man/man7/build.7                     |  8 ++++++++
 sys/conf/kern.pre.mk                       |  2 +-
 sys/conf/kmod.mk                           |  6 +++++-
 sys/dev/acpica/Makefile                    | 12 ++++++------
 sys/dev/acpica/Makefile.inc                |  2 +-
 sys/dev/acpica/acpi_asus/Makefile          |  2 +-
 sys/dev/acpica/acpi_fujitsu/Makefile       |  2 +-
 sys/dev/acpica/acpi_hp/Makefile            |  2 +-
 sys/dev/acpica/acpi_panasonic/Makefile     |  2 +-
 sys/dev/acpica/acpi_thinkpad/Makefile      |  2 +-
 sys/dev/acpica/acpi_toshiba/Makefile       |  2 +-
 sys/dev/acpica/acpi_video/Makefile         |  2 +-
 sys/dev/acpica/acpi_wmi/Makefile           |  2 +-
 sys/dev/acpica/aibs/Makefile               |  2 +-
 sys/dev/agp/Makefile                       |  2 +-
 sys/dev/crypto/tpm/Makefile                |  4 ++--
 sys/dev/disk/aic7xxx/ahc/Makefile          |  2 +-
 sys/dev/disk/aic7xxx/ahc/ahc_pci/Makefile  |  2 +-
 sys/dev/disk/aic7xxx/ahd/Makefile          |  2 +-
 sys/dev/disk/ispfw/isp_1040/Makefile       |  2 +-
 sys/dev/disk/ispfw/isp_1040_it/Makefile    |  2 +-
 sys/dev/disk/ispfw/isp_1080/Makefile       |  2 +-
 sys/dev/disk/ispfw/isp_1080_it/Makefile    |  2 +-
 sys/dev/disk/ispfw/isp_12160/Makefile      |  2 +-
 sys/dev/disk/ispfw/isp_12160_it/Makefile   |  2 +-
 sys/dev/disk/ispfw/isp_2100/Makefile       |  2 +-
 sys/dev/disk/ispfw/isp_2200/Makefile       |  2 +-
 sys/dev/disk/ispfw/isp_2300/Makefile       |  2 +-
 sys/dev/disk/ispfw/isp_2322/Makefile       |  2 +-
 sys/dev/disk/ispfw/isp_2400/Makefile       |  2 +-
 sys/dev/disk/ispfw/isp_2400_multi/Makefile |  2 +-
 sys/dev/disk/ispfw/isp_2500/Makefile       |  2 +-
 sys/dev/disk/ispfw/isp_2500_multi/Makefile |  2 +-
 sys/dev/disk/ispfw/ispfw/Makefile          |  2 +-
 sys/dev/disk/nvme/Makefile                 |  2 +-
 sys/dev/drm/drm/Makefile                   |  2 +-
 sys/dev/drm/i915/Makefile                  |  6 +++---
 sys/dev/drm/radeon/Makefile                |  4 ++--
 sys/dev/misc/ipmi/Makefile                 |  2 +-
 sys/dev/misc/syscons/blank/Makefile        |  2 +-
 sys/dev/misc/syscons/dragon/Makefile       |  2 +-
 sys/dev/misc/syscons/fade/Makefile         |  2 +-
 sys/dev/misc/syscons/fire/Makefile         |  2 +-
 sys/dev/misc/syscons/fred/Makefile         |  2 +-
 sys/dev/misc/syscons/green/Makefile        |  2 +-
 sys/dev/misc/syscons/logo/Makefile         |  2 +-
 sys/dev/misc/syscons/rain/Makefile         |  2 +-
 sys/dev/misc/syscons/snake/Makefile        |  2 +-
 sys/dev/misc/syscons/star/Makefile         |  2 +-
 sys/dev/misc/syscons/warp/Makefile         |  2 +-
 sys/dev/netif/ath/Makefile.inc             |  2 +-
 sys/dev/netif/ath/ath_hal/Makefile         |  2 +-
 sys/dev/netif/iwm/Makefile                 |  2 +-
 sys/dev/raid/hptmv/Makefile                |  2 +-
 sys/dev/raid/twe/Makefile                  |  2 +-
 sys/net/faith/Makefile                     |  2 +-
 sys/net/ip6fw/Makefile                     |  2 +-
 sys/net/ip_mroute/Makefile                 |  2 +-
 sys/net/sl/Makefile                        |  2 +-
 sys/net/vlan/Makefile                      |  2 +-
 sys/netgraph/fec/Makefile                  |  2 +-
 tools/tools/netrate/pktgen/Makefile        |  4 ++--
 usr.sbin/ndiscvt/ndisgen.sh                |  2 +-
 64 files changed, 92 insertions(+), 78 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/56f51086aa3f6f77915d41cf7d311585f0086a49


-- 
DragonFly BSD source repository


More information about the Commits mailing list