首页 > 其他分享 >输出编译ota升级包时的打包参数

输出编译ota升级包时的打包参数

时间:2023-09-06 11:35:06浏览次数:49  
标签:extra ota args docstring 升级包 编译 print path opts


build / tools/releasetools/common.py

def ParseOptions(argv,
                  docstring,
                  extra_opts="", extra_long_opts=(),
                  extra_option_handler=None):
   """Parse the options in argv and return any arguments that aren't
   flags.  docstring is the calling module's docstring, to be displayed
   for errors and -h.  extra_opts and extra_long_opts are for flags
   defined by the caller, which are processed by passing them to
   extra_option_handler."""




  try:

opts, args = getopt.getopt(
         argv, "hvp:s:x:" + extra_opts,
         ["help", "verbose", "path=", "signapk_path=", "extra_signapk_args=",
          "java_path=", "java_args=", "public_key_suffix=",
          "private_key_suffix=", "boot_signer_path=", "boot_signer_args=",
          "verity_signer_path=", "verity_signer_args=", "device_specific=",
          "extra="] +
         list(extra_long_opts))


     print("1begin")  
     for i in range(len(opts)):  
         print(opts[i])  
     print("2--")  
     for i in range(len(args)):  
         print(args[i])  
     print("3end")  
  except getopt.GetoptError as err:
     Usage(docstring)
     print "**", str(err), "**"
     sys.exit(2)

标签:extra,ota,args,docstring,升级包,编译,print,path,opts
From: https://blog.51cto.com/u_16248677/7384727

相关文章

  • ota升级包中update-script脚本的生成
    控制升级流程的主要逻辑,实际控制着升级过程中大部分重要操作的实施细节,而处于升级包中同目录下的update-bianry负责真正执行update-script记录的操作。 在负责生成升级包的脚本ota_from_target_files.py中,不论我们调用这个脚本来产生全量包,增量包,或者是安卓新加入的block方式的......
  • 如何编译lex文件和yacc文件
    lex文件:flexfilename.l或者flexfilename.lexyacc文件:bisonfilename.y或者flexfilename.yacclex解析此法yacc解析语法lex说穿了,基本套路就是:1.创建lex文件2.使用flexxxx.lex来生成.c文件3.使用c编译器(如gcc),来生成一个可执行文件。......
  • java既是编译型语言又是解释型语言
    当一个中国人写的小说给美国人看时,为了可以看懂,可以直接整本翻译或者请一个翻译实时翻译编译型相当于整本翻译解释型相当于请一个翻译实时翻译java既是编译型又是解释型语言......
  • 在gradle中添加,但是编译不通过
    compile'com.android.support:design:24.1.1'在gradle中添加,但是编译不通过,需要把compile改成buildgradlemoduledependencies{implementation'androidx.appcompat:appcompat:1.2.0'implementation'com.google.android.material:material:1.3.0&......
  • python3.10及以上版本编译安装ssl模块(openssl)
    由于python3.10之后版本不在支持libressl使用ssl,需要使用openssl安装来解决编译安装python时候遇到的ssl模块导入失败的问题,这里需要用的openssl1.1.1版本或者更高版本在别人的博客查阅到资料,特此记录:https://blog.csdn.net/ye__mo/article/details/129436629?spm=1001.2101.30......
  • GCC编译器
    (1)预处理(preprocessing)、编译(compilation)、汇编(assembly)和链接(linking) gcc-E-ohello.ihello.c //预处理(preprocessing) gcc-S-ohello.shello.i //编译(compilation) gcc-c-ohello.ohello.s //汇编(assembly) gcc-ohellohello.o //链接(link......
  • 编译libxcb遇到的坑
    官网可以下载源码libxcb-1.15.tarxcb-util-cursor-0.1.4.tarxcb-util-image-0.4.1.tarxcb-util-renderutil-0.3.10.tarxcb-util-0.4.1.tarxcb-util-errors-1.0.1.tarxcb-util-keysyms-0.4.1.tarxcb-util-wm-0.4.2.tar为了不污染操作系统的环境我把编译......
  • 编译Linux 2.6.34内核
    编译准备编译环境:Ubuntu14.04GCC版本:4.8.4编译的内核版本:Linux2.6.34内核源码下载:https://mirrors.edge.kernel.org/pub/linux/kernel/编译过程解压源码linux-2.6.34.tar.gz,进入源码目录执行以下命令:#makemrproper#makeclean#makeconfig#make>/dev/null编译......
  • QT编译时qmake和cmake的区别
    qMakeQT+=coreguiQT缺省使用了core和gui库变量TARGET描述了目标文件的名称,即生成的应用程序的名字,默认采用工程文件所在的文件夹名字。变量TEMPLATE描述了为建立目标文件而采用何种模板,即生成何种形式的Makefile文件,有以下5种模板:应用程序app,为建立一个Qt应用程......
  • Windows MSVC 编译 libcurl 库,并导入到 QT 中
    前提QT已经配置好,编译器使用MSVC2017编译libcurl库1、下载curl官网下载,windows选择.zip后缀的文件2、nmake编译(VisualStudio中的附带命令)(1)解压并进入文件夹,双击运行buildconf.bat文件(2)开始菜单找到VisualStudio2017->VisualStudioTools->VC文件夹,选择x86......