scripts/functions: Fix CT_ExtractGit function.
Change CT_ExtractGit so that it clones the repository, instead of just
symlinking it. After cloning, any given ref is checked out, or if no
ref is given, the HEAD of the repository is checked out.
This makes CT_Extract behave similar for git repositories as it does
for tarballs, so that it for example can be used for passing glibc-ports
as a git repository.
Signed-off-by: "Esben Haabendal" <esben.haabendal@prevas.dk>
[yann.morin.1998@anciens.enib.fr: fix incomplete var rename]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
1 # Companion libraries config options
2 # Those libraries are required for different versions of gcc,
3 # and can be used by binutils and gdb (maybe others as well).
5 menu "Companion libraries"
13 select COMPLIBS_NEEDED
18 select COMPLIBS_NEEDED
23 select COMPLIBS_NEEDED
28 select COMPLIBS_NEEDED
33 select COMPLIBS_NEEDED
38 select COMPLIBS_NEEDED
77 source "config/companion_libs/gmp.in"
80 source "config/companion_libs/mpfr.in"
83 source "config/companion_libs/ppl.in"
86 source "config/companion_libs/cloog.in"
89 source "config/companion_libs/mpc.in"
91 if LIBELF || LIBELF_TARGET
92 comment "libelf version needed to build for target"
94 source "config/companion_libs/libelf.in"
102 comment "Companion libraries common options"
104 config COMPLIBS_CHECK
106 prompt "Check the companion libraries builds (!!! READ HELP!!!)"
108 It is highly recommended to check the newly built companion libraries.
109 Unfortunately, this is a very intensive task, and takes a loooong time.
111 Checking the newly built companion libraries is thus disabled by default,
112 but it is suggested that you check them at least once on your machine,
113 and if they work, disable the check on subsequent builds.
115 If you suspect that one (or more) of your companion libraries is the
116 cause for incorrectly generated code, you should answer 'Y' here.
117 Note however that this will take a really long time. For example,
118 building PPL on my machine takes roughly 1'40", while checking it takes