Commit Graph

99 Commits

Author SHA1 Message Date
Thomas Petazzoni
978d8dc53e Another external toolchain support solution
* In toolchain/external-toolchain/ext-tool.mk, copy the contents of
   the sysroot directory to the staging dir.

 * In package/Makefile.in, add a --sysroot CFLAGS pointing to the
   staging dir

 * Remove the CFLAGS and LDFLAGS definition from
   TARGET_CONFIGURE_OPTS. I haven't investigated exactly why, but with
   these options, DirectFB fails to build because it cannot find
   PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP, even if DirectFB's Makefile
   properly sets -D_GNU_SOURCE.

I have already sent this patch on December, 2nd to the mailing-list,
but got no feedback. So let's commit and see what happens :-)

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2008-12-13 16:15:50 +00:00
Peter Korsgaard
ac1d92c425 package/: get rid of unneeded $(strip ..) 2008-12-08 08:15:27 +00:00
Daniel Laird
5432f26f0e Adding Central config.cache options
The following changes allow for use of a central configure cache
file.  This speeds up configuration of packages.
Its use is configurable at the top level (BR2_CONFIG_CACHE - default n).
Old style makefiles can use it if they use the following MACRO in makefiles:
$(AUTO_CONFIGURE_TARGET) see my change to directfb.mk.
New style Autotools.in will use it if you set the global option.
However you can enable the global option and on a per package overrule it by doing
the following: $(PKGNAME)_USE_CONFIG_CACHE = NO see fontconfig.mk for an example 
of this.
Finally I have removed a few config variable settings which indicated no CXX compiler
as this is wrong and breaks the build when using this central cache.

 Config.in                        |    8 ++++++++
 package/Makefile.autotools.in    |    5 ++++-
 package/Makefile.in              |   28 +++++++++++++++++++++++++++-
 package/atk/atk.mk               |    2 +-
 package/directfb/directfb.mk     |    7 +------
 package/fontconfig/fontconfig.mk |    3 +++
 package/libglib2/libglib2.mk     |    2 +-
 package/libgtk2/libgtk2.mk       |    1 -
 8 files changed, 45 insertions(+), 11 deletions(-)

I would appreciate feedback on this change (I have been testing for 2-3 weeks)
But I can never test all cases!  If you enable the BR2_CONFIG_CACHE option some
Makefile.autotools.in based packages may now break - I cannot build them all.
In this case you may need to remove config options that are being hardcoded all
over the place (like gtk saying we have 2 CXX compiler) or disable the use
of CONFIG CACHE file like I have done in fontconfig.
I can build all packages required to get WebKit on DirectFB up and running
and it runs fine.
I will try to resolve any issues this creates as fast as I can.

Signed-off-by: Daniel Laird <daniel.j.laird@nxp.com>
2008-11-28 14:20:47 +00:00
Peter Korsgaard
5098ee9c7f Revert r24000: "Fix external toolchain build"
This breaks builds with internal toolchain, so let's revert this until we find
a proper solution.
2008-11-21 14:51:10 +00:00
Thomas Petazzoni
60d39dbb3f Fix external toolchain build
This patch is a new version of a patch already sent several times on
the mailing-list, committed and reverted a few times by Daniel Laird,
due to several imperfections. This version is a new try at finding a
solution that works for everybody. Hopefully it'll work :-)

The original problem is that external toolchain builds failed because
packages couldn't find their dependent libraries at configure time and
could not be linked with them. To fix these two problems, two things
are added:

 * The TARGET_LDFLAGS variable was exposed as LDFLAGS at ./configure
   time thanks to TARGET_CONFIGURE_OPTS. The TARGET_LDFLAGS variable
   contains -L options with the path in the STAGING_DIR for the
   libraries. It allows ./configure scripts to properly compile the
   small test programs testing whether a dependency is properly
   installed.

 * The TARGET_CFLAGS contains a new -Wl,--rpath-link option for both
   $(STAGING_DIR)/lib and $(STAGING_DIR)/usr/lib. It allows library
   depending on other libraries to link properly. The TARGET_CFLAGS is
   exposed as CFLAGS in TARGET_CONFIGURE_OPTS.

