Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace git@ with https:// #1

Open
ioerror opened this issue Apr 16, 2020 · 1 comment
Open

Replace git@ with https:// #1

ioerror opened this issue Apr 16, 2020 · 1 comment

Comments

@ioerror
Copy link

ioerror commented Apr 16, 2020

The current build-csky-gcc.py attempts to clone with the git command using [email protected]. 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"		: "[email protected]: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"		: "[email protected]: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"		: "[email protected]: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"		: "[email protected]: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"		: "[email protected]: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"		: "[email protected]: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"	: "[email protected]: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, "")],
 		},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@ioerror and others