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 ## depends on ! MINGW32 && ! BARE_METAL
5 ## select LIBC_SUPPORT_LINUXTHREADS
6 ## select LIBC_SUPPORT_THREADS_NONE
8 ## help The de-facto standard for embeded linux systems.
10 ## help Highly configurable, thus as feature-rich as you
11 ## help need, without compromising for size.
15 prompt "uClibc version"
16 # Don't remove next line
17 # CT_INSERT_VERSION_BELOW
19 config LIBC_UCLIBC_V_0_9_32
22 select LIBC_UCLIBC_0_9_32_or_later
24 config LIBC_UCLIBC_V_0_9_31
26 prompt "0.9.31 (EXPERIMENTAL)"
27 depends on EXPERIMENTAL
28 select LIBC_UCLIBC_0_9_30_or_later
30 config LIBC_UCLIBC_V_0_9_30_3
33 select LIBC_UCLIBC_0_9_30_or_later
35 config LIBC_UCLIBC_V_0_9_30_2
38 select LIBC_UCLIBC_0_9_30_or_later
40 config LIBC_UCLIBC_V_0_9_30_1
43 select LIBC_UCLIBC_0_9_30_or_later
45 config LIBC_UCLIBC_V_0_9_30
48 select LIBC_UCLIBC_0_9_30_or_later
50 config LIBC_UCLIBC_V_0_9_29
52 prompt "0.9.29 (OBSOLETE)"
55 config LIBC_UCLIBC_V_0_9_28_3
57 prompt "0.9.28.3 (OBSOLETE)"
60 # As of today (20100702) we can be pretty sure that every
61 # snapshots made since a month ago are post -0.9.30.
63 config LIBC_UCLIBC_V_snapshot
65 prompt "latest snapshot (EXPERIMENTAL)"
66 depends on EXPERIMENTAL
67 select LIBC_SUPPORT_NPTL
68 select LIBC_UCLIBC_0_9_30_or_later
70 config LIBC_UCLIBC_V_specific_date
72 prompt "<specific date> (EXPERIMENTAL)"
73 depends on EXPERIMENTAL
74 select LIBC_SUPPORT_NPTL
75 select LIBC_UCLIBC_0_9_30_or_later
81 prompt "Enter date (YYYYMMDD)" if LIBC_UCLIBC_V_specific_date
82 # Don't remove next line
83 # CT_INSERT_VERSION_STRING_BELOW
84 default "0.9.32" if LIBC_UCLIBC_V_0_9_32
85 default "0.9.31" if LIBC_UCLIBC_V_0_9_31
86 default "0.9.30.3" if LIBC_UCLIBC_V_0_9_30_3
87 default "0.9.30.2" if LIBC_UCLIBC_V_0_9_30_2
88 default "0.9.30.1" if LIBC_UCLIBC_V_0_9_30_1
89 default "0.9.30" if LIBC_UCLIBC_V_0_9_30
90 default "0.9.29" if LIBC_UCLIBC_V_0_9_29
91 default "0.9.28.3" if LIBC_UCLIBC_V_0_9_28_3
92 default "snapshot" if LIBC_UCLIBC_V_snapshot
94 config LIBC_UCLIBC_0_9_32_or_later
96 select LIBC_SUPPORT_NPTL
97 select LIBC_UCLIBC_0_9_30_or_later
99 config LIBC_UCLIBC_0_9_30_or_later
101 select LIBC_UCLIBC_PARALLEL
103 config LIBC_UCLIBC_PARALLEL
108 prompt "uClibc verbosity:"
109 default LIBC_UCLIBC_VERBOSITY_0
111 config LIBC_UCLIBC_VERBOSITY_0
115 Print terse command indications.
117 config LIBC_UCLIBC_VERBOSITY_1
119 prompt "Brief build (show defines, ld flags)"
121 Print simplified command lines.
123 config LIBC_UCLIBC_VERBOSITY_2
125 prompt "Very verbose build"
127 Print full command lines.
131 config LIBC_UCLIBC_VERBOSITY
133 default "" if LIBC_UCLIBC_VERBOSITY_0
134 default "V=1" if LIBC_UCLIBC_VERBOSITY_1
135 default "V=2" if LIBC_UCLIBC_VERBOSITY_2
140 default LIBC_UCLIBC_DEBUG_LEVEL_0
142 config LIBC_UCLIBC_DEBUG_LEVEL_0
146 config LIBC_UCLIBC_DEBUG_LEVEL_1
150 config LIBC_UCLIBC_DEBUG_LEVEL_2
156 config LIBC_UCLIBC_DEBUG_LEVEL
158 default 0 if LIBC_UCLIBC_DEBUG_LEVEL_0
159 default 1 if LIBC_UCLIBC_DEBUG_LEVEL_1
160 default 2 if LIBC_UCLIBC_DEBUG_LEVEL_2
162 config LIBC_UCLIBC_CONFIG_FILE
164 prompt "Configuration file"
167 Path to the configuration file.
169 You _must_ provide one (for now).