summaryrefslogtreecommitdiffstats
path: root/sys/conf/kern.post.mk
Commit message (Collapse)AuthorAgeFilesLines
* 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).
* gdbinit target: Remove comment lines from dot.gdbinit. This allows us togrog2003-12-291-2/+3
| | | | put dire warnings in the original and not find them in the installed version.
* Turns out that building modules with the kernel opt files isimp2003-11-251-1/+0
| | | | | | | | | | | uncovering some interesting problems. Be conservative and effecitvely disable this by default. Interested parties may still define KERNBUILDDIR by hand to achive the same effect. I plan on referting this change after 5.2 is released, or sooner if the issues with building releases are resolved and re@ approves. Approved by: re@ (scottl, marcel)
* Moved $FreeBSD$ to the beginning of the file.bde2003-11-141-6/+5
| | | | Improved wording in a nearby comment.
* Include opt_global.h in the modules build, when building from a normalgreen2003-11-141-0/+1
| | | | | | | | kernel build. This makes it possible for me not to get pissed off that random.ko crashes the system trying to rdtsc() when the i386/cpu.h support code decides it's okay to call that op when neither I386_CPU or I486_CPU is defined. I guess it also makes WITNESS/INVARIANTS defines get picked up by the modules.
* Add a "-f" flag for asf(8) which performs a search to find the each modulegreen2003-11-041-1/+1
| | | | | | | | | | | no matter where in the directory structure it may be. Use this and the "-k" flag in the generated gdbinit files so that the "getsyms" function in gdb requires no user intervention to run and will find every module if they're in the kernel build's module directory. This is still quite useful for cases where gdb knows that the path for some modules is /boot/kernel and others are in the object directory for /usr/src/sys/$ARCH/compile/kernel. Approved by: grog
* Fix logic in Makefile.i386,v 1.249: only back up ${DESTDIR}${KODIR}ru2003-08-071-4/+2
| | | | | to ${DESTDIR}${KODIR}.old if we have booted from ${DESTDIR}${KODIR}, and always keep kern.bootfile in a good shape.
* Don't complain about inlines for genassymphk2003-07-221-1/+1
|
* Protect against .depend file somewhere else in the .PATH.ru2003-06-221-37/+9
| | | | Also consolidate building rules for special files.
* Some glue to allow lint(1) to work on the kernel. This is notmarkm2003-06-141-2/+23
| | | | | complete without some config(8) work. Config(8) needs to provide some ${NORMAL_LINT} rules to make foo.ln files.
OpenPOWER on IntegriCloud