This new version fixes a problem encountered by hartleys
<hartleys@visionengravers.com> when building the kernel. The problem
was that the -Wl,--rpath-link options were added to LDFLAGS, while
there are options for the C compiler, not the ld linker. Moving them
to CFLAGS seems to fix the issue.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2008-11-11 18:32:31 +00:00
Daniel Laird
2dbf951819 package/Makefile.in: revert rpath setup for toolchains.
Revert the rpath patch, it looked good up until someone tried 
to build a kernel as well.  This seems to break as a result.

Will post a new patch soon and see how that goes.. 

Signed-off-by: Daniel Laird <daniel.j.laird@nxp.com>
2008-11-07 08:15:53 +00:00
Daniel Laird
fd3bb17cbb package/Makefile.in: rpath setup for toolchains.
Apply the patch I posted some time ago that fixes 
rpath issues with external toolchains.
Has been tested by users of buildroot and feedback looks good.

Signed-off-by: Thomas Petazzoni
Signed-off-by: Daniel Laird <daniel.j.laird@nxp.com>
2008-11-06 12:54:29 +00:00
Daniel Laird
eff04b41d3 package/Makefile.in: Remove rpath fix as it breaks Thomas png build
Remove my fix for rpath-link until I can find out why it works for me and not
Thomas.

Signed-off-by: Daniel Laird <daniel.j.laird@nxp.com>
2008-10-22 15:28:30 +00:00
Daniel Laird
ec65ef836f package/Makefile.in: Add -rpath-link
As per various email discussions add -rpath-link
to the LDFLAGS.
This definately fixes a few issues for Thomas and myself
Any objections and it can be pulled again.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@...> 
Signed-off-by: Daniel Laird <daniel.j.laird@nxp.com>
2008-10-22 12:47:53 +00:00
Peter Korsgaard
60b5eee76e package: global largefile CFLAGS handling 2008-08-04 19:07:18 +00:00
Peter Korsgaard
c666875912 package/Makefile.in: cleanup MAKE/MAKE1
The extra stuff doesn't seem to be needed, so lets just get rid of it.
2008-07-11 13:43:59 +00:00
Peter Korsgaard
607d0229ae package/Makefile.in: propagate -s make flag to sub makes 2008-07-01 13:30:26 +00:00
Peter Korsgaard
6eb60364c4 pkgconfig: bump version and cleanup
Upgrade to pkgconfig 0.23 which has native sysroot support (buggy,
but easily fixable), which allows us to get rid of pkgconfig-filter.sh.
At the same time cleanup the makefile.
2008-06-14 21:00:59 +00:00
Peter Korsgaard
ff1b7e871f Makefile: honor silent (-s) flag 2008-05-31 07:27:52 +00:00
John Voltz
41f6b79ff7 added more debugging options for packages 2008-03-12 13:07:10 +00:00
John Voltz
1beaf12098 added debug option 2008-03-11 18:15:30 +00:00
Ulf Samuelsson
0c85dfd60c Use host ldconfig, if external toolchain is used 2008-01-10 09:29:06 +00:00
Ulf Samuelsson
c8e376f83e FIx syntax error 2007-10-30 10:30:59 +00:00
Ulf Samuelsson
3c2739182b Allow to remove _nofpu from directories and images 2007-10-18 12:38:26 +00:00
Ulf Samuelsson
29ac0f18d2 Remove debugging info from package/Makefile.in 2007-10-18 07:40:19 +00:00
Ulf Samuelsson
c500802eaf Remove hyphen from images if empty rootfs suffix 2007-10-18 05:56:05 +00:00
Ulf Samuelsson
79d42d3238 Allow date to be added to Image 2007-10-07 18:23:01 +00:00
Bernhard Reutner-Fischer
5cfb2f794f - fix some whitespace damage..
- add COPYTO settings for cpio and tar and remove that ugly hardcoded DATE from that was added by Ulf
2007-10-05 12:55:40 +00:00
Bernhard Reutner-Fischer
05195c3d00 - default to mips I for mipsel and mips III for mips
- suggest some target flags for abi64
2007-10-02 21:36:49 +00:00
Bernhard Reutner-Fischer
14a71561a3 - just use the strip binary to avoid confusing libtool (quotes)
- use $(STRIPCMD) in packages to avoid clashes with $(STRIP)
2007-10-01 16:15:31 +00:00
Bernhard Reutner-Fischer
3569f2d045 - fix quotes for STRIP.
Sorry for any inconvenience this may have caused..
2007-09-29 14:27:39 +00:00
Bernhard Reutner-Fischer
4f5facb9ec - make sure that strip and all it's arguments are passed if used via
STRIP=$(TARGET_STRIP) (i.e. without quoting). Thanks to Dimitry Golubovsky
  for mentioning this.
