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>
3 menu "Operating System"
5 # Config option used throughout the config and code to determine wether
6 # we have a kernel or not (there might be different bare metal stuff)...
13 # Each target OS (aka kernel) that support shared libraries can select
14 # this, so the user can decide whether or not to build a shared library
16 config KERNEL_SUPPORTS_SHARED_LIBS
25 source "config.gen/kernel.in"
27 comment "Common kernel options"
31 prompt "Build shared libraries"
32 depends on KERNEL_SUPPORTS_SHARED_LIBS
35 Say 'y' here, unless you don't want shared libraries.
37 You might not want shared libraries if you're building for a target that
38 don't support it (maybe some nommu targets, for example, or bare metal).
40 source "config.gen/kernel.in.2"