aboutsummaryrefslogtreecommitdiff
path: root/share/mk/bsd.kmod.mk
Commit message (Collapse)AuthorAgeFilesLines
* Introduce bsd.sysdir.mk to consolidate looking for the kernel.Warner Losh2019-11-211-17/+1
| | | | | | | | Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D22144 Notes: svn path=/head/; revision=354968
* Use known SRCTOP if possible to determine SYSDIR.Bryan Drewery2018-04-121-1/+2
| | | | | | | | Suggested by: sjg Sponsored by: Dell EMC Notes: svn path=/head/; revision=332455
* Fix using wrong SYSDIR after r331683.Bryan Drewery2018-04-121-1/+1
| | | | | | | | | | | | | | | This was inadvertently overriding the first found SYSDIR with the last of /usr/src which could result in the wrong headers being used if not building from /usr/src. SYSDIR?= is not used here to avoid evaluating the exists() when unneeded. Reported by: rgrimes, sjg, Mark Millard Pointyhat to: bdrewery Sponsored by: Dell EMC Notes: svn path=/head/; revision=332453
* Avoid looping if SYSDIR already known.Bryan Drewery2018-03-281-1/+3
| | | | | | | Sponsored by: Dell EMC Notes: svn path=/head/; revision=331683
* Avoid upwards directory walk in kernel build for finding known SYSDIR.Bryan Drewery2018-03-281-0/+2
| | | | | | | Sponsored by: Dell EMC Notes: svn path=/head/; revision=331682
* WITH_META_MODE: Resolve SYSDIR to avoid changed build commands.Bryan Drewery2016-05-311-1/+1
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=301084
* Eliminate bsd.sys.mk on purpose. Do not put it back.Warner Losh2015-01-011-2/+0
| | | | Notes: svn path=/head/; revision=276494
* Unbreak the build for some modules that depend on -std flags to be passedEnji Cooper2015-01-011-0/+2
| | | | | | | | | | | | through via CFLAGS, as noted by Jenkins when building sparc64 by re-adding bsd.sys.mk to bsd.kmod.mk: https://jenkins.freebsd.org/job/FreeBSD_HEAD_sparc64/225/changes Tested with: % cd /sys/modules/bce; make obj; make depend; make all Notes: svn path=/head/; revision=276493
* Fix module builds on arm (and maybe others) by turning off a wholeWarner Losh2015-01-011-2/+0
| | | | | | | | | | | | | raft of new warnings that appear to be on by default in clang 3.5.0. Fix RPI-B build issues with new clang not liking the ability to pass arbitrary flags to as, since some flags are more arbitrary (and thus verboten) than others. These warnings should be actually fixed in the code, but this is a band-aide to get things (almost) building again. Notes: svn path=/head/; revision=276488
* Fix comma splice, can't ambiguity and quoting.Warner Losh2012-02-161-1/+1
| | | | | | | | Submitted by: bde@ MFC after: 2 weeks Notes: svn path=/head/; revision=231834
* Wordsmith the can't find kernel error message, and suggest whichWarner Losh2012-02-151-1/+1
| | | | | | | variable to set to override. Notes: svn path=/head/; revision=231780
* ata module additions now nest ata modules one deeper than any prior module.Warner Losh2008-10-091-1/+1
| | | | | | | Increase heuristic used to find them by one. Notes: svn path=/head/; revision=183736
* Fixed style bugs in previous commit (151 characters of trailing whitespace).Bruce Evans2004-06-211-1/+1
| | | | Notes: svn path=/head/; revision=130854
* - Missing trailing slash for a kern directory check.Pawel Jakub Dawidek2004-06-211-3/+5
| | | | | | | | | | - Check in both places if ${_dir}/conf/kmod.mk exists. - Style fixes (lines too long). Submitted by: bde Notes: svn path=/head/; revision=130835
* Check if ${_dir}/kern exists as well, because if it doesn't existsPawel Jakub Dawidek2004-06-181-1/+1
| | | | | | | | | | we will fail later and we can miss good kernel source tree directory. I found this trying to compile kld module and it finds 'conf/kmod.mk' in '../..', but it fails later, because there is no 'kern' directory, but there is valid kernel source tree still in /usr/src/sys/. Notes: svn path=/head/; revision=130693
* Bring in the WARNS directive from NetBSD, localized in a new bsd.sys.mkKris Kennaway2001-05-191-0/+2
| | | | | | | | | | | | to avoid polluting sys.mk. This directive controls the addition of compiler warning flags to CFLAGS in a relatively compiler-neutral manner. The idea is that WARNS can be set in Makefile.inc or in individual Makefiles as they become clean, to prevent the introduction of new warnings in the code. -Werror is added by default Notes: svn path=/head/; revision=76861
* Do not check for existence of ${_dir}/kern/ , because for modules that setJason Evans2000-12-081-2/+2
| | | | | | | | | | | | | | | | | | .PATH to ${.CURDIR}/[...]/kern , the "exists" expression will fail for the form exists(${.CURDIR}/[...]/kern/). This appears to be happening because make is searching for the argument to "exists" by using .PATH rather than a relative search, because .PATH and the argument match at the beginning. Additionally, make appears to consider a path that starts with ${.CURDIR} as relative, even though it expands to an absolute path. The reason that most people aren't seeing this problem is that the absolute paths of /usr/src/sys and /sys are also searched, so as long as the kernel source can be found in at least one of those places, no problems surface. This problem was inadvertently introduced on 1 December 2000, with the addition of the sysvipc modules. Notes: svn path=/head/; revision=69775
* Add ${.CURDIR}/../../../.. to the list of places we look for theWarner Losh2000-07-071-1/+1
| | | | | | | | kernel. The new moudles/sound/drivers/foo pushes us down one more level. Notes: svn path=/head/; revision=62748
* Sigh. Use the correct path to bsd.conf.mk. It's times like this that IPeter Wemm2000-05-271-1/+1
| | | | | | | regret giving up coffee. Notes: svn path=/head/; revision=60965
* Revive a skeleton for bsd.kmod.mk (which will be in the make search path)Peter Wemm2000-05-271-0/+13
| | | | | | | that merely locates and includes sys/conf/kmod.mk. Notes: svn path=/head/; revision=60963
* Repocopied to src/sys/conf/kmod.mkPeter Wemm2000-05-041-301/+0
| | | | Notes: svn path=/head/; revision=59952
* Remove KMODDEPS support. All our existing dependencies are specifiedPeter Wemm2000-05-011-18/+6
| | | | | | | | | | via the MODULE_VERSION() and MODULE_DEPEND() macros that both the loader and kld system know how to deal with. The old DT_NEEDED tag is still supported by the loader (and will remain supported for a while) - but the kernel side presently doesn't know how to deal with DT_NEEDED. Notes: svn path=/head/; revision=59858
* Add support for compiling kernel modules outside of the tree. If youWarner Losh2000-04-081-30/+19
| | | | | | | | | | | | | | | | | | do not have the kernel you wish to compile against in either /usr/src/sys or /sys, then you will need to set SYSDIR to point to the sys directory of the source tree that contians the source. Also, minor tweaks to the load/unload targets from Bruce. I've had this through several make worlds, as well as using it on a daily basis for the past couple of weeks to build modules needed for testing at Timing Solutions. Reviewed and revised by: bde Work sponsored by: Timing Solutions Notes: svn path=/head/; revision=59097
* Use makeobjops.pl instead of makedevops.pl.Doug Rabson2000-04-081-2/+2
| | | | Notes: svn path=/head/; revision=59094
* Allow the calling Makefile to specify a list of device interfaces insteadDoug Rabson2000-04-051-1/+5
| | | | | | | of relying on the default list provided here. Notes: svn path=/head/; revision=59032
* Use an intermediate file containing the module binary before convertingPeter Wemm2000-03-201-4/+7
| | | | | | | | | it into a ``shared'' .ko file. This intermediate file can be directly linked into a static kernel. This isn't all that useful yet but will become much more interesting shortly. Notes: svn path=/head/; revision=58321
* Add ${DEBUG_FLAGS} to CFLAGS in bsd.kmod.mk, not in scattered moduleBruce Evans2000-01-281-0/+2
| | | | | | | | makefiles. Bad examples in fxp/Makefile keep getting copied to new makefiles. Notes: svn path=/head/; revision=56735
* oops, nearly forgot to commit the addition of ppbus_if.m to the list.Peter Wemm2000-01-231-2/+3
| | | | Notes: svn path=/head/; revision=56464
* Add "-I@/../include" and/or "-I${DESTDIR}/usr/include" to CFLAGS,Bruce Evans2000-01-081-3/+12
| | | | | | | | | | | | | essentially as in kernel makefiles, so that module sources can include <stddef.h> and other standard headers. Only add the second path when the first path can't be found, instead of when DESTDIR is defined. Adding it used to be just an obfuscation. Use "${.OBJDIR}" instyead of "." in -I paths. Using "${.OBJDIR}" just gave more verbose command lines and depend files. Notes: svn path=/head/; revision=55624
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-291-1/+1
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55206
* Update vnode_if.sh location. This was deliberately left a while afterPeter Wemm1999-12-221-2/+2
| | | | | | | | | the repo copy as the kernel src/sys/modules stuff uses /usr/share/mk/bsd.kmod.mk which often gets out of sync with the kernel source. Notes: svn path=/head/; revision=54978
* Use the -c and -h args of vnode_if.sh to generate only the .h file thatPeter Wemm1999-12-121-9/+7
| | | | | | | | | | | | we use. The .c half is statically compiled into the kernel. It's kinda silly to generate a .h file on the fly that has inlines to call the .c stuff when the .c code is fixed. Also, zap the special treatment for VFS_KLD modules. This treatment applies to lots of things, not just VFS's. Notes: svn path=/head/; revision=54501
* Add two modules for the pccard work: dev/pccard/card_if.m andWarner Losh1999-11-281-2/+2
| | | | | | | | | dev/pccard/power_if.m. XXX There has got to be a better way to deal with this. Notes: svn path=/head/; revision=53848
* Build and clean device interface files (foo_if.[ch]) and empty optionsBruce Evans1999-11-281-4/+33
| | | | | | | | | | | | | files (opt_*.h) automatically (if they are in ${SRCS}). Clean vnode_if.[ch] automatically (if one of them is in ${SRCS}, not just if VFS_KLD is defined). There are some complications to avoid using the "@" symlink before it is built. Notes: svn path=/head/; revision=53843
* Add .ORDER which is needed for the previous commit to work with -jN.Marcel Moolenaar1999-11-231-0/+1
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=53638
* vnode_if.sh makes both vnode_if.c and vnode_if.h. Add vnode_if.c toMarcel Moolenaar1999-11-231-1/+1
| | | | | | | | the LHS of the rule for vnode_if.h. This solves a "dunno how to make" error. Notes: svn path=/head/; revision=53628
* 1) s/mod(un)?load/kld$1load/Nick Hibma1999-09-061-21/+21
| | | | | | | | | | | 2) s/MODLOAD/KMODLOAD/ to be consistent with the rest of the variables (KMOD, KMODOWN, KMODGRP, etc) and definition of MODLOAD/UNLOAD in the Makefile of the ATAPI module 3) textual fixups Notes: svn path=/head/; revision=51034
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Add variable INSTALLFLAGS_EDIT used to remove arbitrary INSTALLFLAGS.Tim Vanderhoek1999-07-311-2/+7
| | | | | | | | | | | | | | | | | | Specifically intended for removing -fschg ("INSTALLFLAGS_EDIT=:S/schg/uchg/") this makes the NOFSCHG flag redundant. NOFSCHG will still be honoured by bsd.lib.mk but is valid for buildworld only. NOFSCHG is still implemented in the old way (ie. _not_ ".if NOFSCHG then { INSTALLFLAGS_EDIT+=:S/schg/,/ }" to emphasize the fact that NOFSCHG is only supported in a limited fashion and for buildworld. The interface and implementation are such that future use of flags such as sappnd can also be easily removed or altered (perhaps to uappnd). This commit brought to you by the letters B, D, and E, and the numbers six, one, thirteen, and three. Notes: svn path=/head/; revision=49328
* s/lkm(4)/kld(4)/Peter Wemm1999-04-231-2/+2
| | | | Notes: svn path=/head/; revision=45961
* Clean out most of the LKM stuff, the build support left a little while ago.Peter Wemm1999-04-201-85/+9
| | | | Notes: svn path=/head/; revision=45873
* Removed all traces of LN_FLAGS. It was only used to produce a linkBruce Evans1999-03-231-5/+16
| | | | | | | | | | | | | | | | | | | /usr/sbin/sysctl -> ${DESTDIR}/sbin/sysctl in some versions of 2.2, and this link was broken if DESTDIR was set. Added a SYMLINKS macro. This works the same as LINKS, except it creates symlinks and the linked-to pathname may be relative. This is more flexible than LN_FLAGS, since it supports installing symlinks independently of hard links. Use `ln -f[s] ...' instead of `rm -f ...; ln [-s] ...' for LINKS and SYMLINKS. This is equivalent if the target is neither a directory nor a symlink to a directory. PR: 8279 Notes: svn path=/head/; revision=44946
* Use a name less likely to collide with source files without an obj dir.Peter Wemm1998-11-111-4/+4
| | | | Notes: svn path=/head/; revision=41083
* Do not add ${KMOD} to the CLEANFILES list. We want ${PROG} which is eitherPeter Wemm1998-11-051-2/+2
| | | | | | | | ${KMOD}.o or ${KMOD}.ko. Otherwise we can delete the source shell script for linux, joy and ibcs2. Notes: svn path=/head/; revision=40919
* Update the kld gluePeter Wemm1998-10-161-1/+32
| | | | | | | Pre-Approved by: jkh Notes: svn path=/head/; revision=40433
* Support encapsulating ELF linker sets for KLD modules via gensetdefs.Peter Wemm1998-10-141-3/+36
| | | | | | | | Support name based dependencies at build time. This is a hack. These only affect KLD modules. Notes: svn path=/head/; revision=40335
* Define KLD_MODULE if building a KLD module.Mike Smith1998-10-021-1/+4
| | | | | | | | Forgot to mention that the previous commit was Submitted by: Doug Rabson <dfr@freebsd.org> Notes: svn path=/head/; revision=39883
* Changes to support building of KLD modules. This includes the possiblyMike Smith1998-10-021-1/+11
| | | | | | | to be removed KMODDEPS define. Notes: svn path=/head/; revision=39882
* Add -aout to CFLAGS and LDFLAGS in bsd.kmod.mk, not inBruce Evans1998-09-021-1/+5
| | | | | | | | | src/lkm/Makefile.inc. This fixes broken builds of the syscons LKMs when OBJFORMAT=elf. Removed src/lkm/Makefile.inc since it became empty and is worse than useless. Notes: svn path=/head/; revision=38749
* Make ../Makefile.inc handling more consistant to prevent multiple includesPeter Wemm1998-08-081-1/+4
| | | | | | | | | when certain .mk files include other .mk files. This will remove the need for multiple include protection in some other makefiles around the tree (and helps some elf conditionals). Notes: svn path=/head/; revision=38183