Skip to content
Snippets Groups Projects
Forked from KED Software Projects / Miscellaneous / KED U-Boot Fork
Source project has a limited visibility.
  • Masahiro Yamada's avatar
    79d45d32
    tools/genboardscfg.py: fix minor problems on termination · 79d45d32
    Masahiro Yamada authored
    
    This tool deletes the incomplete boards.cfg
    if it encounters an error or is is terminated by the user.
    
    I notice some problems even though they rarely happen.
    
    [1] The boards.cfg is removed if the program is terminated
    during __gen_boards_cfg() function but before boards.cfg
    is actually touched.  In this case, the previous boards.cfg
    should be kept as it is.
    
    [2] If an error occurs while deleting the incomplete boards.cfg,
    the program throws another exception.  This hides the privious
    exception and we will not be able to know the real cause.
    
    Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
    Acked-by: default avatarSimon Glass <sjg@chromium.org>
    79d45d32
    History
    tools/genboardscfg.py: fix minor problems on termination
    Masahiro Yamada authored
    
    This tool deletes the incomplete boards.cfg
    if it encounters an error or is is terminated by the user.
    
    I notice some problems even though they rarely happen.
    
    [1] The boards.cfg is removed if the program is terminated
    during __gen_boards_cfg() function but before boards.cfg
    is actually touched.  In this case, the previous boards.cfg
    should be kept as it is.
    
    [2] If an error occurs while deleting the incomplete boards.cfg,
    the program throws another exception.  This hides the privious
    exception and we will not be able to know the real cause.
    
    Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
    Acked-by: default avatarSimon Glass <sjg@chromium.org>