summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/lib/bsp/tags.py2
-rwxr-xr-xscripts/yocto-bsp13
2 files changed, 14 insertions, 1 deletions
diff --git a/scripts/lib/bsp/tags.py b/scripts/lib/bsp/tags.py
index 256b25c..6d5feb0 100644
--- a/scripts/lib/bsp/tags.py
+++ b/scripts/lib/bsp/tags.py
@@ -41,7 +41,7 @@ INPUT_TYPE_PROPERTY = "type"
41 41
42SRC_URI_FILE = "file://" 42SRC_URI_FILE = "file://"
43 43
44 44GIT_CHECK_URI = "git://git.yoctoproject.org/linux-yocto-dev.git"
45 45
46 46
47 47
diff --git a/scripts/yocto-bsp b/scripts/yocto-bsp
index 126fc8d..d269861 100755
--- a/scripts/yocto-bsp
+++ b/scripts/yocto-bsp
@@ -58,6 +58,8 @@ def yocto_bsp_create_subcommand(args, usage_str):
58 help = "name of file containing the values for BSP properties as a JSON file") 58 help = "name of file containing the values for BSP properties as a JSON file")
59 parser.add_option("-c", "--codedump", dest = "codedump", action = "store_true", 59 parser.add_option("-c", "--codedump", dest = "codedump", action = "store_true",
60 default = False, help = "dump the generated code to bspgen.out") 60 default = False, help = "dump the generated code to bspgen.out")
61 parser.add_option("-s", "--skip-git-check", dest = "git_check", action = "store_false",
62 default = True, help = "skip the git connectivity check")
61 (options, args) = parser.parse_args(args) 63 (options, args) = parser.parse_args(args)
62 64
63 if len(args) != 2: 65 if len(args) != 2:
@@ -73,6 +75,17 @@ def yocto_bsp_create_subcommand(args, usage_str):
73 else: 75 else:
74 bsp_output_dir = "meta-" + machine 76 bsp_output_dir = "meta-" + machine
75 77
78 if options.git_check and not options.properties_file:
79 print "Checking basic git connectivity..."
80 if not verify_git_repo(GIT_CHECK_URI):
81 print "Couldn't verify git connectivity, exiting\n"
82 print "Details: couldn't access %s" % GIT_CHECK_URI
83 print " (this most likely indicates a network connectivity problem or"
84 print " a misconfigured git intallation)"
85 sys.exit(1)
86 else:
87 print "Done.\n"
88
76 yocto_bsp_create(machine, karch, scripts_path, bsp_output_dir, options.codedump, options.properties_file) 89 yocto_bsp_create(machine, karch, scripts_path, bsp_output_dir, options.codedump, options.properties_file)
77 90
78 91