English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Log of /trunk/freewrt/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

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 2685 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jun 4 10:50:53 2007 UTC (6 years, 8 months ago) by tg
File length: 7159 byte(s)
Diff to previous 2631
new target “distclean” for packages


Revision 2631 - (view) (download) (annotate) - [select for diffs]
Modified Wed May 23 14:23:29 2007 UTC (6 years, 9 months ago) by tg
File length: 7024 byte(s)
Diff to previous 2629
optimise

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 2491 - (view) (download) (annotate) - [select for diffs]
Modified Sat May 12 23:57:56 2007 UTC (6 years, 9 months ago) by tg
File length: 6790 byte(s)
Diff to previous 2463
use host-system mksh instead of bash to speed up the splitting process,
if installed


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 2369 - (view) (download) (annotate) - [select for diffs]
Modified Tue Apr 17 14:33:52 2007 UTC (6 years, 10 months ago) by n0-1
File length: 5320 byte(s)
Diff to previous 2367
some missing additions

Revision 2367 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 16 19:31:59 2007 UTC (6 years, 10 months ago) by n0-1
File length: 5183 byte(s)
Diff to previous 2296
integrate a 'help' target


Revision 2296 - (view) (download) (annotate) - [select for diffs]
Modified Wed Mar 28 09:34:34 2007 UTC (6 years, 10 months ago) by tg
File length: 3784 byte(s)
Diff to previous 2294
oops, "v" was not verbose any more

Revision 2294 - (view) (download) (annotate) - [select for diffs]
Modified Tue Mar 27 13:39:29 2007 UTC (6 years, 11 months ago) by tg
File length: 3779 byte(s)
Diff to previous 2225
default to verbose, this is for developers, and the users have WIB

talked over with wbx@


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 2208 - (view) (download) (annotate) - [select for diffs]
Modified Tue Mar 20 14:19:04 2007 UTC (6 years, 11 months ago) by tg
File length: 3991 byte(s)
Diff to previous 2182
try to work around hen-egg problem, sorry dnehring@, please continue to test this, I cannot

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 2169 - (view) (download) (annotate) - [select for diffs]
Modified Thu Mar 15 19:57:29 2007 UTC (6 years, 11 months ago) by tg
File length: 3867 byte(s)
Diff to previous 1850
add “oldconfig” target, thanks to nbd@openwrt for the hint
(untested)


Revision 1850 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 3 21:53:06 2007 UTC (7 years ago) by tg
File length: 3817 byte(s)
Diff to previous 1773
check if host compiler supports -fwrapv
should fix PR#201


Revision 1773 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jan 27 21:40:58 2007 UTC (7 years ago) by tg
File length: 3843 byte(s)
Diff to previous 1771
unbreak damage introduced by dnehring@ in r1771


Revision 1771 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jan 27 21:13:36 2007 UTC (7 years ago) by dnehring
File length: 3842 byte(s)
Diff to previous 1768
Request tg: move -DNDEBUG in CPPFLAGS. r1768 was wrong.


Revision 1768 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jan 27 19:37:29 2007 UTC (7 years ago) by dnehring
File length: 3852 byte(s)
Diff to previous 1755
Disable assert() by default to save space.


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 1173 - (view) (download) (annotate) - [select for diffs]
Modified Mon Nov 20 00:06:13 2006 UTC (7 years, 3 months ago) by tg
File length: 3907 byte(s)
Diff to previous 1155
experimental support for having CC="ccache gcc", etc.
reported by tntnet in IRC, not tested


Revision 1155 - (view) (download) (annotate) - [select for diffs]
Modified Fri Nov 17 17:11:48 2006 UTC (7 years, 3 months ago) by n0-1
File length: 3702 byte(s)
Diff to previous 831
new target: allnoconfig - creates a config with everything disabled

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 679 - (view) (download) (annotate) - [select for diffs]
Modified Sat Sep 23 21:40:36 2006 UTC (7 years, 5 months ago) by tg
File length: 4252 byte(s)
Diff to previous 677
we use the httpd redirect here, my bad, this is by design
and actually makes sense


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 543 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 24 22:53:47 2006 UTC (7 years, 6 months ago) by tg
File length: 5540 byte(s)
Diff to previous 542
stupid typo, cought by wbx@


