summaryrefslogtreecommitdiffstats
path: root/rules/pre
Commit message (Collapse)AuthorAgeFilesLines
* pre/toolchain: add -O2 to the debug cflagsMichael Olbrich2023-05-111-0/+1
| | | | | | | The flags actually overwrite the default "-O2 -g", so without this libstdc++ is not optimized at all. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* rewrite PTXCONF_TOOLCHAIN_DEBUG and generall debug handlingMichael Olbrich2022-10-041-23/+19
| | | | | | | | | | | | The regular toolchains are already built with debug symbols, so that part remains the same. PTXCONF_TOOLCHAIN_DEBUG just adds the sources for target libraries to the toolchain. Previously the source directory was changed but that makes the paths longer, which can cause problems. So instead keep the directories and copy the sources instead. Use -ffile-prefix-map= to rewrite the paths in the debug symbols. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* glibc: use the wrapper to inject the extra CFLAGSMichael Olbrich2020-08-271-3/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pre/toolchain: swap order of the prefix-mapMichael Olbrich2020-08-271-4/+4
| | | | | | | It seem that the last argument is checked first, so put the more specific substitution first. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pre/toolchain: use -ffile-prefix-map= with the cross compilerMichael Olbrich2020-08-271-5/+2
| | | | | | | | | -ffile-prefix-map= is -fdebug-prefix-map= and -fmacro-prefix-map=. It's only supprted with gcc >= 8, so only use it for the cross flags. This removes some more absolute paths from the build host. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* use icecc for cross-compilingMichael Olbrich2020-05-111-1/+1
| | | | | | | | | | | | Multiple things are needed to make this possible: - the wrapper dir must be first in $PATH to ensure that any available wrapper is used. - when gcc-first and gcc are done building, then a new icecc environment must be created. - use icerun to limit parallelization when xgcc/xg++ is used to build the internal libraries Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pre/toolchain: simplify TOOLCHAIN_CROSS_DEBUG_MAPMichael Olbrich2020-05-101-1/+5
| | | | | | | Don't add the same paths twice. So only add `realpath $(PTXDIST_SYSROOT_CROSS)` if it is actually different. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* glibc*: only build the final version with debug symbolsMichael Olbrich2020-05-101-1/+1
| | | | | | | And rename GLIBC_FLAGS_ENV to GLIBC_DEBUG_FLAGS_ENV because it contains nothing else. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* cross-gcc: remove more absolute paths from the final installationMichael Olbrich2020-05-081-2/+4
| | | | | | | | It seems, in some places the paths with all symlinks resolved is used as well, so replace it as well. And replace the path added in a header file. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* rules, scripts: use PTXDIST_SYSROOT_CROSS instead of PTXCONF_DESTDIRMichael Olbrich2019-09-031-1/+1
| | | | | | | It's the same thing and PTXDIST_SYSROOT_CROSS is the correct path that needs to be replaces in the future. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pre/toolchain: use -fdebug-prefix-map everywhereMichael Olbrich2019-09-021-5/+13
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pre/toolchain: prepare to install most packages to pkgdir firstMichael Olbrich2019-09-021-3/+5
| | | | | | | | This allows properly cleaning individual packages during testing and brings the toolchain closer to regular PTXdist BSPs. This makes it possible to reuse more generic code. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* rules: use the regular pkgdir handling for host packagesMichael Olbrich2019-09-021-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* toolchain.make: expand $PATHMichael Olbrich2019-07-041-1/+1
| | | | | | | This is the equivalent to the upstream PTXdist commit 87acd6909282c9d8bb75d0c1ba1fc719925713a3. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* improve debuggingMichael Olbrich2016-06-221-0/+13
| | | | | | | * add more debugging symbols with -g3 * rewrite paths in the debugging data Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* cleanup sysroot/destdir handlingMichael Olbrich2016-06-221-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* cross-gcc-first: move install tree out of sysroot-crossMichael Olbrich2016-05-161-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* move -Wl,--as-needed to the beginning of the command-line and cleanup ↵Michael Olbrich2016-05-161-1/+4
| | | | | | PTXDIST_HOST_LDFLAGS Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* image-toolchain-tgz: add host architecture to the file name againMichael Olbrich2015-01-201-0/+15
| | | | | | It got lost during the conversion to the ptxdist iamge rule Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* toolchain.make: fix HOST_LDFLAGS handlingMichael Olbrich2013-12-191-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* rules: remove PTX_HOST_ENVMichael Olbrich2013-06-101-9/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* toolchain.make: remove canadian cross stuff, nobody ever finished itMichael Olbrich2013-06-101-9/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pre/toolchain: add '-Wl,--as-needed' to LDFLAGSMichael Olbrich2013-06-101-0/+2
| | | | | | This avoids unnecessary dependencies. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pre/toolchain: make sure host and build are identicalMichael Olbrich2012-03-251-0/+2
| | | | | | | | Otherwise some tool, e.g. gcc-4.2.3, assume, that e.g. host=x86_64-host-linux-gnu build=x86_64-unknown-linux-gnu means Canadian Cross. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add fake build type to HOST_CROSS_AUTOCONFAndreas Bießmann2012-03-241-0/+2
| | | | | | | | | | | If we build a cross toolchain where build == host == target the resulting tools lack the host-tripplet before the tool name. This patch introduce a '--build' autoconf switch with guessed (and modified) build host tripplet from ptxdist to supress the generic autoconf guessing mechanism in respective tools. Signed-off-by: Andreas Bießmann <andreas@biessmann.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* glibc: add GLIBC_CONFIG_EXTRA_CROSS optionMichael Olbrich2011-11-221-0/+1
| | | | | | | some extra configure options require the cross gcc. They cannot be added to GLIBC_CONFIG_EXTRA. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* * pre/toolchain.make:Marc Kleine-Budde2008-10-161-2/+46
| | | | | | | add clean namespace git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@7840 f8d472c7-5700-0410-ac5a-87979cec3adf
* * rules/cross-gcc-first.make, rules/glibc.in, rules/pre/toolchain.make, ↵Marc Kleine-Budde2008-10-131-5/+11
| | | | | | | | | rules/cross-gcc.in, rules/cross-binutils.make, rules/cross-gdb.make, rules/cross-gcc.make, rules/libc.in: make more stuff configurable via selects git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@7761 f8d472c7-5700-0410-ac5a-87979cec3adf
* git-svn-id: ↵Marc Kleine-Budde2008-04-251-5/+13
| | | | https://svn.pengutronix.de/svn/oselas/toolchain/branches/OSELAS.Toolchain-mkl@6226 f8d472c7-5700-0410-ac5a-87979cec3adf
* git-svn-id: ↵Marc Kleine-Budde2007-03-051-3/+3
| | | | https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@2083 f8d472c7-5700-0410-ac5a-87979cec3adf
* * rules/pre/toolchain.make, rules/cross-gcc-first.make, ↵Marc Kleine-Budde2007-02-131-0/+8
| | | | | | | | | rules/cross-gcc-second.make, rules/glibc.make: added abstraction to put sources in prefix for later debugging of the toolchain internals git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@1992 f8d472c7-5700-0410-ac5a-87979cec3adf
* * rules/cross-gcc-first.make, rules/pre/toolchain.make, ↵Marc Kleine-Budde2006-12-191-1/+4
| | | | | | | | | rules/cross-binutils.make: build gcc-first into seperate dir git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@1602 f8d472c7-5700-0410-ac5a-87979cec3adf
* reunion step 4Sascha Hauer2006-09-121-0/+5
| | | | git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@871 f8d472c7-5700-0410-ac5a-87979cec3adf
* git-svn-id: ↵Robert Schwebel2006-08-291-5/+0
| | | | https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@769 f8d472c7-5700-0410-ac5a-87979cec3adf
* git-svn-id: ↵Robert Schwebel2006-08-291-0/+5
https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@768 f8d472c7-5700-0410-ac5a-87979cec3adf