Skip to content

toolchain/external: use generic extract commands (branch yem/extract-cmds)

Yann E. MORIN buildroot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 0 repliesNew
  2. v1 RFC6 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- allow user to exclude files for custom toolchain (Romain)
- don't force --hard-dereference, it's useless; instead, drop it
- add the IMG toolchain
- use appropriate toolchain on x86 and x86_64
- rebase on top of master

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9core/pkg-generic: allow packages to exclude files when extractingdocs/manual/adding-packages-generic.txt package/pkg-generic.mk+8 -12 replies
2/9toolchain-external/blacfin: always force keeping hardlinks from archivestoolchain/toolchain-external/toolchain-external.mk+2 -21 reply
3/9package/gcc: use generic extract commandspackage/gcc/gcc-final/gcc-final.mk package/gcc/gcc-initial/gcc-initial.mk package/gcc/gcc.mk+8 -131 reply
4/9toolchain/external: use generic extract commands (!blackfin case)toolchain/toolchain-external/toolchain-external.mk+10 -81 reply
5/9toolchain/external: use generic extract commands (blackfin case)toolchain/toolchain-external/toolchain-external.mk+16 -150 replies
6/9toolchain/external: allow user to exclude files from custom toolchainstoolchain/toolchain-external/Config.in toolchain/toolchain-external/toolchain-external.mk+11 -11 reply
7/9toolchain/external: add MIPS Codescape MTI GNU Linux toolchaintoolchain/helpers.mk toolchain/toolchain-external/Config.in toolchain/toolchain-external/toolchain-external.hash +1 more+84 -10 replies
8/9toolchain/external: add MIPS Codescape IMG GNU Linux toolchaintoolchain/toolchain-external/Config.in toolchain/toolchain-external/toolchain-external.hash toolchain/toolchain-external/toolchain-external.mk+50 -00 replies
9/9toolchain/external: Codescape toolchains also exist for x86_64toolchain/toolchain-external/Config.in toolchain/toolchain-external/toolchain-external.hash toolchain/toolchain-external/toolchain-external.mk+4 -41 reply

Reviews trailers per patch

7 of 9 patches have a Reviewed-by or Acked-by.

PatchRomain NaourVicente Olivert RieraArnout Vandecappelle (Essensium/Mind)
1/9R-b R-b
2/9R-b
3/9R-b R-b T-b
4/9R-b R-b T-b
5/9R-b
6/9R-b
7/9
8/9
9/9R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [Buildroot] [PATCH 0/9 v2] toolchain/external: use generic extract commands (branch yem/extract-cmds)

Hello All!

This series is an attempt at simplifying the way external toolchains are extracted.

Currently, external toolchains use custom extract commands, because they want to exclude a bunch of files during extraction, so as to save a bit of space (locales in some toolchains can account for up to 80% of the size of the toolchain as a whole).

And it turns out, gcc also wants to exclude a bunch of files (java and go, testsuites).

Using custom extract commands means that those packages (and critical ones, at that) can not benefit from the enhancements and fixes made to the generic commands, like the automatic striping of components.

In this series:

- we first introduce the support for the exclusion list;
- we drop the hard-link dereference option to tar, it's useless when

    extracting;
  - we make gcc use the exclusion list;
  - we then make the external toolchains use it (in two passes: one for
    the non-Blackfin case, one for it, as it is 'seecial');

- we allow users to specify an exlcusion list for custom toolchains;
- finaly, we introduce the Codescape MTI and IMG toolchains from Vincent.

Changes RFC -> v2:
- allow user to exclude files for custom toolchain (Romain)
- don't force --hard-dereference, it's useless; instead, drop it
- add the IMG toolchain
- use appropriate toolchain on x86 and x86_64
- rebase on top of master

Regards,
Yann E. MORIN.

The following changes since commit b4660601cdcf9b66b167a08ec2a19e8e4564c7d6:

linux: bump default version to 4.2.4 (2015-10-23 09:27:04 +0200)

are available in the git repository at:

git://git.busybox.net/~ymorin/git/buildroot yem/extract-cmds

for you to fetch changes up to d81c191c32f761351ec9a907feedbd47968cd1ee:

toolchain/external: Codescape toolchains also exist for x86_64 (2015-10-24 14:44:42 +0200)

----------------------------------------------------------------
Vicente Olivert Riera (2):
toolchain/external: add MIPS Codescape MTI GNU Linux toolchain toolchain/external: add MIPS Codescape IMG GNU Linux toolchain

Yann E. MORIN (7):
core/pkg-generic: allow packages to exclude files when extracting toolchain-external/blacfin: always force keeping hardlinks from archives package/gcc: use generic extract commands toolchain/external: use generic extract commands (!blackfin case) toolchain/external: use generic extract commands (blackfin case) toolchain/external: allow user to exclude files from custom toolchains toolchain/external: Codescape toolchains also exist for x86_64

 docs/manual/adding-packages-generic.txt            |   4 +
 package/gcc/gcc-final/gcc-final.mk                 |   3 +-
 package/gcc/gcc-initial/gcc-initial.mk             |   3 +-
 package/gcc/gcc.mk                                 |  15 +--
 package/pkg-generic.mk                             |   5 +-
 toolchain/helpers.mk                               |  12 ++-
 toolchain/toolchain-external/Config.in             | 102 +++++++++++++++++++++
 .../toolchain-external/toolchain-external.hash     |   7 ++
 toolchain/toolchain-external/toolchain-external.mk |  73 ++++++++++-----
 9 files changed, 186 insertions(+), 38 deletions(-)
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'