Revision 542 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 24 22:47:35 2006 UTC (7 years, 6 months ago) by tg
File length: 5539 byte(s)
Diff to previous 541
wbx@ requested another iteration, per-filesystem.


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 535 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 24 22:06:18 2006 UTC (7 years, 6 months ago) by tg
File length: 5492 byte(s)
Diff to previous 534
typo


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 532 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 24 17:52:27 2006 UTC (7 years, 6 months ago) by wbx
File length: 5266 byte(s)
Diff to previous 529
rename target, suggested by tg

Revision 529 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 24 12:39:50 2006 UTC (7 years, 6 months ago) by wbx
File length: 5268 byte(s)
Diff to previous 520
add first hackish parts of a snapshot target

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 517 - (view) (download) (annotate) - [select for diffs]
Modified Mon Aug 14 21:49:25 2006 UTC (7 years, 6 months ago) by tg
File length: 5200 byte(s)
Diff to previous 492
relativify TOPDIR in prereq.mk and make it the first line


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 418 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 25 21:47:45 2006 UTC (7 years, 7 months ago) by wbx
File length: 5253 byte(s)
Diff to previous 360
hide output of find, add kernel packages to update-package

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 356 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jul 22 14:03:29 2006 UTC (7 years, 7 months ago) by tg
File length: 5226 byte(s)
Diff to previous 348
revert r348
described in Message-ID: <Pine.BSM.4.64L.0607221359490.32684@odem.66h.42h.de>


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 342 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jul 22 02:19:19 2006 UTC (7 years, 7 months ago) by tg
File length: 4798 byte(s)
Diff to previous 341
add TOPDIR to prereq.mk


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 241 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jul 16 20:04:03 2006 UTC (7 years, 7 months ago) by tg
File length: 4805 byte(s)
Diff to previous 240
be quiet


Revision 240 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jul 16 20:01:34 2006 UTC (7 years, 7 months ago) by tg
File length: 4802 byte(s)
Diff to previous 237
it gets even weirder with support for Darwin 7.9.0 ...


Revision 237 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jul 16 19:40:45 2006 UTC (7 years, 7 months ago) by tg
File length: 4653 byte(s)
Diff to previous 228
the macintosh never ceases to amaze me... csh(1) which...


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 161 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jul 1 23:33:03 2006 UTC (7 years, 7 months ago) by tg
File length: 4720 byte(s)
Diff to previous 160
keep everything within 80 characters width


Revision 160 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jul 1 23:20:19 2006 UTC (7 years, 7 months ago) by wbx
File length: 4702 byte(s)
Diff to previous 159
forgot one dollar escape

Revision 159 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jul 1 23:17:13 2006 UTC (7 years, 7 months ago) by wbx
File length: 4702 byte(s)
Diff to previous 144
try some autobuild stuff

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 139 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 18 23:34:04 2006 UTC (7 years, 8 months ago) by tg
File length: 4661 byte(s)
Diff to previous 127
this is not linux, er kansas, any more


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 104 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 18 16:46:54 2006 UTC (7 years, 8 months ago) by tg
File length: 4371 byte(s)
Diff to previous 92
require GNU tar and install it as tar, for now

ok wbx@



Revision 92 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 18 14:54:03 2006 UTC (7 years, 8 months ago) by tg
File length: 4250 byte(s)
Diff to previous 90
stupid GNU make incompatibility

noticed by js in IRC



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 84 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 18 11:04:59 2006 UTC (7 years, 8 months ago) by tg
File length: 4007 byte(s)
Diff to previous 83
expose $BASH too

ok wbx@


Revision 83 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 18 10:59:10 2006 UTC (7 years, 8 months ago) by tg
File length: 3956 byte(s)
Diff to previous 81
tell gmake to use GNU bash

ok wbx@



Revision 81 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 18 10:42:25 2006 UTC (7 years, 8 months ago) by tg
File length: 3903 byte(s)
Diff to previous 78
after creating prereq, tell the user it's done

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 67 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jun 16 07:41:06 2006 UTC (7 years, 8 months ago) by wbx
File length: 3147 byte(s)
Diff to previous 64
quiet build

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 42 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 11 15:57:06 2006 UTC (7 years, 8 months ago) by tg
File length: 2686 byte(s)
Diff to previous 41
add 'make verbose' target

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.

  Diffs between and
  Type of Diff should be a

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20