chiark / gitweb /
mdw-cross
5 years agoMakefile: Add silent-rules machinery for completely silent actions.
Mark Wooding [Sat, 22 Dec 2018 09:29:58 +0000 (09:29 +0000)]
Makefile: Add silent-rules machinery for completely silent actions.

5 years agolinux-*-setup.sh.in: Add the cross tree's `bin' directory to `PATH'.
Mark Wooding [Thu, 13 Dec 2018 19:50:25 +0000 (19:50 +0000)]
linux-*-setup.sh.in: Add the cross tree's `bin' directory to `PATH'.

5 years agoandroid-cross-setup.sh.in: Explicitly export the `PATH'.
Mark Wooding [Thu, 13 Dec 2018 19:50:09 +0000 (19:50 +0000)]
android-cross-setup.sh.in: Explicitly export the `PATH'.

5 years ago*-cross-setup.sh.in: Set `PKG_CONFIG_PATH' correctly.
Mark Wooding [Wed, 12 Dec 2018 17:41:03 +0000 (17:41 +0000)]
*-cross-setup.sh.in: Set `PKG_CONFIG_PATH' correctly.

This got screwed by the recent refactoring.  Oops.

5 years agoBring `native' architectures into the collection.
Mark Wooding [Mon, 26 Nov 2018 13:16:49 +0000 (13:16 +0000)]
Bring `native' architectures into the collection.

Also fix Android `cross-gcc'.  And other stuff.

5 years agoRearrange everything.
Mark Wooding [Sat, 24 Nov 2018 17:58:14 +0000 (17:58 +0000)]
Rearrange everything.

  * Have `setup.sh' define `CROSS_ARCH', which is the GNU triplet for
    the target architecture.  This is then exported and can be used by
    `config.site' to define further things.

  * Factor out the common machinery between Android and Linux
    `config.site' files.  This is, in fact, exactly the Linux
    `config.site', so have `mdw-cross' select this as a default if
    nothing more specific can be found.

  * Factor out the common machinery for Android `config.site' files,
    which was basically all of it.

  * Move the compiler flags into the new `android-cross-config.site'
    file.

  * Replace `$ANDROID_CC' by `$CROSS_ARCH-gcc'.  Factor out the
    mandatory compiler flags into `$CROSS_gcc_FLAGS', and generalize this
    so that we also set `$CROSS_gxx_FLAGS' for C++.

  * Introduce a new program `crosstool' intended to be invoked via a
    symlink, which just execs the appropriate cross-toolchain tool with
    any necessary extra flags.  Include a bunch of useful symlinks and
    have `mdw-cross' hook them onto the path.

  * Add a Makefile to build the `...-setup.sh' files for each target
    architecture from skeletons.  The Makefile is unnecessarily hairy
    but I like them that way.

5 years agoInitial version.
Mark Wooding [Thu, 22 Nov 2018 16:10:25 +0000 (16:10 +0000)]
Initial version.