Log of /trunk/freewrt/Makefile
Parent Directory
|
Revision Log
Revision
2715 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 5 14:52:44 2007 UTC
(6 years, 8 months ago)
by
tg
File length: 7870 byte(s)
Diff to
previous 2685
• 1.0 -> scripts/param.h, paxmirabilis: MFC the new version from trunk
• both 1.0 and trunk: implement “make targz”, “make tarbz2”
(I like the gzip(1)d versions better though)
• 1.0 -> package/config/Makefile: quieten the “clean” target to be consistent
Revision
2629 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Wed May 23 13:57:30 2007 UTC
(6 years, 9 months ago)
by
tg
File length: 6978 byte(s)
Diff to
previous 2619
hack to make new “make wconfig”, developer-only, to generate Config.default
feel free to improve
Revision
2619 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Tue May 22 21:23:19 2007 UTC
(6 years, 9 months ago)
by
tg
File length: 6838 byte(s)
Diff to
previous 2510
remove target_clean, it can't do what it appears to do since it removes the di-
rectory where all the compiled IPKs are stored, and it's not documented anyway
Revision
2510 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Mon May 14 18:45:01 2007 UTC
(6 years, 9 months ago)
by
tg
File length: 6894 byte(s)
Diff to
previous 2491
some wording fixes, 80-column limit, and “make package=foo” will NEVER
resolve dependencies. description of update-patches was already here @wbx
Revision
2463 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Tue May 8 12:37:26 2007 UTC
(6 years, 9 months ago)
by
tg
File length: 6623 byte(s)
Diff to
previous 2370
new: “make slow” – compile, but output only as few as can be transmitted
via a slow line, such as a serial link
wbx@ only allowed me to default to V=99 if I commit “something like” this
future improvements: change the TRACE variables to echo special control
characters which are then picked up by “make slow” as well; convert it
from using tail(1) to a shell-based line buffer (slightly more CPU in-
tensive; mksh would be more than 3 times as performant as GNU bash here)
Revision
2370 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Tue Apr 17 15:12:25 2007 UTC
(6 years, 10 months ago)
by
n0-1
File length: 6382 byte(s)
Diff to
previous 2369
Ok, this is the drawback of integrating new functionalities:
in the end it is always a lot more work than one expected. :)
So as requested, here comes the big documentation. To prevent
screen flooding, I split everything up into three parts:
* general make targets
* package specific targets (though generic in some way)
* package maintainers target(s)
The only maintainer target is 'update-patches', but as the most
complicated part of using it is to know how, this should fit
into a separate target. (And will hopefully grow in the future.)
Revision
2225 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Wed Mar 21 22:01:31 2007 UTC
(6 years, 11 months ago)
by
tg
File length: 3839 byte(s)
Diff to
previous 2222
if a build system has a non-GNU make, or a too old gmake, just
build our own
tested on MirBSD odem.66h.42h.de 10 Kv#10n11-20070318 GENERIC#1014 i386
without gmake installed
if this is not working for you for the one or other reason,
please drop me a private mail with a detailled error description.
this procedure was explicitly ok'd by wbx@
Revision
2222 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Wed Mar 21 19:19:44 2007 UTC
(6 years, 11 months ago)
by
tg
File length: 3900 byte(s)
Diff to
previous 2208
• revert the addition of “build gmake as part of tools“, it had too
many problems
• for now, gmake 3.81 IS REQUIRED
• clean up
Revision
2182 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Fri Mar 16 22:56:47 2007 UTC
(6 years, 11 months ago)
by
tg
File length: 3900 byte(s)
Diff to
previous 2169
by request of markus@ use the “old” $PATH when calling the “real” ${CC},
one without ${TOPDIR}/lbin in it, so that the commonly used, broken, idiom
of 'CC="ccache gcc"' can be supported (untested)
to use this: make prereq
Revision
1755 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Thu Jan 25 21:03:24 2007 UTC
(7 years, 1 month ago)
by
tg
File length: 3843 byte(s)
Diff to
previous 1753
the already-existing global ${HOSTCFLAGS} was not used when
determining ${HOST_CFLAGS} from ${CFLAGS} and setting a default;
use it (so that HOSTCFLAGS = HOST_CFLAGS) and the defaults
Revision
1753 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Thu Jan 25 19:56:53 2007 UTC
(7 years, 1 month ago)
by
tg
File length: 3812 byte(s)
Diff to
previous 1650
* we override LC_ALL (already), no need to do it twice
* LANG is overridden by LC_ALL anyway
* on some systems, GNU dcgettext overrides LC_ALL with
LANGUAGE, so we force-set that to 'C' as well
Revision
1650 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sat Jan 20 16:10:16 2007 UTC
(7 years, 1 month ago)
by
tg
File length: 3763 byte(s)
Diff to
previous 1318
* '%' as line addressing is a BSD extension to the text editor,
which GNU ed 0.3+ doesn't support, but isn't listed in the
ChangeLog relative to GNU ed 0.2 - use ',' instead
bug cought by n0-1@
* correct line addressing of "TOPDIR:=..." line in prereq.mk
Revision
1318 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Mon Dec 18 19:27:23 2006 UTC
(7 years, 2 months ago)
by
tg
File length: 3763 byte(s)
Diff to
previous 1232
got another great idea: why not check for supported OSes
during 'make prereq', tell the user to contact us (we may
even have a (commercial) contractor available for the task
of porting to a new build (not host) system) and what the
issues with some of the OSes are
also move other uname-related stuff from Makefile into
scan-tools.sh so that we keep them in one place
Revision
1232 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Thu Nov 30 17:23:01 2006 UTC
(7 years, 2 months ago)
by
n0-1
File length: 3985 byte(s)
Diff to
previous 1198
Introduced a new make target `snapshotconfig'.
This target is quite equal to the well-known `allmodconfig',
with the extension that all possible target devices are selected
at the same time. This leads to also enabling packages which depend
on certain target devices, what is useful for snapshot builds.
Revision
1198 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Thu Nov 23 23:54:09 2006 UTC
(7 years, 3 months ago)
by
n0-1
File length: 3925 byte(s)
Diff to
previous 1183
Enabled the well-known "allmodconfig" target.
The idea is merely to build something that fits everywhere,
but rather for testing builds including everything. (This
way one can deselect senseless packages, like e.g. busybox
which is totally useless with everything enabled.)
Also synced Config.in.collections with the one from 1.0.
Revision
1183 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Mon Nov 20 22:53:44 2006 UTC
(7 years, 3 months ago)
by
tg
File length: 3869 byte(s)
Diff to
previous 1173
when changing something, don't forget to remove the old
code when introducing new code ;)
cought by wbx@
Revision
831 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Tue Oct 3 16:38:55 2006 UTC
(7 years, 4 months ago)
by
wbx
File length: 3648 byte(s)
Diff to
previous 679
remove autobuild and snapshot targets. snapshots and releases will be done with ib.sh
Revision
677 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sat Sep 23 21:30:52 2006 UTC
(7 years, 5 months ago)
by
tg
File length: 4262 byte(s)
Diff to
previous 588
by request of markus@ communicated via wbx@, add new facilities:
$ make [V=99] package=mksh clean prepare compile install
$ gmake [V=99] subdir=tools/paxmirabilis clean prepare compile install
This works as follows: if ${subdir:-${package+package/${package}}} (in shell
syntax) is specified (you can only specify one subdirectory, and the package
variable has precedence over the subdir variable), all make targets specified
on the command (if any) are passed to a GNU make run in the subdirectory spe-
cified (packag/${package} or simply ${subdir}), relative to ${TOPDIR}, with
environment appropriately set and ${MAKEFLAGS} passed.
also, while here, recind the advertising clause on the top-level Makefile and
integrate this stuff with the new boilerplate (attn: licence URI adjusted);
the requirement to credit my name is contained in the GPL as well
Revision
588 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Tue Sep 12 18:11:35 2006 UTC
(7 years, 5 months ago)
by
wbx
File length: 5543 byte(s)
Diff to
previous 543
merge wbx-target-cleanup to trunk.
- mk directory for some top level makefiles (build.mk,vars.mk)
- add a separate configfs partition to all models, 128 kb big
- add model and platform specific startup files and kernel configs
- delete target/linux/package, add all addon kernel packages to packages
- simplify target/linux/brcm-2.4/Makefile, abstraction to mk/ comes later
- add target/image directory, place where the different images are created
- default off for all extra packages, be sure that you enable all packages
you need to get a dsl-capable router. snapshots will be created by a specific config which contains all needed stuff (iptables, pppoe, pptp, haserl, webif)
Revision
541 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 24 22:32:08 2006 UTC
(7 years, 6 months ago)
by
tg
File length: 5416 byte(s)
Diff to
previous 535
*sigh*
first I'm told conf -d is needed, then I'm told it overwrites .config...
remove it
Revision
534 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 24 21:59:49 2006 UTC
(7 years, 6 months ago)
by
tg
File length: 5492 byte(s)
Diff to
previous 532
* .defconfig: remove superfluous commented-out targets
* build.mk: move some targets out of the if-have-.config
* build.mk, Makefile: hopefully fix wbx@' snapshot target
* Makefile: sync licence
Revision
520 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Mon Aug 14 22:12:09 2006 UTC
(7 years, 6 months ago)
by
tg
File length: 5218 byte(s)
Diff to
previous 517
even better, use more relative pathnames,
causes less breakage when TOPDIR is a symbolic link ;)
Revision
492 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Wed Aug 2 20:37:51 2006 UTC
(7 years, 6 months ago)
by
wbx
File length: 5052 byte(s)
Diff to
previous 418
add autobuild, still busybox need to be excluded in any good way. no idea for that at the moment. remove unused stuff.
Revision
360 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sat Jul 22 15:48:30 2006 UTC
(7 years, 7 months ago)
by
tg
File length: 5227 byte(s)
Diff to
previous 356
as discussed with wbx@ some 2-3 weeks ago, change
the BR2_ prefix to FWRT_
tested with a standard build (only the squashfs
image since the jffs2 didn't get built)
Revision
348 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sat Jul 22 07:27:48 2006 UTC
(7 years, 7 months ago)
by
wbx
File length: 5192 byte(s)
Diff to
previous 345
i think this is some leftover from yesterday's hacking session, seems to work without this line, verified with a build and reflash
Revision
345 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sat Jul 22 02:32:33 2006 UTC
(7 years, 7 months ago)
by
tg
File length: 5226 byte(s)
Diff to
previous 344
I guess I should use := instead of = in prereq.mk to benefit GNU make
also add GMAKE there, as MAKE can be both
Revision
344 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sat Jul 22 02:31:18 2006 UTC
(7 years, 7 months ago)
by
tg
File length: 5172 byte(s)
Diff to
previous 342
speed up build and ease transition to BSD make by determining
HOST_ARCH during make prereq and cacheing it in prereq.mk too
Revision
341 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sat Jul 22 02:16:13 2006 UTC
(7 years, 7 months ago)
by
tg
File length: 4746 byte(s)
Diff to
previous 339
move the export line from prereq.mk to rules.mk and remove SHELL from it
since that's special (always use ${BASH} if you must) according to TFM
Revision
339 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sat Jul 22 02:08:05 2006 UTC
(7 years, 7 months ago)
by
tg
File length: 4839 byte(s)
Diff to
previous 241
sanitise the way tools which must be in lbin/ (currently,
sed and pax/cpio/tar, but there will be more...) are handled:
make prereq invokes a special recursive target install-lbin
which copies them from the staging dir into lbin if they exist
there (i.e. are already installed), or removes the install stamp
otherwise. the tools' install-lbin target does however duplicate
a little code, this could be done better but it works OK like this
also, add a missing include to brcm-utils and fix pax' clean target
Revision
228 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sun Jul 16 18:39:14 2006 UTC
(7 years, 7 months ago)
by
tg
File length: 4599 byte(s)
Diff to
previous 161
switch to paxmirabilis
ok wbx@
NB: not yet totally tested, but if anything breaks I'll fix it today/tonight
Revision
144 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Mon Jun 19 00:30:25 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 4536 byte(s)
Diff to
previous 139
use the GNU sed built by toolchain again, but prevent it
from picking up I18N support (causes it to segfault at
least under mirbsd - GNU libregex clashes)
ok wbx@
Revision
127 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sun Jun 18 21:48:14 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 4568 byte(s)
Diff to
previous 124
save the old $PATH as _PATH in 'make prereq',
so that it can be picked up later
please re-run 'make prereq' after this commit
hint: /usr/mpkg/bin/bash wasn't in the path
ok wbx@
Revision
124 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sun Jun 18 21:23:45 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 4529 byte(s)
Diff to
previous 109
obviously, perl isn't compatible either. well, what did
you expect of trying to throw an espie?
on systems without sed --in-place in --help, use a shell
script which emulates that behaviour. (requires /usr/bin/sed)
Revision
109 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sun Jun 18 18:05:47 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 4404 byte(s)
Diff to
previous 104
this is so horrifyingly cheap I cannot believe I'm committing this...
the lunox kernel makefiles are so unbelievably broken that
we cannot override $(HOSTCC) from gcc *EVEN IF SET* on the
gmake command line, so symlink $(HOSTCC) to lbin/gcc - for
now...
suggested by wbx@
Revision
90 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sun Jun 18 14:46:03 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 4233 byte(s)
Diff to
previous 84
* have 'make prereq' and 'make prereq-noerror' be .PHONY
targets, i.e. if they're called directly, they will be
always remade; the other targets now depend on a regu-
lar '.prereq_done' target to not redo the prerequisite
checks unless needed
* do not call gmake with --no-print-directory if verbose
ok wbx@
Revision
78 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sun Jun 18 09:58:12 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 3853 byte(s)
Diff to
previous 76
On Debian, gmake 3.80 "seems to be" enough.
Allow the user to override the version check,
point to the FAQ.
requested by and "okay, cool" wbx@
Revision
76 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sun Jun 18 09:49:58 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 3772 byte(s)
Diff to
previous 75
Check some of the prerequisite tools (WIP, more to come)
* that bash exists and works
* that GNU make and a host compiler (gcc) exist
* that we can run a compiled test programme (for the host)
* the GNU make version number
ok wbx@
Revision
75 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sun Jun 18 09:31:00 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 3743 byte(s)
Diff to
previous 73
Require, sadly, GNU bash to be installed before proceeding.
"sehr schön" wbx@
Revision
73 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 16 20:53:08 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 3595 byte(s)
Diff to
previous 67
* instead of using a $(VARS_TO_PASS) write the variables into a
*.mk include file, so that people can cd to some package direc-
tory and invoke gmake directly
* fake OpenBSD as uname for MirBSD, so that we get a little further
in the build process there (stops at linux requiring bash now)
Tested with a full build (standard config) on Linux.
Invoking gmake in a subdirectory *not* tested, but
that didn't work before at all, so it's not a problem.
Revision
64 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 16 06:11:56 2006 UTC
(7 years, 8 months ago)
by
wbx
File length: 3134 byte(s)
Diff to
previous 60
set --no-print-directory for make calls, so that non-verbose is really non-verbose
Revision
60 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 13 11:34:33 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 3109 byte(s)
Diff to
previous 59
prepend a blank line and a descriptive line with date
to a continuation of 'make.log' to make it easier to
follow
Revision
59 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 13 11:18:44 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 3046 byte(s)
Diff to
previous 58
resolve a bad interaction between shell quoting
and shell evaluation of inside commands in the
$(HOSTCFLAGS) determination algorithm
it's a pity we have to be compatible to a lowest
common denominator of make and sh for all systems...
Revision
58 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 13 11:12:15 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 3070 byte(s)
Diff to
previous 56
change 'make v' target, which was the same as 'make verbose',
to additionally append standard output and error (i.e. a full
build log) to a 'make.log' file; svn:ignore the make.log file
Revision
56 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sun Jun 11 23:24:53 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 2987 byte(s)
Diff to
previous 55
copy this:
# Ensure consistent sort order, 'gcc -print-search-dirs' behavior, etc.
LC_ALL:= C
from package/config/Makefile; I think it's a good idea to
normalise behaviour on systems which do support locales,
because e.g. in Spanish locales, sort order varies, etc.
and that introduces hard-to-find bugs (non-locale-aware
operating systems such as OpenBSD not affected).
Revision
55 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sun Jun 11 23:18:55 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 2978 byte(s)
Diff to
previous 54
provide sensible defaults (-O2) for systems with no default CFLAGS
tested on lunox
note: this also, as a not unwelcome side effect, changes the
default flags used for builds from "-g -O2" to "-O2" on the
standard GNU installation (and "-O2 -pipe" on OpenBSD, I
think). More flags (e.g. debugging) can and will be added
later.
Revision
54 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sun Jun 11 23:09:53 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 2974 byte(s)
Diff to
previous 48
Correctly determine HOSTCC and HOSTCFLAGS (from host make)
and pass them as CC/CFLAGS to the toolchain as well.
Now this at least goes as far as I suspected the first
breakage would be (on MirBSD) - autotools.
Detecting works by invoking $(MAKE) with a BSD-specific
makefile and just using $(HOSTCFLAGS) if that fails.
This works better on OpenBSD too, FWIW.
Revision
48 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sun Jun 11 21:06:20 2006 UTC
(7 years, 8 months ago)
by
wbx
File length: 2758 byte(s)
Diff to
previous 46
cosmetic changes to Makefile/build.mk
remove configtest.pl
cosmetic changes in freewrt/toolchain/sed/Makefile, add md5sum
Revision
46 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sun Jun 11 17:22:50 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 2749 byte(s)
Diff to
previous 43
change target distclean to also remove the download area
(distclean = "as clean as if we were making a distfile")
new target cleandir removes everything removed by distclean
except the configuration and downloaded distfiles
(cleandir = clean + toolchain directories)
removed target dirclean, replaced by ordinary clean target
(clean = clean packages, bindir, builddir)
ok wbx@
Revision
43 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Sun Jun 11 16:29:15 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 2720 byte(s)
Diff to
previous 42
use pax to extract if it exists, instead of tar,
because it handles certain archives created by
GNU tar better (on BSD), no change on Linux
ok wbx@
Revision
41 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Added
Sun Jun 11 15:28:26 2006 UTC
(7 years, 8 months ago)
by
tg
File length: 2646 byte(s)
Initial cut at supporting FreeWRT builds under other operating
systems (MirOS BSD, OpenBSD, probably the other BSDs as well;
Mac OSX and Cygwin to come)
The basic idea is:
* the old GNU make "Makefile" is renamed to "build.mk"
* a wrapper Makefile which uses neither GNU nor BSD make
features calls GNU make with -f build.mk
* the wrapper Makefile also checks for prerequisite
tools (as of now: existence of gmake and md5sum)
and their versions (not yet, but that's why it's
being used on GNU/Linux as well)
* scripts/md5sum.bsd uses BSD cksum(1) to generate
GNU md5sum compatible output (only when the arguments
are files; no options are supported)
* GNU make is symlinked into ./lbin/; md5sum.bsd is
copied there if needed; ./lbin/ is prepended to
$PATH for gmake -f build.mk invocations
* make distclean removes prerequisites (and lbin)
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.