summaryrefslogtreecommitdiffstats
path: root/sys/conf/kern.post.mk
Commit message (Collapse)AuthorAgeFilesLines
* Using KMODOWN/KMODGRP rather than hard coding root/wheel forbz2009-01-071-5/+5
| | | | | | | | | installing the kernel allows one, like with modules, to override the default user/group and install as non-su to a temporary directory to test, create images or seed a tftp dir. Reviewed by: Andrzej Tobola <ato@iem.pw.edu.pl> MFC after: 4 weeks
* Add CTF conversion to the objects compiled from generated code.jb2008-07-051-0/+3
| | | | This allows DTrace scripts to access variables like 'ostype'.
* Add support for generating CTF data for the kernel.jb2008-05-231-0/+3
|
* Introduce a standalone shell script for embedding MFS image.raj2008-02-051-7/+1
| | | | | | | | | This allows to fix a problem with ARM kernel.bin not having the MFS image embedded: it is objcopied from the kernel.noheader temporary ELF file, which was not subject to embedding the MFS image previously. Reviewed by: imp Approved by: cognet (mentor)
* If KERNEL_EXTRA is defined, make kernel-all target depend on it.imp2007-03-231-1/+6
| | | | If KERNEL_EXTRA_INSTALL is defined, install it into ${DESTDIR}${KODIR}.
* now that MFS_IMAGE is in the FULLKERNEL section, use FULLKERNEL instead ofjmg2006-12-301-4/+4
| | | | | | KERNEL_KO, this fixes MFS_IMAGE on a debugging kernel... Submitted by: Neelkanth Natu
* MF kmod.mk 1.176: Properly handle vnode_if.h dependencies.ru2006-10-261-1/+5
| | | | Instructed by: bde
* - Remove include links only when .depend is also removed, so thatru2006-10-131-3/+4
| | | | | | | | | "make depend; make clean; make -n" works. - Preseve kernel's .depend if it already exists and its creation is interrupted. Reported/reviewed by: bde
* Don't use touch when what is really meant is :> (create an empty file, ordes2006-08-141-1/+1
| | | | | | | | truncate it if it exists) or :>> (ensure the file exists, but don't change it if it already does) Reviewed by: ru MFC after: 2 weeks
* Remove the insistance on having a device.hints. This was a seat beltimp2006-06-181-16/+0
| | | | | | | for those upgrading from 4.x -> 5.x. It is therefore no longer necessary because it is installed on 5.x and 6.x and one has to upgrade from 6.x -> current, or at the very least 5.x (although not supported, it can be made to work).
* Handle MFS_IMAGE in the ${FULLKERNEL} target, so that we can build kernelcognet2006-06-131-9/+9
| | | | with MFS root without debugging.
* add support for makeoptions MFS_IMAGE="<file>" in the config file whichjmg2006-05-121-0/+9
| | | | will automaticly populate the kernel w/ the mfs image...
* Remove .depend when doing "make cleandir".ru2006-02-071-1/+1
|
* I couldn't find any traces of what the tags1 file was supposed to do.ru2006-01-161-2/+0
|
* Teach this to create the "machine" and ${MACHINE_ARCH} (for pc98ru2005-11-301-4/+27
| | | | | | | | | only now) symbolic links in the kernel compile directory, rather than relying on config(8) to do this. (The changes to config(8) will be committed separately.) This is aimed towards making the config(8) as lightweight as possible. Idea by: bde (all bugs are mine)
* Rename the .dbg extension to .symbols, which matches "symbol-file"ru2005-10-271-6/+6
| | | | | | | gdb(1) command better, though I must admit it's confusing: these files have not only [debugging] symbols, but much more than that. Requested by: obrien
* Use ${S} to pass ${SYSDIR} to ports. This makes PORTS_MODULESru2005-10-271-5/+1
| | | | | | feature work when compiling a kernel via "make buildkernel". Noticed and tested by: nork
* Installing debug modules was a bad idea -- I bogusly assumed thatru2005-10-271-10/+12
| | | | | | | | our kernel linker will only load PT_LOAD segments, apparently not. Instead, produce .dbg objects from .debug objects, and install them together with non-debug objects, as described in objcopy(1). Original code by: obrien
* Refactor (some more) installation of kernel and module objects.ru2005-10-251-2/+4
| | | | | | | | | | | | | | | | | | | | | | Try to make everyone happy: David (to have debug kernels installed by default), Warner (to be able to override that), and myself (for actually making it all work and to be consistent). Now, if kernel was configured for debugging (through DEBUG=-g in the kernel config file or "config -g"), doing "make install" will install debug versions of kernel and module objects with their canonical names, kernel.debug -> /boot/kernel/kernel if_fxp.ko.debug -> /boot/kernel/if_fxp.ko Installing a kernel not configured for debugging, or debug kernel with INSTALL_NODEBUG variable defined, will install non-debug kernel and module objects. Also, restore the install.debug and reinstall.debug targets that are part of the existing API (they cause some additional gdb(1) scripts to be installed).
* Back out most of 1.84. It was unwise to force debug kernels to alwaysimp2005-10-241-6/+17
| | | | | | | | | | | | | | | | be installed. It should have been optional to install a non-debug one, just like it was formerly optional to install a debug one. In order to do that, most of 1.84 had to go. Instead, make installing the debug kernel the default, but create a new option INSTALL_NODEBUG for those people that have small / partitions and good source control habits. This preserves the behavior of 1.84 while allowing it to be overriden for people (like me) that do not have the time to upgrade to get a bigger / and also don't have time for stupid makefile tricks when upgrading their older system, but still want a kernel.debug around if things go south.
* For HEAD, install a kernel with debug information if DEBUG is a kernelobrien2005-09-111-17/+4
| | | | | config option. It is too easy to loose the build directory and not have symbols for kgdb to read.
* Don't build PORTS_MODULES if NO_MODULES is definedimp2005-06-091-1/+1
|
* Install ports defined in PORTS_MODULES at make reinstall time too.mux2005-06-051-2/+2
| | | | Reviewed by: imp
* Be resistant to DESTDIR being set to some unkosher value, e.g. "/".ru2005-04-281-1/+1
| | | | Noticed by: Steve Ames
* Clean all generated vnode_if* files.ru2005-04-221-2/+2
|
* Fix "make depend" to not redundantly rebuild the .depend file.ru2005-04-221-7/+2
| | | | Reviewed by: bde (I think so)
* Now that we have proper links, no need to fake up ones as part ofimp2005-04-031-3/+0
| | | | | | | depend. Now that we no longer need this hack, remove it. Forgotten by: imp Reminded by: nyan
* Don't generate major.c anymore.phk2005-03-291-6/+3
|
* Get SYSDIR set correctly for building ports.imp2005-02-251-4/+7
| | | | On install, do deinstall reinstall
* use __target in preference to targetimp2005-02-251-4/+4
|
* Back when VOP_* was introduced, we did not have new-style structphk2004-12-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | initializations but we did have lofty goals and big ideals. Adjust to more contemporary circumstances and gain type checking. Replace the entire vop_t frobbing thing with properly typed structures. The only casualty is that we can not add a new VOP_ method with a loadable module. History has not given us reason to belive this would ever be feasible in the the first place. Eliminate in toto VOCALL(), vop_t, VNODEOP_SET() etc. Give coda correct prototypes and function definitions for all vop_()s. Generate a bit more data from the vnode_if.src file: a struct vop_vector and protype typedefs for all vop methods. Add a new vop_bypass() and make vop_default be a pointer to another struct vop_vector. Remove a lot of vfs_init since vop_vector is ready to use from the compiler. Cast various vop_mumble() to void * with uppercase name, for instance VOP_PANIC, VOP_NULL etc. Implement VCALL() by making vdesc_offset the offsetof() the relevant function pointer in vop_vector. This is disgusting but since the code is generated by a script comparatively safe. The alternative for nullfs etc. would be much worse. Fix up all vnode method vectors to remove casts so they become typesafe. (The bulk of this is generated by scripts)
* Use PORTSDIR, falling back to /usr/portsimp2004-11-141-1/+1
|
* Ports aren't generally ready for parallel make.ru2004-11-121-1/+1
| | | | Pointed by: Ben Mesander
* PORTS_MODULES: a list of ports to build with this kernel.imp2004-11-111-0/+14
| | | | | | # I directly use the targets for building this, but it was suggested # to use portupgrade. I couldn't fit that into the target model, so I # punted.
* Per recent HEADSUP: Disconnect (old)vinum from the kernel build.phk2004-09-231-2/+1
| | | | | | | | | | | Users should move to the new geom_vinum implementation instead. The refcount logic which is being added to devices to enable safe module unloading and the buf/vm work also in progress would require a major rework of the (old)-vinum code to comply with the new semantics. The actual source files will not be removed until I have coordinated with the geomvinum people if they need any bits repo-copied etc.
* Pass the idea of the make(1) binary to use down to newvers.sh.ru2004-09-171-1/+1
| | | | | | | | | | | | | This is necessary so source upgrades use the correct binary. MFC after: 3 days For the record: Problem spotted by Scott Long, who mentioned that source upgrades from 4.7 to recent 5.x and 6.0 are broken. Detailed analysis shows that 4.7 has a broken make(1) binary. A breakage was fixed in RELENG_4 in make/main.c,v 1.35.2.7 by imp@, though the commit log erroneously stated "MFC 1.68" while in fact it should have been spelled as "MFC 1.67".
* We don't need GEN_M_CFILES. Fold it into GEN_CFILES definition andimp2004-06-271-7/+4
| | | | | | adjust as necessary. Suggested by: bde
* MFp4:imp2004-06-261-3/+2
| | | | | | | | Now that the devs files are marked before-depend, we can remvoe them from a few places they were explicitly mentioned (along with BEFORE_DEPEND). Noticed by: bde
* Add pccarddevs.h and usbdevs.h as depends, ala miidevs.h, in the rightimp2004-05-261-5/+5
| | | | | | | places. This should have been committed last night with the rest of my changes, but wasn't. Pointy hat to: imp
* Use ' rather than ".obrien2004-03-221-1/+1
| | | | Submitted by: ru
* Quote NM in case you need to force it to something with args.obrien2004-03-211-1/+1
| | | | Submitted by: jmallett
* Don't make having ${DESTDIR}/boot/device.hints a prerequisite tomarcel2004-03-201-1/+7
| | | | installing a kernel on ia64.
* Merged from kmod.mk,v 1.152: strip debugging symbols even when notru2004-02-131-0/+3
| | | | | configured for debugging. This saves some bytes, and produces the same "kernel" object as if it was configured for debugging.
* Attempt to clean up the emu10k1-alsa.h stuff so that config doesn'tpeter2004-02-051-9/+0
| | | | | | delete it each time its run and have it regenerated each time by make. I used a quick hackish script rather than putting it in the files file and used the before-depend rule to avoid the depend/no-depend hacks.
* The gdbinit.${MACHINE_ARCH} script may not exist.ru2004-01-211-0/+2
|
* Add emu10k1-alsa%diked.h dependancies.obrien2004-01-121-0/+9
|
* Define KERNBUILDDIR again. The RELENG_5_2 tree is stable enough thatimp2004-01-031-0/+1
| | | | | | | we can turn this back on to start to resolve the issues with the release process. Approved by: scottl
* Backed out rev.1.48. -Winline now works better so there should be nobde2003-12-301-1/+1
| | | | need for a hack to prevent bogus warnings about unused inlines.
* Garbage-collected some vestiges of objformat support (mainly ${FMT}).bde2003-12-291-3/+1
|
* Fixed some style bugs (manly a few English usage errors in comments andbde2003-12-291-15/+15
| | | | many unusual indentations for continued lines in code).
OpenPOWER on IntegriCloud