Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

moveconfig.py

Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Masahiro Yamada's avatar
    bd63e5ba
    tools: moveconfig: exit with error message for not clean directory · bd63e5ba
    Masahiro Yamada authored
    
    When the source tree is not clean, this tool raises an exception
    with a message like follows:
    
    Traceback (most recent call last):
      File "tools/moveconfig.py", line 939, in <module>
        main()
      File "tools/moveconfig.py", line 934, in main
        move_config(config_attrs, options)
      File "tools/moveconfig.py", line 808, in move_config
        while not slots.available():
      File "tools/moveconfig.py", line 733, in available
        if slot.poll():
      File "tools/moveconfig.py", line 645, in poll
        self.parser.update_dotconfig(self.defconfig)
      File "tools/moveconfig.py", line 503, in update_dotconfig
        with open(autoconf_path) as f:
    IOError: [Errno 2] No such file or directory: '/tmp/tmpDtzCgl/include/autoconf.mk'
    
    This does not explain what is wrong.  Show an appropriate error
    message "source tree is not clean, please run 'make mrproper'"
    in such a situation.
    
    Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
    Reviewed-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
    bd63e5ba
    History
    tools: moveconfig: exit with error message for not clean directory
    Masahiro Yamada authored
    
    When the source tree is not clean, this tool raises an exception
    with a message like follows:
    
    Traceback (most recent call last):
      File "tools/moveconfig.py", line 939, in <module>
        main()
      File "tools/moveconfig.py", line 934, in main
        move_config(config_attrs, options)
      File "tools/moveconfig.py", line 808, in move_config
        while not slots.available():
      File "tools/moveconfig.py", line 733, in available
        if slot.poll():
      File "tools/moveconfig.py", line 645, in poll
        self.parser.update_dotconfig(self.defconfig)
      File "tools/moveconfig.py", line 503, in update_dotconfig
        with open(autoconf_path) as f:
    IOError: [Errno 2] No such file or directory: '/tmp/tmpDtzCgl/include/autoconf.mk'
    
    This does not explain what is wrong.  Show an appropriate error
    message "source tree is not clean, please run 'make mrproper'"
    in such a situation.
    
    Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
    Reviewed-by: default avatarJoe Hershberger <joe.hershberger@ni.com>