diff --git a/sys/modules/aic7xxx/ahc/Makefile b/sys/modules/aic7xxx/ahc/Makefile index 41bf2d70c9a2..57451e77f2a1 100644 --- a/sys/modules/aic7xxx/ahc/Makefile +++ b/sys/modules/aic7xxx/ahc/Makefile @@ -1,55 +1,57 @@ # $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" .PATH: ${SYSDIR}/dev/aic7xxx KMOD= ahc SUBDIR+= ahc_isa ahc_pci GENSRCS= aic7xxx_seq.h aic7xxx_reg.h # AHC_REG_PRETTY_PRINT=1 REG_PRINT_OPT= .ifdef AHC_REG_PRETTY_PRINT GENSRCS+= aic7xxx_reg_print.c CFLAGS+= -DAHC_REG_PRETTY_PRINT=1 REG_PRINT_OPT= -p aic7xxx_reg_print.c .endif BEFORE_DEPEND = ${GENSRCS} ../aicasm/aicasm: ${SYSDIR}/dev/aic7xxx/aicasm/*.[chyl] ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; ) .if make(ahcfirmware) ahcfirmware: ${GENSRCS} ${GENSRCS}: \ ${SYSDIR}/dev/aic7xxx/aic7xxx.{reg,seq} \ ${SYSDIR}/cam/scsi/scsi_message.h ../aicasm/aicasm ${INCLUDES} -I${SYSDIR}/cam/scsi \ -I${SYSDIR}/dev/aic7xxx \ -o aic7xxx_seq.h -r aic7xxx_reg.h \ ${REG_PRINT_OPT} \ -i ${SYSDIR}/dev/aic7xxx/aic7xxx_osm.h \ ${SYSDIR}/dev/aic7xxx/aic7xxx.seq .elif defined(.MAKE.LEVEL) # This target interfers with fmake's world view and causes this message # to appear when building the tree from 8.x worlds where fmake is the # default. fmake doens't define .MAKE.LEVEL so key off that to omit it, # while still allowing more-modern makes to theoretically update things. ${GENSRCS}: .NOMETA @echo "Error: ${.TARGET} is missing. Run 'make ahcfirmware'" .endif SRCS= ${GENSRCS} SRCS+= aic7xxx.c aic7xxx_93cx6.c aic7xxx_osm.c aic7770.c SRCS+= opt_scsi.h opt_aic7xxx.h opt_cam.h SRCS+= device_if.h bus_if.h pci_if.h .if make(cleanfirmware) cleanfirmware: clean CLEANFILES= ${GENSRCS} .endif +EXPORT_SYMS= YES + .include diff --git a/sys/modules/alq/Makefile b/sys/modules/alq/Makefile index 911eeca73880..858f2a55ded7 100644 --- a/sys/modules/alq/Makefile +++ b/sys/modules/alq/Makefile @@ -1,7 +1,9 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/kern KMOD= alq SRCS= opt_mac.h vnode_if.h kern_alq.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/amdsmn/Makefile b/sys/modules/amdsmn/Makefile index 1f030270e792..0e5e1b182548 100644 --- a/sys/modules/amdsmn/Makefile +++ b/sys/modules/amdsmn/Makefile @@ -1,8 +1,10 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/amdsmn KMOD= amdsmn SRCS= amdsmn.c bus_if.h device_if.h pci_if.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/amr/Makefile b/sys/modules/amr/Makefile index 1ee2ece51a16..a17ed246b8c7 100644 --- a/sys/modules/amr/Makefile +++ b/sys/modules/amr/Makefile @@ -1,19 +1,21 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/amr SUBDIR= amr_cam .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" SUBDIR+= amr_linux .endif KMOD= amr SRCS= amr.c amr_pci.c amr_disk.c device_if.h bus_if.h pci_if.h # Enable a questionable optimisation for newer adapters #CFLAGS+= -DAMR_QUARTZ_GOFASTER # Debugging #CFLAGS+= -DAMR_DEBUG=3 +EXPORT_SYMS= YES + .include diff --git a/sys/modules/ata/atacore/Makefile b/sys/modules/ata/atacore/Makefile index 9ecd03ed0ba5..f0cd0b4349d3 100644 --- a/sys/modules/ata/atacore/Makefile +++ b/sys/modules/ata/atacore/Makefile @@ -1,9 +1,11 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata KMOD= ata SRCS= ata-all.c ata_if.c ata-lowlevel.c SRCS+= ata_if.h bus_if.h device_if.h opt_cam.h pci_if.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/ata/atapci/Makefile b/sys/modules/ata/atapci/Makefile index 5aaa265000cf..bc00b57728ee 100644 --- a/sys/modules/ata/atapci/Makefile +++ b/sys/modules/ata/atapci/Makefile @@ -1,11 +1,13 @@ # $FreeBSD$ SUBDIR += chipsets .PATH: ${SRCTOP}/sys/dev/ata KMOD= atapci SRCS= ata-pci.c ata-dma.c ata-sata.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile b/sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile index 7e44778bc165..52e806366d0e 100644 --- a/sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile +++ b/sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile @@ -1,9 +1,11 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= atasiliconimage SRCS= ata-siliconimage.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/ath_hal/Makefile b/sys/modules/ath_hal/Makefile index 6b604c6e9dbb..902c32a95b19 100644 --- a/sys/modules/ath_hal/Makefile +++ b/sys/modules/ath_hal/Makefile @@ -1,47 +1,49 @@ # # Copyright (c) 2002-2008 Sam Leffler, Errno Consulting # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # # $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/ath .PATH: ${SRCTOP}/sys/dev/ath/ath_hal KMOD= ath_hal SRCS= ah_osdep.c ah.c ah_regdomain.c SRCS+= ah_eeprom_v1.c ah_eeprom_v3.c ah_eeprom_v14.c ah_eeprom_v4k.c SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h CFLAGS+= -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal CFLAGS+= -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/ .include +EXPORT_SYMS= YES + CWARNFLAGS.ah_regdomain.c= ${NO_WSHIFT_COUNT_NEGATIVE} ${NO_WSHIFT_COUNT_OVERFLOW} diff --git a/sys/modules/backlight/Makefile b/sys/modules/backlight/Makefile index 1c49d7b55138..31de4e804127 100644 --- a/sys/modules/backlight/Makefile +++ b/sys/modules/backlight/Makefile @@ -1,13 +1,15 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/backlight KMOD= backlight SRCS= backlight.c SRCS+= bus_if.h \ device_if.h \ opt_platform.h \ backlight_if.h \ backlight_if.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/bhnd/Makefile b/sys/modules/bhnd/Makefile index 18e5ad4c2149..54a72a11e28d 100644 --- a/sys/modules/bhnd/Makefile +++ b/sys/modules/bhnd/Makefile @@ -1,75 +1,77 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bhnd .PATH: ${SRCTOP}/sys/dev/bhnd/cores/chipc .PATH: ${SRCTOP}/sys/dev/bhnd/cores/chipc/pwrctl .PATH: ${SRCTOP}/sys/dev/bhnd/cores/pmu .PATH: ${SRCTOP}/sys/dev/bhnd/nvram KMOD= bhnd SRCS= bhnd.c bhnd_subr.c SRCS+= bhnd_bus_if.c bhnd_bus_if.h SRCS+= bhnd_erom.c SRCS+= bhnd_erom_if.c bhnd_erom_if.h # ChipCommon SRCS+= chipc.c chipc_subr.c SRCS+= chipc_gpio.c SRCS+= gpio_if.h ofw_bus_if.h SRCS+= opt_platform.h SRCS+= bhnd_sprom_chipc.c \ bhnd_pmu_chipc.c - + SRCS+= bhnd_pwrctl.c \ bhnd_pwrctl_subr.c \ bhnd_pwrctl_if.c \ bhnd_pwrctl_if.h SRCS+= bhnd_pwrctl_hostb_if.c bhnd_pwrctl_hostb_if.h SRCS+= bhnd_chipc_if.c bhnd_chipc_if.h # PMU SRCS+= bhnd_pmu.c \ bhnd_pmu_core.c \ bhnd_pmu_subr.c SRCS+= bhnd_pmu_if.c bhnd_pmu_if.h # NVRAM/SPROM SRCS+= bhnd_nvram_data.c \ bhnd_nvram_data_bcm.c \ bhnd_nvram_data_bcmraw.c \ bhnd_nvram_data_btxt.c \ bhnd_nvram_data_sprom.c \ bhnd_nvram_data_sprom_subr.c \ bhnd_nvram_data_tlv.c \ bhnd_nvram_io.c \ bhnd_nvram_iobuf.c \ bhnd_nvram_ioptr.c \ bhnd_nvram_iores.c \ bhnd_nvram_plist.c \ bhnd_nvram_store.c \ bhnd_nvram_store_subr.c \ bhnd_nvram_subr.c \ bhnd_nvram_value.c \ bhnd_nvram_value_fmts.c \ bhnd_nvram_value_prf.c \ bhnd_nvram_value_subr.c \ bhnd_sprom.c SRCS+= bhnd_nvram_map.h bhnd_nvram_map_data.h SRCS+= bhnd_nvram_if.c bhnd_nvram_if.h SRCS+= device_if.h bus_if.h SUBDIR= bcma \ bcma_bhndb \ bhndb \ bhndb_pci \ cores \ siba \ siba_bhndb +EXPORT_SYMS= YES + .include .include diff --git a/sys/modules/bhnd/bhndb/Makefile b/sys/modules/bhnd/bhndb/Makefile index 87ac5ef231bd..12fcde7e049f 100644 --- a/sys/modules/bhnd/bhndb/Makefile +++ b/sys/modules/bhnd/bhndb/Makefile @@ -1,18 +1,20 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bhnd/bhndb KMOD= bhndb SRCS= bhndb.c bhndb_subr.c bhndb_hwdata.c \ bhnd_bhndb.c \ bhndb_bus_if.c bhndb_bus_if.h \ bhndb_if.c bhndb_if.h SRCS+= bhnd_bus_if.h \ bhnd_chipc_if.h \ bhnd_erom_if.h \ bhnd_pwrctl_hostb_if.h \ bhnd_nvram_if.h SRCS+= device_if.h bus_if.h pci_if.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/bridgestp/Makefile b/sys/modules/bridgestp/Makefile index 0bfd0caa1880..47a28cb8e7cd 100644 --- a/sys/modules/bridgestp/Makefile +++ b/sys/modules/bridgestp/Makefile @@ -1,8 +1,10 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/net KMOD= bridgestp SRCS= bridgestp.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/ctl/Makefile b/sys/modules/ctl/Makefile index 49ba041ce224..5ff72216b329 100644 --- a/sys/modules/ctl/Makefile +++ b/sys/modules/ctl/Makefile @@ -1,31 +1,33 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/cam/ctl KMOD= ctl SRCS= ctl.c SRCS+= ctl_backend.c SRCS+= ctl_backend_block.c SRCS+= ctl_backend_ramdisk.c SRCS+= ctl_cmd_table.c SRCS+= ctl_frontend.c SRCS+= ctl_frontend_cam_sim.c SRCS+= ctl_frontend_ioctl.c SRCS+= ctl_ha.c SRCS+= ctl_scsi_all.c SRCS+= ctl_tpc.c SRCS+= ctl_tpc_local.c SRCS+= ctl_error.c SRCS+= ctl_util.c SRCS+= scsi_ctl.c SRCS+= bus_if.h SRCS+= device_if.h SRCS+= vnode_if.h SRCS+= opt_cam.h #CFLAGS+=-DICL_KERNEL_PROXY MFILES= kern/bus_if.m kern/device_if.m +EXPORT_SYMS= YES + .include diff --git a/sys/modules/cxgbe/if_cxgbe/Makefile b/sys/modules/cxgbe/if_cxgbe/Makefile index f64e53c91a7a..7210d4e8835e 100644 --- a/sys/modules/cxgbe/if_cxgbe/Makefile +++ b/sys/modules/cxgbe/if_cxgbe/Makefile @@ -1,47 +1,49 @@ # # $FreeBSD$ # .include CXGBE= ${SRCTOP}/sys/dev/cxgbe .PATH: ${CXGBE} ${CXGBE}/common ${CXGBE}/crypto ${CXGBE}/cudbg KMOD= if_cxgbe SRCS= bus_if.h SRCS+= device_if.h SRCS+= opt_ddb.h SRCS+= opt_inet.h SRCS+= opt_inet6.h SRCS+= opt_kern_tls.h SRCS+= opt_ofed.h SRCS+= opt_ratelimit.h SRCS+= opt_rss.h SRCS+= pci_if.h pci_iov_if.h SRCS+= t4_clip.c SRCS+= t4_filter.c SRCS+= t4_hw.c SRCS+= t4_if.c t4_if.h SRCS+= t4_iov.c .if ${KERN_OPTS:MKERN_TLS} != "" SRCS+= t4_kern_tls.c .endif SRCS+= t4_keyctx.c SRCS+= t4_l2t.c SRCS+= t4_main.c SRCS+= t4_mp_ring.c SRCS+= t4_netmap.c SRCS+= t4_sched.c SRCS+= t4_sge.c SRCS+= t4_smt.c SRCS+= t4_tracer.c SRCS+= cudbg_common.c SRCS+= cudbg_flash_utils.c SRCS+= cudbg_lib.c SRCS+= cudbg_wtp.c SRCS+= fastlz_api.c SRCS+= fastlz.c CFLAGS+= -I${CXGBE} +EXPORT_SYMS= YES + .include diff --git a/sys/modules/dcons/Makefile b/sys/modules/dcons/Makefile index be27ee22dae0..bdc86609c16c 100644 --- a/sys/modules/dcons/Makefile +++ b/sys/modules/dcons/Makefile @@ -1,20 +1,22 @@ # $Id: Makefile,v 1.6 2003/10/24 15:41:26 simokawa Exp $ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/dcons KMOD = dcons SRCS = dcons.c dcons.h dcons_os.c dcons_os.h \ opt_dcons.h opt_kdb.h opt_ddb.h opt_gdb.h .if !defined(KERNBUILDDIR) opt_kdb.h: echo "#define KDB 1" > $@ opt_ddb.h: echo "#define DDB 1" > $@ .endif CFLAGS+= -I${SRCTOP}/sys +EXPORT_SYMS= YES + .include diff --git a/sys/modules/efirt/Makefile b/sys/modules/efirt/Makefile index 58f4f9673c2e..4d6e89bc5d07 100644 --- a/sys/modules/efirt/Makefile +++ b/sys/modules/efirt/Makefile @@ -1,20 +1,22 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/${MACHINE}/${MACHINE} .PATH: ${SRCTOP}/sys/dev/efidev KMOD= efirt SRCS= efirt.c efirt_machdep.c efidev.c SRCS+= efirtc.c SRCS+= device_if.h bus_if.h clock_if.h .if ${MACHINE_CPUARCH} == "amd64" SRCS+= opt_hwpmc_hooks.h opt_kstack_pages.h SRCS+= efirt_support.S DPSRCS+= assym.inc efirt_support.o: efirt_support.S assym.inc ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ ${.IMPSRC} -o ${.TARGET} .endif +EXPORT_SYMS= YES + .include diff --git a/sys/modules/evdev/Makefile b/sys/modules/evdev/Makefile index 7bea12e3277f..5888825f4773 100644 --- a/sys/modules/evdev/Makefile +++ b/sys/modules/evdev/Makefile @@ -1,9 +1,11 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/evdev KMOD= evdev SRCS= cdev.c evdev.c evdev_mt.c evdev_utils.c SRCS+= opt_evdev.h bus_if.h device_if.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/exca/Makefile b/sys/modules/exca/Makefile index 5135ff24adb3..3b51f87b2827 100644 --- a/sys/modules/exca/Makefile +++ b/sys/modules/exca/Makefile @@ -1,8 +1,10 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/exca KMOD= exca SRCS= exca.c device_if.h bus_if.h power_if.h card_if.h pccarddevs.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/firewire/firewire/Makefile b/sys/modules/firewire/firewire/Makefile index 72fa049d4326..9ce806ae96d1 100644 --- a/sys/modules/firewire/firewire/Makefile +++ b/sys/modules/firewire/firewire/Makefile @@ -1,14 +1,16 @@ # $FreeBSD$ # Makefile for the IEEE1394 OHCI chipset .PATH: ${SRCTOP}/sys/dev/firewire KMOD= firewire SRCS = bus_if.h device_if.h pci_if.h \ firewire.c firewire.h firewire_phy.h firewirereg.h \ fwohci.c fwohci_pci.c fwohcireg.h fwohcivar.h \ iec13213.h iec68113.h \ fwcrom.c fwdev.c fwmem.c fwmem.h fwdma.c fwdma.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/firmware/Makefile b/sys/modules/firmware/Makefile index 7a9eb4522970..5b74a9dce24c 100644 --- a/sys/modules/firmware/Makefile +++ b/sys/modules/firmware/Makefile @@ -1,8 +1,10 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/kern KMOD= firmware SRCS= subr_firmware.c vnode_if.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/geom/geom_flashmap/Makefile b/sys/modules/geom/geom_flashmap/Makefile index 8b56c145ea51..47e3d6105371 100644 --- a/sys/modules/geom/geom_flashmap/Makefile +++ b/sys/modules/geom/geom_flashmap/Makefile @@ -1,8 +1,10 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/geom KMOD= geom_flashmap SRCS= geom_flashmap.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/gpio/gpiobus/Makefile b/sys/modules/gpio/gpiobus/Makefile index 458d56d8b935..6dc40a2a9d65 100644 --- a/sys/modules/gpio/gpiobus/Makefile +++ b/sys/modules/gpio/gpiobus/Makefile @@ -1,45 +1,47 @@ # # Copyright (c) 2012 Adrian Chadd, Xenion Pty Ltd # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # # $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/gpio/ KMOD= gpiobus SRCS= gpiobus.c gpioc.c SRCS+= gpio_if.c gpio_if.h gpiobus_if.c gpiobus_if.h ofw_bus_if.h SRCS+= device_if.h bus_if.h opt_platform.h .if !empty(OPT_FDT) SRCS+= ofw_gpiobus.c .endif CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/ +EXPORT_SYMS= YES + .include diff --git a/sys/modules/hid/hconf/Makefile b/sys/modules/hid/hconf/Makefile index 0ac8d969cd71..182d1d9fdf63 100644 --- a/sys/modules/hid/hconf/Makefile +++ b/sys/modules/hid/hconf/Makefile @@ -1,10 +1,12 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= hconf SRCS= hconf.c SRCS+= opt_hid.h SRCS+= bus_if.h device_if.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/hid/hid/Makefile b/sys/modules/hid/hid/Makefile index 81fc6c671ed2..749df79beff2 100644 --- a/sys/modules/hid/hid/Makefile +++ b/sys/modules/hid/hid/Makefile @@ -1,10 +1,12 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= hid SRCS= hid.c hid_if.c SRCS+= opt_hid.h SRCS+= bus_if.h device_if.h hid_if.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/hid/hidbus/Makefile b/sys/modules/hid/hidbus/Makefile index e233e3e06f07..c2a452e1e9f2 100644 --- a/sys/modules/hid/hidbus/Makefile +++ b/sys/modules/hid/hidbus/Makefile @@ -1,9 +1,11 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= hidbus SRCS= hidbus.c SRCS+= bus_if.h device_if.h hid_if.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/hid/hidmap/Makefile b/sys/modules/hid/hidmap/Makefile index 00e7099b287b..e0c1c086e098 100644 --- a/sys/modules/hid/hidmap/Makefile +++ b/sys/modules/hid/hidmap/Makefile @@ -1,10 +1,12 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= hidmap SRCS= hidmap.c SRCS+= opt_hid.h SRCS+= bus_if.h device_if.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/hyperv/vmbus/Makefile b/sys/modules/hyperv/vmbus/Makefile index 47a83e76204a..0aa489d8fa26 100644 --- a/sys/modules/hyperv/vmbus/Makefile +++ b/sys/modules/hyperv/vmbus/Makefile @@ -1,38 +1,40 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hyperv/vmbus \ ${SRCTOP}/sys/dev/hyperv/vmbus/${MACHINE_CPUARCH} KMOD= hv_vmbus SRCS= hyperv.c \ hyperv_busdma.c \ hyperv_machdep.c \ vmbus.c \ vmbus_br.c \ vmbus_chan.c \ vmbus_et.c \ vmbus_if.c \ vmbus_res.c \ vmbus_xact.c .if ${MACHINE_CPUARCH} != "i386" SRCS+= vmbus_vector.S .endif SRCS+= acpi_if.h bus_if.h device_if.h opt_acpi.h pci_if.h pcib_if.h vmbus_if.h # XXX: for assym.inc SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h .if ${MACHINE_CPUARCH} == "i386" SRCS+= opt_apic.h .endif DPSRCS= assym.inc vmbus_vector.o: ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ ${.IMPSRC} -o ${.TARGET} CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/include \ -I${SRCTOP}/sys/dev/hyperv/vmbus +EXPORT_SYMS= YES + .include diff --git a/sys/modules/i2c/iicbb/Makefile b/sys/modules/i2c/iicbb/Makefile index c7737f09e8b9..9b74a5da39d6 100644 --- a/sys/modules/i2c/iicbb/Makefile +++ b/sys/modules/i2c/iicbb/Makefile @@ -1,13 +1,15 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \ ${MACHINE_CPUARCH} == "mips" || ${MACHINE_CPUARCH} == "powerpc" || \ ${MACHINE_CPUARCH} == "riscv" ofw_bus_if= ofw_bus_if.h .endif KMOD = iicbb SRCS = device_if.h bus_if.h iicbus_if.h \ iicbb_if.h iicbb_if.c iicbb.c ${ofw_bus_if} opt_platform.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/i2c/iicbus/Makefile b/sys/modules/i2c/iicbus/Makefile index 8923615ecada..c6d2822bc20d 100644 --- a/sys/modules/i2c/iicbus/Makefile +++ b/sys/modules/i2c/iicbus/Makefile @@ -1,27 +1,29 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD= iicbus SRCS= \ bus_if.h \ device_if.h \ iic_recover_bus.c \ iicbus.c \ iicbus.h \ iicbus_if.c \ iicbus_if.h \ iiconf.c \ iiconf.h \ opt_platform.h \ .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ ${MACHINE_CPUARCH} == "i386" SRCS+= acpi_iicbus.c opt_acpi.h acpi_if.h .endif .if !empty(OPT_FDT) SRCS+= ofw_iicbus.c ofw_bus_if.h .endif +EXPORT_SYMS= YES + .include diff --git a/sys/modules/i2c/mux/iicmux/Makefile b/sys/modules/i2c/mux/iicmux/Makefile index 1d642bf3e5ae..b3f52c6c926e 100644 --- a/sys/modules/i2c/mux/iicmux/Makefile +++ b/sys/modules/i2c/mux/iicmux/Makefile @@ -1,19 +1,21 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus/mux KMOD= iicmux SRCS= iicmux.c iicmux_if.c SRCS+= \ bus_if.h \ device_if.h \ iicbus_if.h \ iicmux_if.h \ opt_platform.h \ .if !empty(OPT_FDT) SRCS+= ofw_bus_if.h .endif +EXPORT_SYMS= YES + .include diff --git a/sys/modules/i2c/smbus/Makefile b/sys/modules/i2c/smbus/Makefile index b5e78f223b89..0e25b78c6e4f 100644 --- a/sys/modules/i2c/smbus/Makefile +++ b/sys/modules/i2c/smbus/Makefile @@ -1,8 +1,10 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/smbus KMOD = smbus SRCS = device_if.h bus_if.h smbus_if.h smbus_if.c \ smbconf.h smbconf.c smbus.h smbus.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/ibcore/Makefile b/sys/modules/ibcore/Makefile index 951f0abab453..d3fc9096f315 100644 --- a/sys/modules/ibcore/Makefile +++ b/sys/modules/ibcore/Makefile @@ -1,57 +1,59 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/ofed/drivers/infiniband/core KMOD= ibcore SRCS= \ ib_addr.c \ ib_agent.c \ ib_cache.c \ ib_cm.c \ ib_cma.c \ ib_core_uverbs.c \ ib_cq.c \ ib_device.c \ ib_fmr_pool.c \ ib_iwcm.c \ ib_iwpm_msg.c \ ib_iwpm_util.c \ ib_mad.c \ ib_mad_rmpp.c \ ib_multicast.c \ ib_packer.c \ ib_rdma_core.c \ ib_roce_gid_mgmt.c \ ib_sa_query.c \ ib_smi.c \ ib_sysfs.c \ ib_ucm.c \ ib_ucma.c \ ib_ud_header.c \ ib_umem.c \ ib_user_mad.c \ ib_uverbs_cmd.c \ ib_uverbs_ioctl.c \ ib_uverbs_main.c \ ib_uverbs_marshall.c \ ib_uverbs_std_types.c \ ib_uverbs_std_types_async_fd.c \ ib_uverbs_std_types_counters.c \ ib_uverbs_std_types_cq.c \ ib_uverbs_std_types_device.c \ ib_uverbs_std_types_dm.c \ ib_uverbs_std_types_flow_action.c \ ib_uverbs_std_types_mr.c \ ib_uverbs_uapi.c \ ib_verbs.c SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_inet.h opt_inet6.h CFLAGS+= -I${SRCTOP}/sys/ofed/include CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include CFLAGS+= -DINET6 -DINET -DCONFIG_INFINIBAND_USER_MEM +EXPORT_SYMS= YES + .include CWARNFLAGS+= -Wno-cast-qual -Wno-pointer-arith -Wno-redundant-decls diff --git a/sys/modules/if_gif/Makefile b/sys/modules/if_gif/Makefile index 5799a350c8ae..639aed0d94a5 100644 --- a/sys/modules/if_gif/Makefile +++ b/sys/modules/if_gif/Makefile @@ -1,13 +1,15 @@ # $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" .PATH: ${SYSDIR}/net ${SYSDIR}/netinet ${SYSDIR}/netinet6 KMOD= if_gif SRCS= if_gif.c opt_inet.h opt_inet6.h SRCS.INET=in_gif.c SRCS.INET6=in6_gif.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/if_infiniband/Makefile b/sys/modules/if_infiniband/Makefile index ca5e7e3f44db..6593cd7d0574 100644 --- a/sys/modules/if_infiniband/Makefile +++ b/sys/modules/if_infiniband/Makefile @@ -1,10 +1,12 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/net KMOD= if_infiniband SRCS= if_infiniband.c \ opt_inet.h \ opt_inet6.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/iflib/Makefile b/sys/modules/iflib/Makefile index e86fd7e82dd6..f598db2743dd 100644 --- a/sys/modules/iflib/Makefile +++ b/sys/modules/iflib/Makefile @@ -1,14 +1,16 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/net KMOD= iflib SRCS= \ iflib.c \ iflib_clone.c \ mp_ring.c SRCS+= ifdi_if.c SRCS+= device_if.h bus_if.h pci_if.h pci_iov_if.h ifdi_if.h SRCS+= opt_acpi.h opt_inet.h opt_inet6.h opt_sched.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/ipfw/Makefile b/sys/modules/ipfw/Makefile index 274b1b1e6cf5..81822a3e2b1e 100644 --- a/sys/modules/ipfw/Makefile +++ b/sys/modules/ipfw/Makefile @@ -1,22 +1,24 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/netpfil/ipfw KMOD= ipfw SRCS= ip_fw2.c ip_fw_pfil.c ip_fw_bpf.c SRCS+= ip_fw_dynamic.c ip_fw_log.c ip_fw_eaction.c SRCS+= ip_fw_sockopt.c ip_fw_table.c ip_fw_table_algo.c ip_fw_iface.c SRCS+= ip_fw_table_value.c SRCS+= opt_inet.h opt_inet6.h opt_ipdivert.h opt_ipfw.h opt_kern_tls.h CFLAGS+= -DIPFIREWALL -I${SRCTOP}/sys/contrib/ck/include # #If you want it verbose #CFLAGS+= -DIPFIREWALL_VERBOSE #CFLAGS+= -DIPFIREWALL_VERBOSE_LIMIT=100 # #If you want it to pass all packets by default #CFLAGS+= -DIPFIREWALL_DEFAULT_TO_ACCEPT # +EXPORT_SYMS= YES + .include diff --git a/sys/modules/iscsi/Makefile b/sys/modules/iscsi/Makefile index 9b150f5c2213..e74f8ff132e2 100644 --- a/sys/modules/iscsi/Makefile +++ b/sys/modules/iscsi/Makefile @@ -1,25 +1,27 @@ # $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" .PATH: ${SRCTOP}/sys/dev/iscsi/ KMOD= iscsi SRCS= iscsi.c SRCS+= icl.c SRCS+= icl_soft.c SRCS+= icl_soft_proxy.c SRCS+= opt_cam.h SRCS+= bus_if.h SRCS+= device_if.h SRCS+= icl_conn_if.c SRCS+= icl_conn_if.h .if ${MK_OFED} != "no" || defined(ALL_MODULES) CFLAGS+=-DICL_KERNEL_PROXY .endif MFILES= kern/bus_if.m kern/device_if.m dev/iscsi/icl_conn_if.m +EXPORT_SYMS= YES + .include diff --git a/sys/modules/ixl/Makefile b/sys/modules/ixl/Makefile index 2b524e974404..fb2fcf6574ac 100644 --- a/sys/modules/ixl/Makefile +++ b/sys/modules/ixl/Makefile @@ -1,25 +1,27 @@ #$FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ixl KMOD = if_ixl SRCS = device_if.h bus_if.h pci_if.h ifdi_if.h SRCS += opt_inet.h opt_inet6.h opt_rss.h opt_ixl.h opt_iflib.h SRCS += ixl_pf_main.c ixl_pf_qmgr.c ixl_txrx.c ixl_pf_i2c.c i40e_osdep.c SRCS += if_ixl.c ixl_pf_iflib.c SRCS.PCI_IOV += pci_iov_if.h ixl_pf_iov.c # Shared source SRCS += i40e_common.c i40e_nvm.c i40e_adminq.c i40e_lan_hmc.c i40e_hmc.c i40e_dcb.c # Debug messages / sysctls # CFLAGS += -DIXL_DEBUG # Enable asserts and other debugging facilities # CFLAGS += -DINVARIANTS -DINVARIANTS_SUPPORT -DWITNESS # Enable iWARP client interface # CFLAGS += -DIXL_IW # SRCS += ixl_iw.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/kgssapi/Makefile b/sys/modules/kgssapi/Makefile index a720cdd6a487..a21524cb419a 100644 --- a/sys/modules/kgssapi/Makefile +++ b/sys/modules/kgssapi/Makefile @@ -1,54 +1,56 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/kgssapi ${SRCTOP}/sys/rpc/rpcsec_gss KMOD= kgssapi SRCS= gss_accept_sec_context.c \ gss_add_oid_set_member.c \ gss_acquire_cred.c \ gss_canonicalize_name.c \ gss_create_empty_oid_set.c \ gss_delete_sec_context.c \ gss_display_status.c \ gss_export_name.c \ gss_get_mic.c \ gss_init_sec_context.c \ gss_impl.c \ gss_import_name.c \ gss_names.c \ gss_pname_to_uid.c \ gss_release_buffer.c \ gss_release_cred.c \ gss_release_name.c \ gss_release_oid_set.c \ gss_set_cred_option.c \ gss_test_oid_set_member.c \ gss_unwrap.c \ gss_verify_mic.c \ gss_wrap.c \ gss_wrap_size_limit.c \ gssd_prot.c SRCS+= rpcsec_gss.c \ rpcsec_gss_conf.c \ rpcsec_gss_misc.c \ rpcsec_gss_prot.c \ svc_rpcsec_gss.c SRCS+= kgss_if.h kgss_if.c SRCS+= gssd.h gssd_xdr.c gssd_clnt.c CLEANFILES= gssd.h gssd_xdr.c gssd_clnt.c S= ${SRCTOP}/sys gssd.h: $S/kgssapi/gssd.x RPCGEN_CPP=${CPP:Q} rpcgen -hM $S/kgssapi/gssd.x | grep -v pthread.h > gssd.h gssd_xdr.c: $S/kgssapi/gssd.x RPCGEN_CPP=${CPP:Q} rpcgen -c $S/kgssapi/gssd.x -o gssd_xdr.c gssd_clnt.c: $S/kgssapi/gssd.x RPCGEN_CPP=${CPP:Q} rpcgen -lM $S/kgssapi/gssd.x | grep -v string.h > gssd_clnt.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/krpc/Makefile b/sys/modules/krpc/Makefile index 72adceac32ce..e8946f0ba4ef 100644 --- a/sys/modules/krpc/Makefile +++ b/sys/modules/krpc/Makefile @@ -1,58 +1,60 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/rpc ${SRCTOP}/sys/rpc/rpcsec_tls KMOD= krpc SRCS= auth_none.c \ auth_unix.c \ authunix_prot.c \ clnt_bck.c \ clnt_dg.c \ clnt_rc.c \ clnt_vc.c \ getnetconfig.c \ rpc_callmsg.c \ rpc_generic.c \ rpc_prot.c \ rpcb_clnt.c \ rpcb_prot.c \ replay.c \ svc.c \ svc_auth.c \ svc_auth_unix.c \ svc_dg.c \ svc_generic.c \ svc_vc.c SRCS+= rpctls_impl.c auth_tls.c SRCS+= opt_inet6.h opt_kern_tls.h SRCS+= rpctlscd.h rpctlscd_xdr.c rpctlscd_clnt.c CLEANFILES= rpctlscd.h rpctlscd_xdr.c rpctlscd_clnt.c S= ${SRCTOP}/sys rpctlscd.h: $S/rpc/rpcsec_tls/rpctlscd.x RPCGEN_CPP=${CPP:Q} rpcgen -hM $S/rpc/rpcsec_tls/rpctlscd.x | grep -v pthread.h > rpctlscd.h rpctlscd_xdr.c: $S/rpc/rpcsec_tls/rpctlscd.x RPCGEN_CPP=${CPP:Q} rpcgen -c $S/rpc/rpcsec_tls/rpctlscd.x -o rpctlscd_xdr.c rpctlscd_clnt.c: $S/rpc/rpcsec_tls/rpctlscd.x RPCGEN_CPP=${CPP:Q} rpcgen -lM $S/rpc/rpcsec_tls/rpctlscd.x | grep -v string.h > rpctlscd_clnt.c SRCS+= rpctlssd.h rpctlssd_xdr.c rpctlssd_clnt.c CLEANFILES= rpctlssd.h rpctlssd_xdr.c rpctlssd_clnt.c S= ${SRCTOP}/sys rpctlssd.h: $S/rpc/rpcsec_tls/rpctlssd.x RPCGEN_CPP=${CPP:Q} rpcgen -hM $S/rpc/rpcsec_tls/rpctlssd.x | grep -v pthread.h > rpctlssd.h rpctlssd_xdr.c: $S/rpc/rpcsec_tls/rpctlssd.x RPCGEN_CPP=${CPP:Q} rpcgen -c $S/rpc/rpcsec_tls/rpctlssd.x -o rpctlssd_xdr.c rpctlssd_clnt.c: $S/rpc/rpcsec_tls/rpctlssd.x RPCGEN_CPP=${CPP:Q} rpcgen -lM $S/rpc/rpcsec_tls/rpctlssd.x | grep -v string.h > rpctlssd_clnt.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/libalias/libalias/Makefile b/sys/modules/libalias/libalias/Makefile index 655e67bebb5e..4da69ea972b0 100644 --- a/sys/modules/libalias/libalias/Makefile +++ b/sys/modules/libalias/libalias/Makefile @@ -1,8 +1,10 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet/libalias KMOD= libalias SRCS= alias.c alias_db.c alias_proxy.c alias_util.c alias_mod.c alias_sctp.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile index d2822a20c67a..089187ca7cff 100644 --- a/sys/modules/linux/Makefile +++ b/sys/modules/linux/Makefile @@ -1,116 +1,118 @@ # $FreeBSD$ .if ${MACHINE_CPUARCH} == "amd64" SFX= 32 CFLAGS+=-DCOMPAT_FREEBSD32 -DCOMPAT_LINUX32 .endif .PATH: ${SRCTOP}/sys/compat/linux ${SRCTOP}/sys/${MACHINE_CPUARCH}/linux${SFX} .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" .PATH: ${SRCTOP}/sys/x86/linux .endif KMOD= linux SRCS= linux_fork.c linux${SFX}_dummy_machdep.c linux_file.c linux_event.c \ linux_futex.c linux_getcwd.c linux_ioctl.c linux_ipc.c \ linux${SFX}_machdep.c linux_misc.c linux_signal.c \ linux_socket.c linux_stats.c linux_sysctl.c linux${SFX}_sysent.c \ linux${SFX}_sysvec.c linux_uid16.c linux_time.c \ linux_timer.c linux_vdso.c \ opt_inet6.h opt_compat.h opt_posix.h opt_usb.h vnode_if.h \ device_if.h bus_if.h .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" SRCS+= linux_dummy_x86.c linux_vdso_tsc_selector_x86.c VDSODEPS=linux_vdso_gettc_x86.inc .endif .if ${MACHINE_CPUARCH} == "amd64" SRCS+= linux${SFX}_support.s SRCS+= linux_elf32.c .else SRCS+= linux_copyout.c .endif DPSRCS= assym.inc linux${SFX}_genassym.c # XXX: for assym.inc SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h .if ${MACHINE_CPUARCH} == "i386" SRCS+= opt_apic.h .endif OBJS= linux${SFX}_vdso.so .if ${MACHINE_CPUARCH} == "i386" SRCS+= linux_ptrace_machdep.c imgact_linux.c linux_util.c linux_mib.c \ linux_mmap.c linux_dummy.c linux_emul.c linux_errno.c opt_cpu.h linux.c .endif .if ${MACHINE_CPUARCH} == "i386" EXPORT_SYMS= EXPORT_SYMS+= linux_emul_path EXPORT_SYMS+= linux_get_osname EXPORT_SYMS+= linux_get_osrelease EXPORT_SYMS+= linux_ioctl_register_handler EXPORT_SYMS+= linux_ioctl_unregister_handler .endif CLEANFILES= linux${SFX}_assym.h linux${SFX}_genassym.o linux${SFX}_locore.o \ genassym.o linux${SFX}_vdso_gtod.o linux${SFX}_vdso.so.o linux${SFX}_assym.h: linux${SFX}_genassym.o sh ${SYSDIR}/kern/genassym.sh linux${SFX}_genassym.o > ${.TARGET} .if ${MACHINE_CPUARCH} == "amd64" VDSOFLAGS=-DCOMPAT_FREEBSD32 -DCOMPAT_LINUX32 -m32 .else VDSOFLAGS=-mregparm=0 .endif linux${SFX}_locore.o: linux${SFX}_assym.h assym.inc ${CC} -c -x assembler-with-cpp -DLOCORE -fPIC -pipe -O2 -Werror \ -msoft-float \ -fno-common -nostdinc -fasynchronous-unwind-tables \ -fno-omit-frame-pointer -foptimize-sibling-calls ${VDSOFLAGS} \ -fno-stack-protector -I. -I${SYSDIR} -I${SRCTOP}/include \ ${.IMPSRC} -o ${.TARGET} linux${SFX}_vdso_gtod.o: linux_vdso_gtod.inc ${VDSODEPS} ${CC} -c -fPIC -pipe -O2 -Werror -msoft-float \ -fno-common -nostdinc -fasynchronous-unwind-tables \ -fno-omit-frame-pointer -foptimize-sibling-calls ${VDSOFLAGS} \ -fno-stack-protector -I. -I${SYSDIR} -I${SRCTOP}/include \ ${.IMPSRC} -o ${.TARGET} linux${SFX}_vdso.so.o: linux${SFX}_locore.o linux${SFX}_vdso_gtod.o ${LD} -m elf_i386 --shared --eh-frame-hdr -soname=linux-gate.so.1 \ --no-undefined --hash-style=both -warn-common -nostdlib \ --strip-debug -s --build-id=sha1 --Bsymbolic \ -T${SRCTOP}/sys/${MACHINE}/linux${SFX}/linux${SFX}_vdso.lds.s \ -o ${.TARGET} ${.ALLSRC:M*.o} .if ${MACHINE_CPUARCH} == "amd64" OBJCOPY_TARGET=--output-target elf64-x86-64-freebsd --binary-architecture i386 .elif ${MACHINE_CPUARCH} == "i386" OBJCOPY_TARGET=--output-target elf32-i386-freebsd --binary-architecture i386 .else .error ${MACHINE_CPUARCH} not yet supported by linux .endif linux${SFX}_vdso.so: linux${SFX}_vdso.so.o ${OBJCOPY} --input-target binary ${OBJCOPY_TARGET} \ linux${SFX}_vdso.so.o ${.TARGET} ${STRIPBIN} -N _binary_linux${SFX}_vdso_so_o_size ${.TARGET} .if ${MACHINE_CPUARCH} == "amd64" linux${SFX}_support.o: linux${SFX}_assym.h assym.inc ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ ${.IMPSRC} -o ${.TARGET} .endif linux${SFX}_genassym.o: offset.inc ${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon ${.IMPSRC} .if !defined(KERNBUILDDIR) .warning Building Linuxulator outside of a kernel does not make sense .endif +EXPORT_SYMS= YES + .include diff --git a/sys/modules/linux64/Makefile b/sys/modules/linux64/Makefile index 17192b4f18aa..e2a408f49bad 100644 --- a/sys/modules/linux64/Makefile +++ b/sys/modules/linux64/Makefile @@ -1,88 +1,90 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/compat/linux ${SRCTOP}/sys/${MACHINE}/linux .if ${MACHINE_CPUARCH} == "amd64" .PATH: ${SRCTOP}/sys/x86/linux .endif KMOD= linux64 SRCS= linux_elf64.c linux_fork.c linux_dummy_machdep.c linux_file.c \ linux_event.c linux_futex.c linux_getcwd.c linux_ioctl.c linux_ipc.c \ linux_machdep.c linux_misc.c linux_ptrace.c linux_signal.c \ linux_socket.c linux_stats.c linux_sysctl.c linux_sysent.c \ linux_sysvec.c linux_time.c linux_vdso.c linux_timer.c \ opt_compat.h opt_inet6.h opt_posix.h opt_usb.h \ vnode_if.h device_if.h bus_if.h \ linux_support.s .if ${MACHINE_CPUARCH} == "amd64" SRCS+= linux_dummy_x86.c linux_vdso_tsc_selector_x86.c .endif DPSRCS= assym.inc linux_genassym.c # XXX: for assym.inc SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h CLEANFILES= linux_assym.h linux_genassym.o linux_locore.o \ genassym.o linux_vdso_gtod.o linux_vdso.so.o OBJS= linux_vdso.so linux_assym.h: linux_genassym.o sh ${SYSDIR}/kern/genassym.sh linux_genassym.o > ${.TARGET} .if ${MACHINE_CPUARCH} == "amd64" VDSOFLAGS=-mcmodel=small -msoft-float VDSODEPS=linux_vdso_gettc_x86.inc .elif ${MACHINE_CPUARCH} == "aarch64" # The Linux uses tiny memory model, but our ld does not know about # some of relocation types which is generated by cc VDSOFLAGS=-mgeneral-regs-only -mcmodel=small -ffixed-x18 .endif linux_locore.o: linux_assym.h assym.inc ${CC} -c -x assembler-with-cpp -DLOCORE \ -fPIC -pipe -O2 -Werror ${VDSOFLAGS} \ -nostdinc -fasynchronous-unwind-tables \ -fno-omit-frame-pointer -foptimize-sibling-calls \ -fno-stack-protector -I. -I${SYSDIR} -I${SRCTOP}/include \ ${.IMPSRC} -o ${.TARGET} linux_vdso_gtod.o: linux_vdso_gtod.inc ${VDSODEPS} ${CC} -c -fPIC -pipe -O2 -Werror ${VDSOFLAGS} \ -nostdinc -fasynchronous-unwind-tables \ -fno-omit-frame-pointer -foptimize-sibling-calls \ -fno-stack-protector -I. -I${SYSDIR} -I${SRCTOP}/include \ ${.IMPSRC} -o ${.TARGET} linux_vdso.so.o: linux_locore.o linux_vdso_gtod.o ${LD} --shared --eh-frame-hdr -soname=linux-vdso.so.1 \ --no-undefined --hash-style=both -warn-common -nostdlib \ --strip-debug -s --build-id=sha1 -Bsymbolic \ -T${SRCTOP}/sys/${MACHINE}/linux/linux_vdso.lds.s \ -o ${.TARGET} ${.ALLSRC:M*.o} .if ${MACHINE_CPUARCH} == "aarch64" OBJCOPY_TARGET=--output-target elf64-littleaarch64 --binary-architecture aarch64 .elif ${MACHINE_CPUARCH} == "amd64" OBJCOPY_TARGET=--output-target elf64-x86-64 --binary-architecture i386:x86-64 .else .error ${MACHINE_CPUARCH} not yet supported by linux64 .endif linux_vdso.so: linux_vdso.so.o ${OBJCOPY} --input-target binary ${OBJCOPY_TARGET} \ linux_vdso.so.o ${.TARGET} ${STRIPBIN} -N _binary_linux_vdso_so_o_size ${.TARGET} linux_support.o: assym.inc linux_assym.h ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ ${.IMPSRC} -o ${.TARGET} linux_genassym.o: offset.inc ${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon ${.IMPSRC} .if !defined(KERNBUILDDIR) .warning Building Linuxulator outside of a kernel does not make sense .endif +EXPORT_SYMS= YES + .include diff --git a/sys/modules/linux_common/Makefile b/sys/modules/linux_common/Makefile index c7d139e2fb9a..9197ba9454bc 100644 --- a/sys/modules/linux_common/Makefile +++ b/sys/modules/linux_common/Makefile @@ -1,21 +1,21 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/compat/linux KMOD= linux_common SRCS= linux_common.c linux_mib.c linux_mmap.c linux_util.c linux_emul.c \ linux_dummy.c linux_errno.c \ linux.c device_if.h vnode_if.h bus_if.h opt_inet6.h EXPORT_SYMS= EXPORT_SYMS+= linux_emul_path -EXPORT_SYMS+= linux_ioctl_register_handler -EXPORT_SYMS+= linux_ioctl_unregister_handler EXPORT_SYMS+= linux_get_osname EXPORT_SYMS+= linux_get_osrelease .if !defined(KERNBUILDDIR) .warning Building Linuxulator outside of a kernel does not make sense .endif +EXPORT_SYMS= YES + .include diff --git a/sys/modules/linuxkpi/Makefile b/sys/modules/linuxkpi/Makefile index e1b1eab6ab09..6905166440aa 100644 --- a/sys/modules/linuxkpi/Makefile +++ b/sys/modules/linuxkpi/Makefile @@ -1,42 +1,44 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/compat/linuxkpi/common/src KMOD= linuxkpi SRCS= linux_compat.c \ linux_current.c \ linux_devres.c \ linux_dmi.c \ linux_domain.c \ linux_firmware.c \ linux_fpu.c \ linux_hrtimer.c \ linux_idr.c \ linux_interrupt.c \ linux_kmod.c \ linux_kthread.c \ linux_lock.c \ linux_page.c \ linux_pci.c \ linux_radix.c \ linux_rcu.c \ linux_seq_file.c \ linux_schedule.c \ linux_shmemfs.c \ linux_shrinker.c \ linux_slab.c \ linux_tasklet.c \ linux_usb.c \ linux_work.c \ linux_xarray.c .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ ${MACHINE_CPUARCH} == "i386" SRCS+= opt_acpi.h acpi_if.h linux_acpi.c .endif SRCS+= ${LINUXKPI_GENSRCS} CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include CFLAGS+= -I${SRCTOP}/sys/contrib/ck/include +EXPORT_SYMS= YES + .include diff --git a/sys/modules/mfi/Makefile b/sys/modules/mfi/Makefile index 53f4164add7b..7a17f9b0f4fa 100644 --- a/sys/modules/mfi/Makefile +++ b/sys/modules/mfi/Makefile @@ -1,18 +1,20 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mfi SUBDIR= mfip .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" SUBDIR+= mfi_linux .endif KMOD= mfi SRCS= mfi.c mfi_pci.c mfi_disk.c mfi_debug.c mfi_syspd.c mfi_tbolt.c SRCS+= opt_mfi.h opt_cam.h SRCS+= device_if.h bus_if.h pci_if.h #CFLAGS += -DMFI_DEBUG +EXPORT_SYMS= YES + .include diff --git a/sys/modules/mii/Makefile b/sys/modules/mii/Makefile index 5709af97b720..348c9b7b2845 100644 --- a/sys/modules/mii/Makefile +++ b/sys/modules/mii/Makefile @@ -1,24 +1,18 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mii KMOD= miibus SRCS= acphy.c amphy.c atphy.c axphy.c bmtphy.c brgphy.c bus_if.h SRCS+= ciphy.c device_if.h SRCS+= e1000phy.c gentbi.c icsphy.c ip1000phy.c jmphy.c lxtphy.c SRCS+= miibus_if.c miibus_if.h mii.c miidevs.h mii_bitbang.c mii_physubr.c SRCS+= nsgphy.c nsphy.c nsphyter.c pci_if.h pnaphy.c qsphy.c SRCS+= rdcphy.c rgephy.c rlphy.c smcphy.c SRCS+= smscphy.c tdkphy.c truephy.c SRCS+= ukphy.c ukphy_subr.c SRCS+= xmphy.c -EXPORT_SYMS= mii_attach \ - mii_bitbang_readreg \ - mii_bitbang_sync \ - mii_bitbang_writereg \ - mii_mediachg \ - mii_pollstat \ - mii_tick +EXPORT_SYMS= YES .include diff --git a/sys/modules/mlx4/Makefile b/sys/modules/mlx4/Makefile index cb140a59854f..96818c2ef3d0 100644 --- a/sys/modules/mlx4/Makefile +++ b/sys/modules/mlx4/Makefile @@ -1,35 +1,37 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mlx4/mlx4_core KMOD= mlx4 SRCS= \ mlx4_alloc.c \ mlx4_catas.c \ mlx4_cmd.c \ mlx4_cq.c \ mlx4_eq.c \ mlx4_fw.c \ mlx4_fw_qos.c \ mlx4_icm.c \ mlx4_intf.c \ mlx4_main.c \ mlx4_mcg.c \ mlx4_mr.c \ mlx4_pd.c \ mlx4_port.c \ mlx4_profile.c \ mlx4_qp.c \ mlx4_reset.c \ mlx4_sense.c \ mlx4_srq.c \ mlx4_resource_tracker.c SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_inet.h opt_inet6.h CFLAGS+= -I${SRCTOP}/sys/ofed/include CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include +EXPORT_SYMS= YES + .include CFLAGS+= -Wno-cast-qual -Wno-pointer-arith diff --git a/sys/modules/mlx5/Makefile b/sys/modules/mlx5/Makefile index aa07fb82a25d..c9eccde7d610 100644 --- a/sys/modules/mlx5/Makefile +++ b/sys/modules/mlx5/Makefile @@ -1,56 +1,58 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mlx5/mlx5_core \ ${SRCTOP}/sys/dev/mlx5/mlx5_lib \ ${SRCTOP}/sys/dev/mlx5/mlx5_fpga KMOD=mlx5 SRCS= \ mlx5_alloc.c \ mlx5_cmd.c \ mlx5_cq.c \ mlx5_diagnostics.c \ mlx5_eq.c \ mlx5_eswitch.c \ mlx5_fs_cmd.c \ mlx5_fs_tree.c \ mlx5_fw.c \ mlx5_fwdump.c \ mlx5_health.c \ mlx5_mad.c \ mlx5_main.c \ mlx5_mcg.c \ mlx5_mpfs.c \ mlx5_mr.c \ mlx5_pagealloc.c \ mlx5_pd.c \ mlx5_port.c \ mlx5_qp.c \ mlx5_rl.c \ mlx5_srq.c \ mlx5_tls.c \ mlx5_transobj.c \ mlx5_uar.c \ mlx5_vport.c \ mlx5_vsc.c \ mlx5_wq.c \ mlx5_gid.c SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h CFLAGS+= -I${SRCTOP}/sys/ofed/include CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include .if defined(CONFIG_BUILD_FPGA) SRCS+= \ mlx5fpga_cmd.c \ mlx5fpga_core.c \ mlx5fpga_sdk.c \ mlx5fpga_trans.c \ mlx5fpga_xfer.c \ mlx5fpga_ipsec.c .endif +EXPORT_SYMS= YES + .include CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} diff --git a/sys/modules/mlxfw/Makefile b/sys/modules/mlxfw/Makefile index 1facd983fd3d..5980a49dabee 100644 --- a/sys/modules/mlxfw/Makefile +++ b/sys/modules/mlxfw/Makefile @@ -1,18 +1,20 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mlxfw KMOD=mlxfw SRCS= \ mlxfw_fsm.c \ mlxfw_mfa2.c \ mlxfw_mfa2_tlv_multi.c SRCS+= ${LINUXKPI_GENSRCS} CFLAGS+= \ -I${SRCTOP}/sys/ofed/include \ -I${SRCTOP}/sys/ofed/include/uapi \ -I${SRCTOP}/sys/compat/linuxkpi/common/include \ -I${SRCTOP}/sys/contrib/xz-embedded/freebsd \ -I${SRCTOP}/sys/contrib/xz-embedded/linux/lib/xz +EXPORT_SYMS= YES + .include diff --git a/sys/modules/netgraph/atm/atmbase/Makefile b/sys/modules/netgraph/atm/atmbase/Makefile index f495cdbbda78..68959693811e 100644 --- a/sys/modules/netgraph/atm/atmbase/Makefile +++ b/sys/modules/netgraph/atm/atmbase/Makefile @@ -1,18 +1,20 @@ # $FreeBSD$ # # Author: Harti Brandt # LIBBASE= ${SRCTOP}/sys/contrib/ngatm .PATH: ${SRCTOP}/sys/netgraph/atm .PATH: ${LIBBASE}/netnatm/misc .PATH: ${LIBBASE}/netnatm/msg KMOD= ngatmbase SRCS= ngatmbase.c unimsg_common.c straddr.c \ traffic.c uni_ie.c uni_msg.c CFLAGS+= -I${LIBBASE} # -DNGATM_DEBUG +EXPORT_SYMS= YES + .include diff --git a/sys/modules/netgraph/bluetooth/bluetooth/Makefile b/sys/modules/netgraph/bluetooth/bluetooth/Makefile index 2e25d8e37cb5..eb6c64b7ae65 100644 --- a/sys/modules/netgraph/bluetooth/bluetooth/Makefile +++ b/sys/modules/netgraph/bluetooth/bluetooth/Makefile @@ -1,11 +1,13 @@ # $Id: Makefile,v 1.1 2002/11/24 20:39:57 max Exp $ # $FreeBSD$ .PATH: ${SRCTOP}/sys/netgraph/bluetooth/common CFLAGS+= -I${SRCTOP}/sys/netgraph/bluetooth/include KMOD= ng_bluetooth SRCS= ng_bluetooth.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/netgraph/bluetooth/socket/Makefile b/sys/modules/netgraph/bluetooth/socket/Makefile index 36bc4e9fbd0f..1b0e913b1cf8 100644 --- a/sys/modules/netgraph/bluetooth/socket/Makefile +++ b/sys/modules/netgraph/bluetooth/socket/Makefile @@ -1,16 +1,18 @@ # $Id: Makefile,v 1.2 2003/01/12 23:37:31 max Exp $ # $FreeBSD$ .PATH: ${SRCTOP}/sys/netgraph/bluetooth/socket CFLAGS+= -I${SRCTOP}/sys/netgraph/bluetooth/include KMOD= ng_btsocket SRCS= ng_btsocket.c \ ng_btsocket_hci_raw.c \ ng_btsocket_l2cap_raw.c \ ng_btsocket_l2cap.c \ ng_btsocket_rfcomm.c \ ng_btsocket_sco.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/netgraph/netgraph/Makefile b/sys/modules/netgraph/netgraph/Makefile index a34d6164c908..48adf319d718 100644 --- a/sys/modules/netgraph/netgraph/Makefile +++ b/sys/modules/netgraph/netgraph/Makefile @@ -1,7 +1,9 @@ # $FreeBSD$ # $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $ KMOD= netgraph SRCS= ng_base.c ng_parse.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/nfscommon/Makefile b/sys/modules/nfscommon/Makefile index cc2d48c1b1bc..08d6351bd89b 100644 --- a/sys/modules/nfscommon/Makefile +++ b/sys/modules/nfscommon/Makefile @@ -1,17 +1,19 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/nfs KMOD= nfscommon SRCS= vnode_if.h \ nfs_commonacl.c \ nfs_commonkrpc.c \ nfs_commonport.c \ nfs_commonsubs.c \ opt_inet.h \ opt_inet6.h \ opt_kern_tls.h \ opt_kgssapi.h \ opt_nfs.h \ opt_ufs.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/nfssvc/Makefile b/sys/modules/nfssvc/Makefile index ff9462c685f7..f59b63459fc2 100644 --- a/sys/modules/nfssvc/Makefile +++ b/sys/modules/nfssvc/Makefile @@ -1,8 +1,10 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/nfs KMOD= nfssvc SRCS= nfs_nfssvc.c \ opt_nfs.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/ntb/ntb/Makefile b/sys/modules/ntb/ntb/Makefile index ec6421ac7b66..f318ff0f88b9 100644 --- a/sys/modules/ntb/ntb/Makefile +++ b/sys/modules/ntb/ntb/Makefile @@ -1,9 +1,11 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ntb KMOD = ntb SRCS = ntb.c ntb_if.c SRCS += device_if.h bus_if.h ntb_if.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/ntb/ntb_transport/Makefile b/sys/modules/ntb/ntb_transport/Makefile index df39148f64da..f7094a29d6b4 100644 --- a/sys/modules/ntb/ntb_transport/Makefile +++ b/sys/modules/ntb/ntb_transport/Makefile @@ -1,9 +1,11 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ntb KMOD = ntb_transport SRCS = ntb_transport.c SRCS += device_if.h bus_if.h ntb_if.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/nvme/Makefile b/sys/modules/nvme/Makefile index 1fb4604fc33a..7aad95d55e60 100644 --- a/sys/modules/nvme/Makefile +++ b/sys/modules/nvme/Makefile @@ -1,26 +1,28 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/nvme KMOD = nvme SRCS = nvme.c \ nvme_ahci.c \ nvme_ctrlr.c \ nvme_ctrlr_cmd.c \ nvme_ns.c \ nvme_ns_cmd.c \ nvme_pci.c \ nvme_qpair.c \ nvme_sim.c \ nvme_sysctl.c \ nvme_test.c \ nvme_util.c \ \ bus_if.h \ device_if.h \ opt_cam.h \ opt_nvme.h \ pci_if.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/ow/owc/Makefile b/sys/modules/ow/owc/Makefile index 909c2382ad7d..78da808c82bc 100644 --- a/sys/modules/ow/owc/Makefile +++ b/sys/modules/ow/owc/Makefile @@ -1,10 +1,12 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ow KMOD= owc SRCS= owc_gpiobus.c SRCS+= gpio_if.h gpiobus_if.h owll_if.h ofw_bus_if.h bus_if.h device_if.h SRCS+= opt_platform.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/pf/Makefile b/sys/modules/pf/Makefile index fbf5e0cbfa89..e2663b9748a8 100644 --- a/sys/modules/pf/Makefile +++ b/sys/modules/pf/Makefile @@ -1,26 +1,28 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/netpfil/pf KMOD= pf SRCS= pf.c pf_if.c pf_lb.c pf_osfp.c pf_ioctl.c pf_norm.c pf_table.c \ pf_ruleset.c pf_nv.c pf_syncookies.c in4_cksum.c \ bus_if.h device_if.h \ opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h opt_sctp.h opt_global.h \ opt_kern_tls.h .if !defined(KERNBUILDDIR) # pflog can be loaded as a module, have the additional checks turned on # pfsync can be loaded as a module, have the additional checks turned on opt_pf.h: echo "#define DEV_PF 1" > ${.TARGET} echo "#define DEV_PFLOG 1" >> ${.TARGET} echo "#define DEV_PFSYNC 1" >> ${.TARGET} .if defined(VIMAGE) opt_global.h: echo "#define VIMAGE 1" >> ${.TARGET} .endif .endif +EXPORT_SYMS= YES + .include diff --git a/sys/modules/ppbus/Makefile b/sys/modules/ppbus/Makefile index 6b29f6985236..b2ebb2430936 100644 --- a/sys/modules/ppbus/Makefile +++ b/sys/modules/ppbus/Makefile @@ -1,22 +1,25 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ppbus KMOD= ppbus SRCS= bus_if.h device_if.h ppbus_if.h ppbus_if.c \ opt_ppb_1284.h \ ppb_1284.c ppb_base.c ppb_msq.c ppbconf.c -EXPORT_SYMS= ppb_attach_device \ +EXPORT_SYMS= \ ppb_request_bus \ ppb_release_bus \ ppb_get_status \ ppb_poll_bus \ ppb_reset_epp_timeout \ ppb_ecp_sync \ ppb_get_epp_protocol \ ppb_set_mode \ ppb_get_mode \ - ppb_write + ppb_write \ + ppb_lock + +EXPORT_SYMS= YES .include diff --git a/sys/modules/procfs/Makefile b/sys/modules/procfs/Makefile index 282b200e5a60..ee41bb8b116d 100644 --- a/sys/modules/procfs/Makefile +++ b/sys/modules/procfs/Makefile @@ -1,28 +1,28 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/procfs KMOD= procfs SRCS= SRCS+= vnode_if.h SRCS+= procfs_dbregs.c SRCS+= procfs_fpregs.c SRCS+= procfs_map.c SRCS+= procfs_mem.c SRCS+= procfs_note.c SRCS+= procfs_osrel.c SRCS+= procfs_regs.c SRCS+= procfs_rlimit.c SRCS+= procfs_status.c SRCS+= procfs_type.c SRCS+= procfs.c EXPORT_SYMS= -EXPORT_SYMS+= procfs_attr EXPORT_SYMS+= procfs_candebug EXPORT_SYMS+= procfs_docurproc EXPORT_SYMS+= procfs_doprocfile EXPORT_SYMS+= procfs_doprocmem EXPORT_SYMS+= procfs_notsystem +EXPORT_SYMS+= procfs_attr_rw .include diff --git a/sys/modules/pseudofs/Makefile b/sys/modules/pseudofs/Makefile index 45afba941428..eb083cd31d77 100644 --- a/sys/modules/pseudofs/Makefile +++ b/sys/modules/pseudofs/Makefile @@ -1,32 +1,31 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/pseudofs KMOD= pseudofs SRCS= opt_pseudofs.h \ vnode_if.h \ pseudofs.c \ pseudofs_fileno.c \ pseudofs_vncache.c \ pseudofs_vnops.c -EXPORT_SYMS= pfs_mount \ +EXPORT_SYMS= pfs_cmount \ + pfs_mount \ pfs_unmount \ pfs_root \ pfs_statfs \ pfs_init \ pfs_uninit \ pfs_create_dir \ pfs_create_file \ pfs_create_link \ - pfs_disable \ - pfs_enable \ pfs_destroy .if !defined(KERNBUILDDIR) .if defined(PSEUDOFS_TRACE) CFLAGS+=-DPSEUDOFS_TRACE .endif .endif .include diff --git a/sys/modules/pwm/pwmbus/Makefile b/sys/modules/pwm/pwmbus/Makefile index 3cf56697f200..1b3c9f3077c3 100644 --- a/sys/modules/pwm/pwmbus/Makefile +++ b/sys/modules/pwm/pwmbus/Makefile @@ -1,20 +1,22 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/pwm KMOD= pwmbus SRCS= pwmbus.c .if !empty(OPT_FDT) SRCS+= ofw_pwm.c ofw_pwmbus.c ofw_bus_if.h .endif # Generated files... SRCS+= \ bus_if.h \ device_if.h \ opt_platform.h \ pwmbus_if.c \ pwmbus_if.h \ +EXPORT_SYMS= YES + .include diff --git a/sys/modules/rc4/Makefile b/sys/modules/rc4/Makefile index 21d2d85856a1..23cf6480d56b 100644 --- a/sys/modules/rc4/Makefile +++ b/sys/modules/rc4/Makefile @@ -1,8 +1,10 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/crypto/rc4 KMOD= rc4 SRCS= rc4.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/rtwn/Makefile b/sys/modules/rtwn/Makefile index 465187e19f35..8f72a28a1e05 100644 --- a/sys/modules/rtwn/Makefile +++ b/sys/modules/rtwn/Makefile @@ -1,50 +1,52 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/rtwn SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" KMOD = rtwn SRCS = if_rtwn.c if_rtwn_tx.c if_rtwn_rx.c if_rtwn_beacon.c \ if_rtwn_calib.c if_rtwn_cam.c if_rtwn_task.c if_rtwn_efuse.c \ if_rtwn_fw.c if_rtwn_nop.h if_rtwnreg.h if_rtwnvar.h if_rtwn_tx.h \ if_rtwn_rx.h if_rtwn_beacon.h if_rtwn_calib.h if_rtwn_cam.h \ if_rtwn_task.h if_rtwn_efuse.h if_rtwn_fw.h \ bus_if.h device_if.h \ opt_bus.h opt_rtwn.h opt_wlan.h .PATH: ${SRCTOP}/sys/dev/rtwn/rtl8192c SRCS += r92c_attach.c r92c_beacon.c r92c_calib.c r92c_chan.c r92c_fw.c \ r92c_init.c r92c_llt.c r92c_rf.c r92c_rom.c r92c_rx.c r92c_tx.c \ r92c.h r92c_priv.h r92c_reg.h r92c_var.h r92c_rom_defs.h \ r92c_rom_image.h r92c_fw_cmd.h r92c_rx_desc.h r92c_tx_desc.h .PATH: ${SRCTOP}/sys/dev/rtwn/rtl8188e SRCS += r88e_beacon.c r88e_calib.c r88e_chan.c r88e_fw.c r88e_init.c \ r88e_led.c r88e_rf.c r88e_rom.c r88e_rx.c r88e_tx.c r88e.h \ r88e_priv.h r88e_reg.h r88e_rom_defs.h r88e_rom_image.h \ r88e_fw_cmd.h r88e_rx_desc.h r88e_tx_desc.h .PATH: ${SRCTOP}/sys/dev/rtwn/rtl8192e SRCS += r92e_chan.c r92e_fw.c r92e_init.c r92e_led.c r92e_rf.c \ r92e_rom.c r92e_rx.c r92e.h r92e_priv.h r92e_reg.h \ r92e_rom_image.h r92e_rom_defs.h .PATH: ${SRCTOP}/sys/dev/rtwn/rtl8812a SRCS += r12a_beacon.c r12a_calib.c r12a_caps.c r12a_chan.c r12a_fw.c \ r12a_init.c r12a_led.c r12a_rf.c r12a_rom.c r12a_rx.c r12a_tx.c \ r12a.h r12a_priv.h r12a_reg.h r12a_var.h r12a_rom_defs.h \ r12a_rom_image.h r12a_fw_cmd.h r12a_rx_desc.h r12a_tx_desc.h .PATH: ${SRCTOP}/sys/dev/rtwn/rtl8821a SRCS += r21a_beacon.c r21a_calib.c r21a_chan.c r21a_fw.c r21a_init.c \ r21a_led.c r21a_rom.c r21a_rx.c r21a.h r21a_priv.h r21a_reg.h opt_rtwn.h: @echo "#define RTWN_DEBUG 1" > ${.TARGET} .if ${MK_SOURCELESS_UCODE} == "no" @echo "#define RTWN_WITHOUT_UCODE 1" >> ${.TARGET} .endif +EXPORT_SYMS= YES + .include diff --git a/sys/modules/sdhci/Makefile b/sys/modules/sdhci/Makefile index 158ed4cd945a..9d8269d86109 100644 --- a/sys/modules/sdhci/Makefile +++ b/sys/modules/sdhci/Makefile @@ -1,8 +1,10 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sdhci KMOD= sdhci SRCS= sdhci.c sdhci.h sdhci_if.c sdhci_if.h device_if.h bus_if.h mmcbr_if.h opt_mmccam.h opt_cam.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/sound/driver/sbc/Makefile b/sys/modules/sound/driver/sbc/Makefile index d7894d644e6a..bde54a077696 100644 --- a/sys/modules/sound/driver/sbc/Makefile +++ b/sys/modules/sound/driver/sbc/Makefile @@ -1,9 +1,11 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/isa KMOD= snd_sbc SRCS= device_if.h bus_if.h isa_if.h pci_if.h SRCS+= sbc.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/sound/driver/spicds/Makefile b/sys/modules/sound/driver/spicds/Makefile index 87ab0bbf8b55..f271dae20b2e 100644 --- a/sys/modules/sound/driver/spicds/Makefile +++ b/sys/modules/sound/driver/spicds/Makefile @@ -1,9 +1,11 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_spicds SRCS= device_if.h bus_if.h isa_if.h pci_if.h SRCS+= spicds.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/spi/spibus/Makefile b/sys/modules/spi/spibus/Makefile index 7832c870ca68..01386d39e118 100644 --- a/sys/modules/spi/spibus/Makefile +++ b/sys/modules/spi/spibus/Makefile @@ -1,20 +1,22 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/spibus KMOD= spibus SRCS= spibus.c .if !empty(OPT_FDT) SRCS+= ofw_spibus.c ofw_bus_if.h .endif # Generated files... SRCS+= \ bus_if.h \ device_if.h \ opt_platform.h \ spibus_if.c \ spibus_if.h \ +EXPORT_SYMS= YES + .include diff --git a/sys/modules/spigen/Makefile b/sys/modules/spigen/Makefile index 401b69a7ed98..5ff4805399b3 100644 --- a/sys/modules/spigen/Makefile +++ b/sys/modules/spigen/Makefile @@ -1,19 +1,21 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/spibus KMOD= spigen SRCS= spigen.c # Generated files... SRCS+= \ bus_if.h \ device_if.h \ opt_platform.h \ opt_spi.h \ spibus_if.h \ .if !empty(OPT_FDT) SRCS+= ofw_bus_if.h .endif +EXPORT_SYMS= YES + .include diff --git a/sys/modules/superio/Makefile b/sys/modules/superio/Makefile index 86585a45cc25..064c39863566 100644 --- a/sys/modules/superio/Makefile +++ b/sys/modules/superio/Makefile @@ -1,9 +1,11 @@ # $FreeBSD$ .PATH: ${.CURDIR}/../../dev/superio KMOD= superio SRCS= superio.c SRCS+= device_if.h bus_if.h isa_if.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/sysvipc/sysvmsg/Makefile b/sys/modules/sysvipc/sysvmsg/Makefile index 8cd9d2008b9a..84cbc70cde48 100644 --- a/sys/modules/sysvipc/sysvmsg/Makefile +++ b/sys/modules/sysvipc/sysvmsg/Makefile @@ -1,8 +1,10 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/kern KMOD= sysvmsg SRCS= sysv_msg.c opt_sysvipc.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/sysvipc/sysvsem/Makefile b/sys/modules/sysvipc/sysvsem/Makefile index 186e7ed94f4b..89509341c2e5 100644 --- a/sys/modules/sysvipc/sysvsem/Makefile +++ b/sys/modules/sysvipc/sysvsem/Makefile @@ -1,8 +1,10 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/kern KMOD= sysvsem SRCS= sysv_sem.c opt_sysvipc.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/sysvipc/sysvshm/Makefile b/sys/modules/sysvipc/sysvshm/Makefile index 672079706587..654d22aeda55 100644 --- a/sys/modules/sysvipc/sysvshm/Makefile +++ b/sys/modules/sysvipc/sysvshm/Makefile @@ -1,8 +1,10 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/kern KMOD= sysvshm SRCS= sysv_shm.c opt_sysvipc.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/toecore/Makefile b/sys/modules/toecore/Makefile index 48a311c38ebf..bae549fdad10 100644 --- a/sys/modules/toecore/Makefile +++ b/sys/modules/toecore/Makefile @@ -1,9 +1,11 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet KMOD= toecore SRCS= toecore.c SRCS+= opt_ofed.h opt_inet.h opt_inet6.h opt_kern_tls.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/ufs/Makefile b/sys/modules/ufs/Makefile index e587cf0f9b9d..9e4a0148111a 100644 --- a/sys/modules/ufs/Makefile +++ b/sys/modules/ufs/Makefile @@ -1,17 +1,19 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/ufs/ufs ${SRCTOP}/sys/ufs/ffs KMOD= ufs SRCS= opt_ddb.h opt_directio.h opt_ffs.h opt_quota.h opt_suiddir.h opt_ufs.h \ vnode_if.h ufs_acl.c ufs_bmap.c ufs_dirhash.c ufs_extattr.c \ ufs_gjournal.c ufs_inode.c ufs_lookup.c ufs_quota.c ufs_vfsops.c \ ufs_vnops.c ffs_alloc.c ffs_balloc.c ffs_inode.c ffs_rawread.c \ ffs_snapshot.c ffs_softdep.c ffs_subr.c ffs_suspend.c ffs_tables.c \ ffs_vfsops.c ffs_vnops.c .if !defined(KERNBUILDDIR) CFLAGS+= -DSOFTUPDATES -DUFS_DIRHASH .endif +EXPORT_SYMS= YES + .include diff --git a/sys/modules/usb/ucom/Makefile b/sys/modules/usb/ucom/Makefile index 21dd99508f8f..82200bcf49f4 100644 --- a/sys/modules/usb/ucom/Makefile +++ b/sys/modules/usb/ucom/Makefile @@ -1,36 +1,38 @@ # # $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= ucom SRCS= opt_bus.h opt_usb.h opt_gdb.h device_if.h bus_if.h usb_if.h usbdevs.h \ usb_serial.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/usb/uether/Makefile b/sys/modules/usb/uether/Makefile index 66e55b357fdb..838eeffcb17e 100644 --- a/sys/modules/usb/uether/Makefile +++ b/sys/modules/usb/uether/Makefile @@ -1,37 +1,39 @@ # # $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/net KMOD= uether SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ miibus_if.h opt_inet.h \ usb_ethernet.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/usb/uhid/Makefile b/sys/modules/usb/uhid/Makefile index 1ae7b012903f..2ab5dcfbdebc 100644 --- a/sys/modules/usb/uhid/Makefile +++ b/sys/modules/usb/uhid/Makefile @@ -1,36 +1,38 @@ # # $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/input KMOD= uhid SRCS= opt_bus.h opt_hid.h opt_usb.h device_if.h bus_if.h usb_if.h \ vnode_if.h usbdevs.h uhid.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/usb/usb/Makefile b/sys/modules/usb/usb/Makefile index f42f3d61147e..24a17f75a47f 100644 --- a/sys/modules/usb/usb/Makefile +++ b/sys/modules/usb/usb/Makefile @@ -1,44 +1,46 @@ # # $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/usb ${SRCTOP}/sys/dev/usb/controller KMOD= usb SRCS= bus_if.h device_if.h usb_if.h usb_if.c vnode_if.h \ opt_usb.h opt_bus.h opt_ddb.h \ usb_pf.h usbdevs.h usbdevs_data.h \ usb_busdma.c usb_controller.c usb_core.c usb_debug.c \ usb_dev.c usb_device.c usb_dynamic.c usb_error.c usb_generic.c \ usb_handle_request.c usb_hid.c usb_hub.c usb_lookup.c usb_mbuf.c \ usb_msctest.c usb_parse.c usb_pf.c usb_process.c usb_request.c \ usb_transfer.c usb_util.c .if !empty(OPT_FDT) SRCS+= usb_fdt_support.c ofw_bus_if.h .endif +EXPORT_SYMS= YES + .include diff --git a/sys/modules/virtio/virtio/Makefile b/sys/modules/virtio/virtio/Makefile index ed67f03ea9f9..f60c1a4a4bc0 100644 --- a/sys/modules/virtio/virtio/Makefile +++ b/sys/modules/virtio/virtio/Makefile @@ -1,35 +1,37 @@ # # $FreeBSD$ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/virtio KMOD= virtio SRCS= virtio.c virtqueue.c SRCS+= virtio_bus_if.c virtio_bus_if.h SRCS+= virtio_if.c virtio_if.h SRCS+= bus_if.h device_if.h +EXPORT_SYMS= YES + .include diff --git a/sys/modules/wlan/Makefile b/sys/modules/wlan/Makefile index f50aa7502809..2a31e11492b0 100644 --- a/sys/modules/wlan/Makefile +++ b/sys/modules/wlan/Makefile @@ -1,25 +1,27 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/net80211 KMOD= wlan SRCS= ieee80211.c ieee80211_action.c ieee80211_ageq.c \ ieee80211_crypto.c ieee80211_crypto_none.c ieee80211_dfs.c \ ieee80211_freebsd.c ieee80211_input.c ieee80211_ioctl.c \ ieee80211_mesh.c ieee80211_node.c ieee80211_output.c ieee80211_phy.c \ ieee80211_power.c ieee80211_proto.c ieee80211_scan.c ieee80211_scan_sw.c \ ieee80211_scan_sta.c ieee80211_radiotap.c ieee80211_ratectl.c \ ieee80211_ratectl_none.c ieee80211_regdomain.c \ ieee80211_ht.c ieee80211_hwmp.c ieee80211_adhoc.c ieee80211_hostap.c \ ieee80211_monitor.c ieee80211_sta.c ieee80211_wds.c ieee80211_ddb.c \ ieee80211_tdma.c ieee80211_superg.c ieee80211_vht.c SRCS+= bus_if.h device_if.h opt_ddb.h opt_inet.h opt_inet6.h \ opt_tdma.h opt_wlan.h +EXPORT_SYMS= YES + .include CWARNFLAGS.ieee80211_adhoc.c= -Wno-unused-function CWARNFLAGS.ieee80211_crypto.c= -Wno-unused-function CWARNFLAGS.ieee80211_hostap.c= -Wno-unused-function CWARNFLAGS.ieee80211_mesh.c= -Wno-unused-function CWARNFLAGS.ieee80211_sta.c= -Wno-unused-function diff --git a/sys/modules/xdr/Makefile b/sys/modules/xdr/Makefile index 536d8b88200c..e59ca185b510 100644 --- a/sys/modules/xdr/Makefile +++ b/sys/modules/xdr/Makefile @@ -1,12 +1,14 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/xdr KMOD= xdr SRCS= xdr.c \ xdr_array.c \ xdr_mbuf.c \ xdr_mem.c \ xdr_reference.c \ xdr_sizeof.c +EXPORT_SYMS= YES + .include diff --git a/sys/modules/xz/Makefile b/sys/modules/xz/Makefile index 100e75094bda..c93abcae43f3 100644 --- a/sys/modules/xz/Makefile +++ b/sys/modules/xz/Makefile @@ -1,20 +1,22 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/xz .PATH: ${SRCTOP}/sys/contrib/xz-embedded/freebsd .PATH: ${SRCTOP}/sys/contrib/xz-embedded/linux/lib/xz KMOD= xz SRCS= \ xz_crc32.c \ xz_dec_bcj.c \ xz_dec_lzma2.c \ xz_dec_stream.c \ xz_mod.c CFLAGS+= \ -I${SRCTOP}/sys/contrib/xz-embedded/freebsd \ -I${SRCTOP}/sys/contrib/xz-embedded/linux/lib/xz \ -I${SRCTOP}/sys/contrib/xz-embedded/linux/include/linux +EXPORT_SYMS= YES + .include