2007-09-29 10:05:08 +00:00
Bernhard Reutner-Fischer
fbb5f1b94e - cleanup configure options 2007-09-28 22:15:19 +00:00
Bernhard Reutner-Fischer
5f97580e50 - add FC, remove some duplicate entries, cleanup
- fixup after Ulf: CXX doesn't take CFLAGS but CXXFLAGS
2007-09-28 20:10:22 +00:00
Ulf Samuelsson
966c37f7d2 Sort HOST/TARGET_CONFIGURE_OPTS, add some more, needed for gcc-4.1.2 2007-09-28 19:49:13 +00:00
Bernhard Reutner-Fischer
e27250c502 - add a query for suggestions on how to deal with MALLOC_GLIBC_COMPAT 2007-09-27 21:58:46 +00:00
Bernhard Reutner-Fischer
4b0d5a80f8 - revert some bad checkins, fixup bad settings in atmel targets and move the gcc target abi back to a place where the other arch-specific settings live 2007-09-26 21:12:38 +00:00
Bernhard Reutner-Fischer
fecac9bfb6 - revert r19918 for now 2007-09-20 18:28:53 +00:00
Bernhard Reutner-Fischer
7025afd93c - Reset flags, packages are usually built with -O2 otherwise.
Packages that need to pass additional CFLAGS in their .mk have to do something
  like this: ...configure $(foreach i,$(foo_CFLAGS),CFLAGS+=$$i) --prefix=...
2007-09-20 17:26:59 +00:00
Bernhard Reutner-Fischer
be10c4a8c9 - add v9a and v9b settings.
Will need to change the GCC_TARGET_TUNE accordingly.
2007-09-17 21:50:54 +00:00
Bernhard Reutner-Fischer
153ee9e247 - some more sparc{,64} twiddling 2007-09-15 22:04:49 +00:00
Ulf Samuelsson
49a1413d5d Add version info (date) to root fs image 2007-09-12 04:40:02 +00:00
Ulf Samuelsson
5f17c052bc Update various packages to make X run 2007-09-12 04:37:31 +00:00
Bernhard Reutner-Fischer
b6a2729be1 - cosmetic cleanup 2007-09-01 17:32:01 +00:00
Ulf Samuelsson
a9a68fabc5 Add default X11 install directory 2007-08-28 23:02:52 +00:00
Bernhard Reutner-Fischer
4427e87559 - add apropriate variables for the host-toolchain to HOST_CONFIGURE_OPTS 2007-08-28 08:14:51 +00:00
Bernhard Reutner-Fischer
6547bced93 - global whitespace trimming 2007-08-22 12:35:41 +00:00
Bernhard Reutner-Fischer
3471ebe0a3 - random whitespace cleanup 2007-08-22 11:47:22 +00:00
Bernhard Reutner-Fischer
1dbe6e3396 - our dependencies are project specific. First (untested) attempt to take this fact into account.
Will need to try to copy eventual pre-existing project-specific deps back
  to package/config in order not to mess up the corresponding timestamps (to avoid superfluous rebuilds)..
2007-08-21 17:56:47 +00:00
Bernhard Reutner-Fischer
1e3c369df8 - move the PROJECT variable setting to a more sensible place 2007-08-21 17:14:56 +00:00
Ulf Samuelsson
e4ead9c13c Remove switches if sstrip is run 2007-08-21 01:53:57 +00:00
Eric Andersen
a7e49eb2af Merge in X11R7 patches from Julien Letessier, posted 04 Jul 2007. Doesn't
quite work yet for me, but this clearly is a huge project and not having it
quite work on the first pass is hardly unexpected.  We definately want this
stuff in buildroot.
2007-08-10 19:07:51 +00:00
Peter Korsgaard
6c0c83fb56 Use cross ldconfig instead of host version 2007-08-08 14:58:47 +00:00
Bernhard Reutner-Fischer
bbd251a075 - add possibility to select different flavours of strip (or none at all for debugging purposes) 2007-07-31 18:06:50 +00:00
Bernhard Reutner-Fischer
cd1819ee15 - nil the CXX env var if we don't have a CXX cross-compiler 2007-07-31 15:10:55 +00:00