summaryrefslogtreecommitdiffstats
path: root/usr.sbin/crunch/crunchgen
Commit message (Collapse)AuthorAgeFilesLines
* crunchgen: Permit use of alternative linkers.pfg2013-02-051-1/+2
| | | | | Submitted by: Pete Chou MFC after: 1 week
* crunch: Sync some NetBSD changespfg2013-02-021-2/+3
| | | | | | Revert a comment that was not supposed to go away. Obtained from: NetBSD
* crunch: Sync some NetBSD changes.pfg2013-02-021-17/+17
| | | | | | | | | | | | | | | | | crunchide: Apr 11, 2009: fix some -Wsign-compare issues. Sep 20, 1999: Free the right thing. crunchgen: Apr 14, 2009: Fix some WARNS=4 issues (-Wshadow -Wcast-qual) Oct 30, 2004: Add (unsigned char) cast to ctype functions Feb 5, 2001: fix nested extern. examples: Aug 30, 2007: NetBSD 36867 - trsp references are deprecated Obtained from: NetBSD MFC after: 1 week
* Some amount of style(9)obrien2012-06-272-41/+77
| | | | -- function definitions, header ordering, and $FreeBSD$.
* Ensure crunchen uses the same make binary as the rest of the build.obrien2012-06-251-5/+11
| | | | Submitted by: Simon Gerraty <sjg@juniper.net>
* mdoc: drop redundant .Pp and .LP callsuqs2010-10-081-2/+0
| | | | They have no effect when coming in pairs, or before .Bl/.Bd
* mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to theuqs2010-05-131-16/+16
| | | | | | | | | | | bottom of the manpages and order them consistently. GNU groff doesn't care about the ordering, and doesn't even mention CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put them. Found by: mdocml lint run Reviewed by: ru
* Run with -B and just .POSIX.obrien2009-01-311-2/+2
|
* Set .POSIX mode, along with disable parallel mode. Crunchgen parses theobrien2009-01-131-3/+4
| | | | | output from make(1) and its picky what it should look like. Also use make's conditional assignment operator rather than test and set.
* Include <stdlib.h> for the right prototype for exit(3).yar2007-10-271-0/+1
|
* Set the program name if the crunched program is selected throughyar2007-10-271-0/+5
| | | | | | | | | | | | argv[1] to mimic crt0 behaviour. Do the job by a direct assignment to __progname in order to stay compatible with NetBSD, whose setprogname() is a deliberate no-op. The reason for this change is that some programs (usually those imported from NetBSD) use getprogname() to distinguish between their aliases. (See pkill aka pgrep for example.) This change can be useful, and applicable, to NetBSD, too.
* Back out half of my previous change to support parallel makes.jb2006-11-271-0/+2
| | | | | The generated Makefile clashes with the src/bin/sh/Makefile, causing it to try to use a rule to build something it doesn't need to.
* Fix another parallel make problem with the generated make file.jb2006-11-241-9/+11
| | | | | | | | | | | | | Define the xxx_OBJPATHS earlier and then use it in the xxx_make target because each obj is actually made through that. This allows the crunch to work with -j32 on sun4v. The makefile generated is still poor, though. It really shouldn't use the general 'make all' to do the submakes in the app directories being crunched because each of those objects is listed as a dependency in the generated crunch makefile. Doing that really requires a unique rule to generate them.
* Add the SUBMAKE_TARGETS (like ppp_make) to the dependency listjb2006-11-221-1/+1
| | | | | | for linking the crunched app so that when a parallel make is run (like -j32 on sun4v), the link waits for the sub-make processes to complete.
* Markup fixes.ru2006-09-291-2/+3
|
* Bump .Dd before I get told off.ceri2005-12-231-1/+1
|
* Commands like gmirror, graid3, ... and others which use dlopen() to loadceri2005-12-232-4/+95
| | | | | | | | | | | | | | | | | classes from say, /lib/geom, cannot be statically linked completely. Moreover, those shared objects may require other shared objects (i.e. for geom, libraries like -lmd, -lcrypto). The libs_so extension to crunchgen fixes this by allowing some libraries to be linked in dynamically. This requires that a copy of rtld and the shared libraries be made available to the crunched binary, and so is not suitable for all environments. Crunchgen configurations which do not use the 'libs_so' keyword are unaffected and produce identical binaries with and without this commit. Approved by: murray (mentor, in spirit), jhb In collaboration with: Adrian Steinmann <ast at marabu dot ch> MFC After: 6 weeks
* In crunchgen(1), when calling make(1), don't redirect stderr to stdout,ru2005-01-201-1/+1
| | | | | | | just rely on the exit status to detect an error. This makes crunchgen(1) safe to use with certain make(1) debugging flags. MFC after: 1 week
* Fix a 4.X -> 5.X upgrade problem: crunchgen used to emit a line 'MAKE=make'harti2004-08-091-7/+7
| | | | | | | | | | | or 'env MAKEOBJDIRPREFIX=... make' depending on the setting of MAKEOBJDIRPREFIX in the environment. In any case this line kills the original value of ${MAKE}. When during buildworld a new make is built (as is the case during the upgrade) this causes a wrong make to be picked up (the first one in the path). Use the same technique as Makefile.inc1: create a MAKEENV variable and a CRUNCHMAKE that calls ${MAKE} with that MAKEENV prefixed. Use CRUNCHMAKE instead of MAKE throughout the generated makefile. This leaves the original ${MAKE} undisturbed.
* The second chdir(1) that I trimmed is needed tooru2003-04-231-2/+3
| | | | | | if the program has an object directory. Explained by: Tim Kientzle <kientzle@acm.org>
* chdir(1) into a source directory before attempting to determine theru2003-04-221-1/+2
| | | | | | | OBJS list. This is needed to crunch any program that relies on the correct .CURDIR setting, e.g. src/bin/csh. Submitted by: Tim Kientzle <kientzle@acm.org>
* Apply the envp fix to the other call to main() as well.gshapiro2002-08-091-2/+2
| | | | Submitted by: Peter Edwards <pmedwards@eircom.net>
* Pass envp to crunched program's main() routines as some depend on it.gshapiro2002-08-041-2/+4
| | | | | | | | | | | | Note that crunchgen's stub .c programs already have the code to use it: "int _crunched_%s_stub(int argc, char **argv, char **envp)" "{return main(argc,argv,envp);}\" >%s_stub.c\n", Add $FreeBSD$ to allow the commit. Reviewed by: luigi MFC after: 3 days
* mdoc(7) police: markup nit.ru2002-05-301-1/+1
|
* Use `The .Nm utility'charnier2002-04-201-6/+12
|
* Add a "special progname lib xxx ..." command to crunchgenluigi2002-03-302-2/+23
| | | | | | | | | so the .lo files can be partially linked against libraries which redefine symbols in the standard libs, or which reference symbols in the objects. Submitted by: Sam Leffler MFC After: 3 days
* Make source crunches work as well as object crunches; broken in thejoe2001-08-171-1/+1
| | | | | | last commit that fixed object crunches. Repeat after me, "no excuses for not testing".
* Make crunchgen crunch pre-built object files again, i.e.:joe2001-08-151-10/+10
| | | | | | | | | | progs prog1 special prog1 objdir ../../prog1/obj special prog1 objs prog1.o This fixes a bug that I introduced around the time of 4.2-release. Reported by: Larry Baird <lab@gta.com>
* mdoc(7) police: s/BSD/.Bx/ where appropriate.ru2001-08-141-2/+6
|
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-201-2/+2
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* Remove GCC'isms in CFLAGS.obrien2001-07-201-1/+1
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Use 'LIBS+= ...' instead of 'LIBS= ...' in the generated makefilejoe2001-06-201-1/+1
| | | | | | | | so that the user can override libraries at build time. This is makes it easier to cross-compile crunch builds. Suggested by: luigi MFC after: 3 days
* Document ``special <progname> ident <identifier>'' command.ru2001-04-041-0/+17
|
* - Call `subclean' after `clean' for each program.ru2001-04-041-2/+2
| | | | - Eliminate compiler warning.
* `buildopts' may affect the selection of object files.ru2001-03-301-1/+1
| | | | | | | Make sure we pass $(BUILDOPTS) to the `clean' target so that `make clean' works on the same set of object files. Otherwise, we may end up with an incorrectly built and up-to-date object file.
* Liberal application of style(9).joe2001-01-101-665/+758
|
* Flag an error and remove the program from the list if there isjoe2001-01-101-1/+4
| | | | | | no source directory or no objects can be determined. Initialise a structure variable.
* Clean up the source directory finding code, and in the process fix ajoe2000-12-241-16/+24
| | | | problem that occurs when a program's source isn't found.
* Use one of the TMPDIR env variable or _PATH_TMP instead of hardcodingjoe2000-12-171-1/+3
| | | | | | /tmp. Submitted by: jedgar
* Avoid potential problems with the existance of a shadow obj directoryjoe2000-12-171-1/+1
| | | | confusing the 'make -f tmpfile' in the tmpfile, by creating it in /tmp.
* Clarify an ambiguous 'else' introduced by a recent commit.joe2000-12-171-2/+2
|
* o check strdup() return valuesjoe2000-12-171-23/+30
| | | | | | | | | | o strcpy() -> strlcpy() o sprintf() -> snprintf() o mktemp() -> mkstemp() o use err() instead of errx() in out_of_memory() function since errno will probably be set Submitted by: jedgar
* Hopefully the last patch in a series to try and teach crunchgen tojoe2000-12-171-38/+62
| | | | | handle MAKEOBJDIRPREFIX better, in conjunction with the -o and -p flags.
* mdoc(7) police: fixed errors from the previous revision, keepru2000-12-011-17/+21
| | | | the synopsis in a nice form, and a few more cosmetic changes.
* Make crunchgen aware of obj directories. Formerly it hadluigi2000-11-302-31/+59
| | | | | | | | | /usr/obj hardwired in the code, now you can override it with a command line option or MAKEOBJDIRPREFIX env. variable. The above is useful to build picobsd-specific objects in some other place than /usr/obj While at it, fix documentation and change a few sprintf -> snprintf.
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-3/+3
|
* mdoc(7) police: use certified section headers wherever possible.ru2000-11-171-1/+1
|
* mdoc(7)ify.ru2000-11-161-114/+181
|
* Add and document a new configuration command: buildopts.joe2000-11-152-3/+28
| | | | | This allows global make options to be specified within the crunch configuration file.
OpenPOWER on IntegriCloud