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 ## help gdb is the GNU debugger
5 source "config/debug/gdb.in.cross"
6 source "config/debug/gdb.in.native"
7 source "config/debug/gdb.in.gdbserver"
9 if GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
13 config DEBUG_GDB_SHOW_LINARO
15 prompt "Show Linaro versions (EXPERIMENTAL)"
16 depends on EXPERIMENTAL
18 Linaro is maintaining some advanced/more stable/experimental versions
19 of gdb, especially for the ARM architecture.
21 Those versions have not been blessed by the gdb community (nor have they
22 been cursed either!), but they look to be pretty much stable, and even
23 more stable than the upstream versions. YMMV...
25 If you do not know what this Linaro stuff is, then simply say 'n' here,
26 and rest in peace. OTOH, if you know what you are doing, you will be
27 able to use and enjoy :-) the Linaro versions by saying 'y' here.
29 Linaro: http://www.linaro.org/
34 # Don't remove next line
35 # CT_INSERT_VERSION_BELOW
37 config GDB_V_linaro_7_3_2011_10
39 prompt "linaro-7.3-2011.10 (EXPERIMENTAL)"
40 depends on DEBUG_GDB_SHOW_LINARO
41 select GDB_7_0_or_later
45 prompt "7.3a (EXPERIMENTAL)"
46 depends on EXPERIMENTAL
47 select GDB_7_0_or_later
49 config GDB_V_linaro_7_2_2011_05_0
51 prompt "linaro-7.2-2011.05-0 (EXPERIMENTAL)"
52 depends on DEBUG_GDB_SHOW_LINARO
53 select GDB_7_0_or_later
57 prompt "7.2a (EXPERIMENTAL)"
58 depends on EXPERIMENTAL
59 select GDB_7_0_or_later
63 prompt "7.1a (EXPERIMENTAL)"
64 depends on EXPERIMENTAL
65 select GDB_7_0_or_later
69 prompt "7.0.1a (EXPERIMENTAL)"
70 depends on EXPERIMENTAL
71 select GDB_7_0_or_later
75 prompt "7.0a (EXPERIMENTAL)"
76 depends on EXPERIMENTAL
77 select GDB_7_0_or_later
85 config GDB_7_0_or_later
87 select GDB_HAS_PKGVERSION_BUGURL
88 select GDB_INSTALL_GDBINIT
90 config GDB_HAS_PKGVERSION_BUGURL
93 config GDB_INSTALL_GDBINIT
98 # Don't remove next line
99 # CT_INSERT_VERSION_STRING_BELOW
100 default "linaro-7.3-2011.10" if GDB_V_linaro_7_3_2011_10
101 default "7.3a" if GDB_V_7_3a
102 default "linaro-7.2-2011.05-0" if GDB_V_linaro_7_2_2011_05_0
103 default "7.2a" if GDB_V_7_2a
104 default "7.1a" if GDB_V_7_1a
105 default "7.0.1a" if GDB_V_7_0_1a
106 default "7.0a" if GDB_V_7_0a
107 default "6.8a" if GDB_V_6_8a