Replace git@ with https://
Opened this issue · 0 comments
ioerror commented
The current build-csky-gcc.py
attempts to clone with the git command using git@github.com. This invokes the ssh command which required credentials. I replaced it with git clones that use https rather than git over ssh. I don't think this is strictly needed but I found it useful:
diff --git a/build-csky-gcc.py b/build-csky-gcc.py
index 03728e1..ca4774d 100755
--- a/build-csky-gcc.py
+++ b/build-csky-gcc.py
@@ -985,6 +985,12 @@ def build_toolchain_env(options, mm):
cmd = build_cmd(options, "git clone %s %s", (url, source_dirname + "/" + m))
cmd += build_cmd(options, "%s", " ".join(opt))
+ if url.startswith("https://"):
+ cmd = build_cmd(options, "git clone %s %s", (url, source_dirname + "/" + m))
+ cmd += build_cmd(options, "%s", " ".join(opt))
+
if url.startswith("git@"):
cmd = build_cmd(options, "git clone %s %s", (url, source_dirname + "/" + m))
cmd += build_cmd(options, "%s", " ".join(opt))
@@ -1242,14 +1248,14 @@ profile = {
}
component = {
- "binutils" : { "url" : "git@github.com:c-sky/binutils-gdb.git",
+ "binutils" : { "url" : "https://github.com/c-sky/binutils-gdb.git",
"debug" : 'CFLAGS="-g -O0" CXXFLAGS="-g -O0"',
"default" : '--disable-gdb --disable-werror',
"worker" : [(build_binutils, "")],
"tos" : {"linux" : "--with-sysroot=yes"},
},
- "gcc" : { "url" : "git@github.com:c-sky/gcc.git",
+ "gcc" : { "url" : "https://github.com/c-sky/gcc.git",
"debug" : 'CFLAGS="-g -O0" CXXFLAGS="-g -O0"',
"worker" : [(build_gcc_initial, "binutils"), (build_gcc, "--libc")],
"bos" : build_gcc_bos,
@@ -1263,7 +1269,7 @@ component = {
: build_gcc_compatibility,
},
- "minilibc" : { "url" : "git@github.com:c-sky/toolchain-build.git",
+ "minilibc" : { "url" : "https://github.com/c-sky/toolchain-build.git",
"worker" : [(build_minilibc, "gcc.0")],
},
@@ -1274,12 +1280,12 @@ component = {
"multilib" : ["MULTILIB_OPTIONS=mpic"]
},
- "uclibc-ng" : { "url" : "git@github.com:c-sky/uclibc-ng.git, --depth=1",
+ "uclibc-ng" : { "url" : "https://github.com/c-sky/uclibc-ng.git, --depth=1",
"worker" : [(build_uclibc_ng, "linux-libc-headers, gcc.0")],
"multilib" : ["MULTILIB_OPTIONS=mpic"]
},
- "glibc" : { "url" : "git@github.com:c-sky/glibc.git",
+ "glibc" : { "url" : "https://github.com/c-sky/glibc.git",
"worker" : [(build_glibc, "linux-libc-headers, gcc.0")],
"multilib" : ["MULTILIB_OPTIONS=mpic/mno-pic"],
"compatibility"
@@ -1288,7 +1294,7 @@ component = {
"linux-libc-headers" :
{
- "url" : "git@github.com:c-sky/linux-4.9.y.git, --depth=1",
+ "url" : "https://github.com/c-sky/linux-4.9.y.git, --depth=1",
"worker" : [(build_linux_libc_headers, "")],
"comment" : "this is dir of linux kernel source code as default because the headers are geted from that :) \
also you can set pure linux include dir like '--linux-libc-headers-src=$(your/include/../path),type=inc' \
@@ -1296,7 +1302,7 @@ component = {
},
"gdb" :
{
- "url" : "git@github.com:c-sky/binutils-gdb.git, --branch=gdb-7.12-branch-csky",
+ "url" : "https://github.com/c-sky/binutils-gdb.git, --branch=gdb-7.12-branch-csky",
"default" : '--disable-ld --disable-gas --disable-binutils --disable-gold --disable-gprof --without-auto-load-safe-path --with-python=no --disable-sim --enable-install-libbfd',
"worker" : [(build_gdb, "")],
},