summaryrefslogtreecommitdiffstats
path: root/sys/conf/kmod.mk
Commit message (Collapse)AuthorAgeFilesLines
* While make has been fixed to grok this construct, the new make hasn'timp2003-10-031-2/+2
| | | | | | | | | been widely deploy and that's causing us a lot of pain. Back out the last commit for a few weeks so that we can lessen the support load in current@ asking why they can't build kernels anymore. Instructions in UPDATING have been updated, but this should be more effective. Revert the reverting: November 1st, 2003
* Revert rev. 1.86, I've fixed make(1) (make/dir.c,v 1.32).ru2003-10-021-1/+1
| | | | PR: bin/34062
* Hook-up the uart(4) driver to the build. For a detailed descriptionmarcel2003-09-061-1/+1
| | | | | | | | | | | | | | | of what uart(4) is and/or is not see the initial commit log of one of the files in sys/dev/uart (or see share/man/man4/uart.4). Note that currently pc98 shares the MD file with i386. This needs to change when pc98 support is fleshed-out to properly support the various UARTs. A good example is sparc64 in this respect. We build uart(4) as a module on all platforms. This may break the ppc port. That depends on whether they do actually build modules. To use uart(4) on alpha, one must use the NO_SIO option.
* Now that the pci include file location migration has been completed,imp2003-08-221-1/+1
| | | | | | remove the -I$S/dev and -I@/dev which were there only for pci. # If I've broken something, please let me know.
* Change the inline limit switch to something that exists in gcc-3.2.peter2003-07-261-2/+2
| | | | Unfortunately, it has different units.
* Provide a knob for raising the inline instruction estimate threshold andpeter2003-07-231-0/+3
| | | | | | | set an initial value. This is aimed at getting us closer to being able to turn -Werror back on and we can adjust the settings later on. Yes, we could turn off -Wno-inline instead, but that would hide the effect of gcc's bogo-estimator ignoring inline (either rightly or wrongly).
* exists() is too aggressive when searching for files without a full path.ru2003-03-031-1/+1
| | | | Inspired by: bsd.prog.mk,v 1.105
* Initiate the de-orbit burn sequence for <bsd.kern.mk>.ru2003-02-281-1/+1
| | | | | | | | | Always use sys/conf/kern.mk when building kernel/modules. <bsd.kern.mk> is only preserved for sys/boot/pc98/boot2 for now, but this will be fixed. If there are other users of <bsd.kern.mk>, please let me know. Reminded by: bde
* Add CanBe power management controller support.nyan2003-02-031-1/+1
| | | | Submitted by: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
* Run kldxref on sparc64, it works now.jake2003-01-211-1/+1
|
* Remove miidevs.h and generate it from miidevs at compile time.obrien2003-01-191-0/+11
| | | | The devlist2h.awk tool to do this has been repocopied to sys/tools/.
* Don't run kldxref when installing modules on sparc64. kldxref and the wholejake2002-12-131-1/+1
| | | | | | | module dependency system rely on linker behaviour that is machine dependent and not part of the elf spec, and only work by accident on other platforms. Approved by: re
* In the !DEBUG case, we were passing foo.ko two times on themux2002-11-061-1/+5
| | | | | | rm -f command line when doing a make clean. Fix this. Reviewed by: ru
* add crypto interface to the MFILES listsam2002-10-041-1/+2
|
* Initiate deorbit burn for the i386-only a.out related support. Moves arepeter2002-09-171-5/+0
| | | | | | | | | | | | | | | under way to move the remnants of the a.out toolchain to ports. As the comment in src/Makefile said, this stuff is deprecated and one should not expect this to remain beyond 4.0-REL. It has already lasted WAY beyond that. Notable exceptions: gcc - I have not touched the a.out generation stuff there. ldd/ldconfig - still have some code to interface with a.out rtld. old as/ld/etc - I have not removed these yet, pending their move to ports. some includes - necessary for ldd/ldconfig for now. Tested on: i386 (extensively), alpha
* Drop support for COPY, -c has been the default mode of install(1)ru2002-07-291-2/+2
| | | | | | for a long time now. Approved by: bde
* Handle installation of links through bsd.links.mk.ru2002-07-171-54/+17
| | | | Removed comments that no longer directly apply here.
* Do not override the standard `distribute' target that is currentlyru2002-07-111-10/+0
| | | | | | | | | available from bsd.obj.mk. The native version was identical (and pretty much unused except in the -DMODULES_WITH_WORLD case, which it is not for "make release") except that the "bin" -> "base" change of the default DISTRIBUTION name did not propagate here.
* Use OBJDIR instead of CURDIR. This unbreaks loading modules throughn_hibma2002-06-171-1/+1
| | | | | | | | | | | | | 'make load' if an object dir was, like it is used in /sys/modules. I.e. cd /sys/modules/umass make obj make make load works again without having to install the module. If no objdir was used the module in the current directory is used.
* Check that kldxref(8) exists before running it.ru2002-05-141-5/+4
|
* We don't need no stinkin' echos here.imp2002-05-011-3/+3
| | | | Instead, don't run kldxref if you don't have one on your system.
* Use makeobjops.awk rather than makeobjops.pl.obrien2002-05-011-2/+2
| | | | (with big thanks to Oliver Fromme <olli@fromme.com>)
* Catch any stray KMODDEPS entries to make sure they do not keep turning up.peter2002-05-011-0/+4
|
* Barrow something from the `nmap' port to help the ENOCLUE people upgradingobrien2002-04-291-0/+2
| | | | from releng4 and are not able to properly read make(1) output.
* The install.debug and reinstall.debug targets are needed solelyru2002-04-241-2/+8
| | | | | | | | | | to build kernel and kernel modules so stop supporting them in bsd.subdir.mk and reimplement them in kern.post.mk and kmod.mk as special versions of the install and reinstall targets, and only define them if DEBUG is also defined (when debug versions are really built). Prompted by: bde
* Merge bsd.obj.mk's version of the _SUBDIR target with bsd.subdir.mk.ru2002-04-231-12/+5
| | | | | | | | | | | | | | | | Ensure all standard targets honor SUBDIR. Now `make obj' descends into SUBDIRs even if NOOBJ is set (some descendants may still need an object directory, but we do not have such precedents). Now `make install' in non-bsd.subdir.mk makefiles runs `afterinstall' target _after_ `install' in SUBDIRs, like we do in bsd.subdir.mk. Nothing depended on the wrong order anyway. Fixed `distribute' targets (except for the bsd.subdir.mk version) so that they do not depend on _SUBDIR; `distribute' calls `install' which already depends on _SUBDIR. De-standardize `maninstall', otherwise manpages would be installed twice. (To be revised later.)
* Back out remnants of revision 1.97: we don't need TARGET_ARCH here.ru2002-04-221-2/+0
|
* Use standard bsd.init.mk prologue.ru2002-04-221-7/+1
|
* lint the previous lint commit.ru2002-03-181-1/+1
| | | | Reviewed by: markm
* Allow "make lint" to mostly work. Our sources are very unclean WRTmarkm2002-03-171-0/+3
| | | | | | | lint, so this is turned off by default. Setting WANT_LINT will turn on generation of lint libraries for /usr/libdata/lint/*.ln. Reviewd by: silence in -audit.
* Use vnode_if.awk rather than vnode_if.plobrien2002-03-011-2/+3
|
* Drop <bsd.man.mk> support from <bsd.kmod.mk>.ru2002-01-111-16/+2
| | | | Not objected to by: -current
* Reverse the sense of EXPORT_SYMS. If EXPORT_SYMS is notmsmith2002-01-111-4/+7
| | | | | | | | | | defined, no symbols are exported from the module. This is the typical configuration for most device drivers and standalone modules; only infrastructure modules or those with special requirements typically need to export symbols. Don't print the objcopy commands as they are run when converting symbols; they're bulky and annoying in many cases.
* Eliminate the use of commons in the kernel and modules,msmith2002-01-101-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | simplifying the module linking process and eliminating the risks associated with doubly-defined variables. Cases where commons were legitimately used (detection of compiled-in subsystems) have been converted to use sysinits, and any new code should use this or an equivalent practice as a matter of course. Modules can override this behaviour by substituting -fno-common out of ${CFLAGS} in cases where commons are necessary (eg. third-party object modules). Commons will be resolved and allocated space when the kld is linked as part of the module build process, so they will not pose a risk to the kernel or other modules. Provide a mechanism for controlling the export of symbols from the module namespace. The EXPORT_SYMS variable may be set in the Makefile to NO (export no symbols), a list of symbols to export, or the name of a file containing a newline-seperated list of symbols to be exported. Non-exported symbols are converted to local symbols. If EXPORT_SYMS is not set, all global symbols are currently exported. This behaviour is expected to change (to exporting no symbols) once modules have been converted. Reviewed by: peter (in principle) Obtained from: green (kmod_syms.awk)
* Support the "install.debug" and "reinstall.debug" targets for kernel modules.des2001-10-271-0/+4
| | | | | | | | | Small tweaks to kldxref may be necessary to avoid the surprising (but harm- less) behaviour of 'kldload foo' loading foo.ko.debug instead of foo.ko if it is present in the kernel directory. Approved by: a week of silence on -arch MFC after: 2 weeks
* On second thoughts, make kldxref failures non-fatal.peter2001-09-111-1/+1
|
* Implement the long-awaited module->file cache database. A userlandpeter2001-09-111-0/+3
| | | | | | | tool (kldxref(8)) keeps a cache of what modules and versions are inside what .ko files. I have tested this on both Alpha and i386. Submitted by: bp
* In the KLD "load" make target, don't load using the "absolute" path ofgreen2001-08-081-1/+1
| | | | | | | | "./foo.ko". Use "/full/path/foo.ko" instead so that when the path is reported as being an absolute path to the "shared library", at least it's not really a relative path. Obtained from: LOMAC/FreeBSD project
* When building a debugging kernel with modules, build modules withsheldonh2001-08-021-2/+11
| | | | | | debugging support as well. Debugging module support is handled identically to kernel debugging support, right down to poor choice of make variable names.
* Make sure that installing a module complains if the target modulesroam2001-07-181-1/+1
| | | | | | | | | | | | | | | directory does not exist, instead of creating/overwriting a file with the name of the (expected) directory. Yes, this deviates a bit from nearly all other install targets in the tree, but let's face it, removing a modules directory is not all that uncommon a mistake, and finding a file with the contents of the last module installed is a baaad surprise at boot time.. PR: 26317 Submitted by: "T. William Wells" <bill@twwells.com> (the PR) Gregory Bond <gnb@itga.com.au> (the actual patch) Reviewed by: silence on -arch and -audit for the last 10 days MFC after: 2 weeks
* With this commit, I hereby pronounce gensetdefs past its use-by date.peter2001-06-131-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace the a.out emulation of 'struct linker_set' with something a little more flexible. <sys/linker_set.h> now provides macros for accessing elements and completely hides the implementation. The linker_set.h macros have been on the back burner in various forms since 1998 and has ideas and code from Mike Smith (SET_FOREACH()), John Polstra (ELF clue) and myself (cleaned up API and the conversion of the rest of the kernel to use it). The macros declare a strongly typed set. They return elements with the type that you declare the set with, rather than a generic void *. For ELF, we use the magic ld symbols (__start_<setname> and __stop_<setname>). Thanks to Richard Henderson <rth@redhat.com> for the trick about how to force ld to provide them for kld's. For a.out, we use the old linker_set struct. NOTE: the item lists are no longer null terminated. This is why the code impact is high in certain areas. The runtime linker has a new method to find the linker set boundaries depending on which backend format is in use. linker sets are still module/kld unfriendly and should never be used for anything that may be modular one day. Reviewed by: eivind
* Don't install KO's with the "schg" flag.obrien2001-04-251-1/+1
| | | | | | | We are way too inconsistent with our setting of the "schg" flag, and in our default install, it doesn't really offer any additional security. Reviewed by: arch@
* Add function prototypes and base module for kernel side iconv library.bp2001-04-091-1/+3
| | | | | | | | | Add simple "xlat" converter which performs 8to8 table based conversion. Unicode converter will be added in the near future. Reviewed by: silence on arch@ Files placement reviewed by: bde Obtained from: smbfs
* Reflect recent bsd.man.mk changes here, but do not assign theru2001-03-271-5/+8
| | | | | default MAN=${KMOD}.4 value for now. This feature was broken before, and enabling it now would cause 92 Makefiles to fail.
* Cleaner way of adding -fschg (ie, correctly implement).obrien2001-03-241-2/+1
| | | | | | | "INSTALLFLAGS" belongs to individual Makefiles. "_INSTALLFLAGS" is for global additions. Submitted by: bde
* Move beforedepend: outside of the loop.imp2001-03-051-2/+3
| | | | | | # Note: we should remove the rm kludge soon. It fails in many cases. Submitted by: bde
* Set TARGET_ARCH and install files -fschg as we do the kernel module.obrien2001-03-041-0/+3
|
* Add pci/agp_if.m to the MFILES list so that we can auto depend on agp_if.hpeter2001-02-271-1/+1
|
* If the symbolic links @ or machine exist, do not depend on them.imp2001-02-231-3/+12
| | | | | | | This fixes the problem where if src/sys or src/sys/$MACHINE_ARCH/include changed at all, all the modules would be rebuilt. Reviewed by: bde
* This time really fix the machine/lock.h thing. This time don't fool makepeter2001-02-201-1/+4
| | | | | | into thinking that the way to build a .o file is to "rm -f .depend". Suggested by: imp
OpenPOWER on IntegriCloud