コード例 #1
0
ファイル: main.py プロジェクト: Stuw/ac100-repart
def init_externals():
	if not os.path.isdir(generated()):
		os.makedirs(generated())

	if  os.path.isfile(bct_dump()) and \
		os.path.isfile(cbootimage()) and \
		os.path.isfile(externals() + "nvflash/nvflash") and \
		os.path.isfile(externals() + "gpt_surgeon.py") and \
		os.path.isfile(externals() + "uboot-sos.img"):
				return None
	
	print "Initialize externals..."
	res = execute("./init-externals.sh \"%s\"" % log_file())
	if res != 0:
		print "Failed with code %d.\nLog file is ./generated/init.log" % res
		quit()
	print
コード例 #2
0
def init_externals():
    if not os.path.isdir(generated()):
        os.makedirs(generated())

    if  os.path.isfile(bct_dump()) and \
     os.path.isfile(cbootimage()) and \
     os.path.isfile(externals() + "nvflash/nvflash") and \
     os.path.isfile(externals() + "gpt_surgeon.py") and \
     os.path.isfile(externals() + "uboot-sos.img"):
        return None

    print "Initialize externals..."
    res = execute("./init-externals.sh \"%s\"" % log_file())
    if res != 0:
        print "Failed with code %d.\nLog file is ./generated/init.log" % res
        quit()
    print
コード例 #3
0
ファイル: main.py プロジェクト: Stuw/ac100-repart
def uboot_sos():
	res = init(externals() + "uboot-sos.img")
	print "Sos image downloaded with code %d" % res
	return res
コード例 #4
0
def uboot_sos():
    res = init(externals() + "uboot-sos.img")
    print "Sos image downloaded with code %d" % res
    return res