summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.kmod.mk
Commit message (Collapse)AuthorAgeFilesLines
* Fix comma splice, can't ambiguity and quoting.imp2012-02-161-1/+1
| | | | | Submitted by: bde@ MFC after: 2 weeks
* Wordsmith the can't find kernel error message, and suggest whichimp2012-02-151-1/+1
| | | | variable to set to override.
* ata module additions now nest ata modules one deeper than any prior module.imp2008-10-091-1/+1
| | | | Increase heuristic used to find them by one.
* Fixed style bugs in previous commit (151 characters of trailing whitespace).bde2004-06-211-1/+1
|
* - Missing trailing slash for a kern directory check.pjd2004-06-211-3/+5
| | | | | | | - Check in both places if ${_dir}/conf/kmod.mk exists. - Style fixes (lines too long). Submitted by: bde
* Check if ${_dir}/kern exists as well, because if it doesn't existspjd2004-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/.
* Bring in the WARNS directive from NetBSD, localized in a new bsd.sys.mkkris2001-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
* Do not check for existence of ${_dir}/kern/ , because for modules that setjasone2000-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.
* Add ${.CURDIR}/../../../.. to the list of places we look for theimp2000-07-071-1/+1
| | | | | kernel. The new moudles/sound/drivers/foo pushes us down one more level.
* Sigh. Use the correct path to bsd.conf.mk. It's times like this that Ipeter2000-05-271-1/+1
| | | | regret giving up coffee.
* Revive a skeleton for bsd.kmod.mk (which will be in the make search path)peter2000-05-271-0/+13
| | | | that merely locates and includes sys/conf/kmod.mk.
* Repocopied to src/sys/conf/kmod.mkpeter2000-05-041-301/+0
|
* Remove KMODDEPS support. All our existing dependencies are specifiedpeter2000-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.
* Add support for compiling kernel modules outside of the tree. If youimp2000-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
* Use makeobjops.pl instead of makedevops.pl.dfr2000-04-081-2/+2
|
* Allow the calling Makefile to specify a list of device interfaces insteaddfr2000-04-051-1/+5
| | | | of relying on the default list provided here.
* Use an intermediate file containing the module binary before convertingpeter2000-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.
* Add ${DEBUG_FLAGS} to CFLAGS in bsd.kmod.mk, not in scattered modulebde2000-01-281-0/+2
| | | | | makefiles. Bad examples in fxp/Makefile keep getting copied to new makefiles.
* oops, nearly forgot to commit the addition of ppbus_if.m to the list.peter2000-01-231-2/+3
|
* Add "-I@/../include" and/or "-I${DESTDIR}/usr/include" to CFLAGS,bde2000-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.
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-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.
* Update vnode_if.sh location. This was deliberately left a while afterpeter1999-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.
* Use the -c and -h args of vnode_if.sh to generate only the .h file thatpeter1999-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.
* Add two modules for the pccard work: dev/pccard/card_if.m andimp1999-11-281-2/+2
| | | | | | dev/pccard/power_if.m. XXX There has got to be a better way to deal with this.
* Build and clean device interface files (foo_if.[ch]) and empty optionsbde1999-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.
* Add .ORDER which is needed for the previous commit to work with -jN.marcel1999-11-231-0/+1
| | | | Pointed out by: bde
* vnode_if.sh makes both vnode_if.c and vnode_if.h. Add vnode_if.c tomarcel1999-11-231-1/+1
| | | | | the LHS of the rule for vnode_if.h. This solves a "dunno how to make" error.
* 1) s/mod(un)?load/kld$1load/n_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
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add variable INSTALLFLAGS_EDIT used to remove arbitrary INSTALLFLAGS.hoek1999-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.
* s/lkm(4)/kld(4)/peter1999-04-231-2/+2
|
* Clean out most of the LKM stuff, the build support left a little while ago.peter1999-04-201-85/+9
|
* Removed all traces of LN_FLAGS. It was only used to produce a linkbde1999-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
* Use a name less likely to collide with source files without an obj dir.peter1998-11-111-4/+4
|
* Do not add ${KMOD} to the CLEANFILES list. We want ${PROG} which is eitherpeter1998-11-051-2/+2
| | | | | ${KMOD}.o or ${KMOD}.ko. Otherwise we can delete the source shell script for linux, joy and ibcs2.
* Update the kld gluepeter1998-10-161-1/+32
| | | | Pre-Approved by: jkh
* Support encapsulating ELF linker sets for KLD modules via gensetdefs.peter1998-10-141-3/+36
| | | | | Support name based dependencies at build time. This is a hack. These only affect KLD modules.
* Define KLD_MODULE if building a KLD module.msmith1998-10-021-1/+4
| | | | | Forgot to mention that the previous commit was Submitted by: Doug Rabson <dfr@freebsd.org>
* Changes to support building of KLD modules. This includes the possiblymsmith1998-10-021-1/+11
| | | | to be removed KMODDEPS define.
* Add -aout to CFLAGS and LDFLAGS in bsd.kmod.mk, not inbde1998-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.
* Make ../Makefile.inc handling more consistant to prevent multiple includespeter1998-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).
* Honor NOSHARED for tools. All tools should be built static forbde1998-07-291-5/+9
| | | | | | | | | | | `make world' to avoid problems with picking up (new) target or (stale) host shared libraries. Don't honor -static in LDFLAGS for linking LKMs. LDFLAGS is not actually for ld, but we use it anyway, and must prevent -static being misinterpreted as -s. Don't hide any of the link steps.
* Fixed `make depend', which I broke here about a month ago by movingbde1998-06-091-2/+3
| | | | | | the null default for `depend' from bsd.dep.mk to bsd.obj.mk. bsd.kmod.mk included these files in a bad order, so it picked up the null default.
* Fixed CLEANFILES. Some temporary files were missing.bde1998-03-191-2/+2
|
* Introduce the 'regress' target.eivind1998-03-121-1/+7
| | | | Silently approved by: -hackers, -current
* Removed support for now-unused FreeBSD misfeature DPSRCS.bde1998-03-061-3/+2
|
* Fixed dependencies of ${PROG} on ${DPSRCS} and `all' on ${_ILINKS}.bde1998-03-061-6/+9
| | | | | | | There were various races for `make -j'. Half-built versions of vnode_if.h were sometimes #included... Removed a null dependency.
* Removed default tags target. PROG is always defined here, so ifdefingbde1998-02-201-20/+2
| | | | | it was bogus, and without the ifdef the default is identical to the central one in bsd.dep.mk.
* Restrict the include search path using -nostdinc -I- in $(CFLAGS} asbde1998-02-011-3/+12
| | | | | | in kernel Makefiles. Nothing in /usr/include is used (provided relative paths for sys/* and <machine> can be found), so there is no need for the -I/usr/include kludge as in kernel Makefiles.
* Generate symlinks to the "sys" and <machine> directories and putbde1998-01-261-12/+37
| | | | | | them in the include path. This fixes recent breakage of the syscons LKMs and general brokenness of the include paths (headers under /usr/include were used in many cases).
OpenPOWER on IntegriCloud