public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
  • [parent not found: <20240210074601.5363-2-xtex@envs.net>]
  • * [RESEND PATCH 0/2] kbuild: Fix install errors when INSTALL_PATH does not exist
    @ 2024-07-14  8:57 Zhang Bingwu
      2024-07-14  8:57 ` [PATCH 1/2] kbuild: Abort make on install failures Zhang Bingwu
      0 siblings, 1 reply; 4+ messages in thread
    From: Zhang Bingwu @ 2024-07-14  8:57 UTC (permalink / raw)
      To: Russell King, Catalin Marinas, Will Deacon, Geert Uytterhoeven,
    	Dinh Nguyen, James E.J. Bottomley, Helge Deller, Paul Walmsley,
    	Palmer Dabbelt, Albert Ou, Heiko Carstens, Vasily Gorbik,
    	Alexander Gordeev, Christian Borntraeger, Sven Schnelle,
    	David S. Miller, Andreas Larsson, Thomas Gleixner, Ingo Molnar,
    	Borislav Petkov, Dave Hansen, H. Peter Anvin, Zhang Bingwu,
    	Masahiro Yamada, Nathan Chancellor, Nicolas Schier
      Cc: x86, linux-kbuild, linux-arm-kernel, linux-kernel, linux-m68k,
    	linux-parisc, linux-riscv, linux-s390, sparclinux
    
    From: Zhang Bingwu <xtexchooser@duck.com>
    
    When running 'make zinstall INSTALL_PATH=somepath'
     where 'somepath' does not exist, the install
     scripts (install.sh) print error messages
     but also return a success status code.
    This will make 'make' regard 'install' (and 'zinstall', etc)
     succeeded.
    When there are also other targets at the same time,
     for example, 'make zinstall dtbs_install modules_install',
     make will keep going on and other outputs will fill stdout,
     and make the error message hard to find.
    
    dtbs_install and modules_install creates the target directory
     if it does not exist. install, zinstall and others should
     have the same behaviour.
    
    If INSTALL_PATH is not a valid directory, we should create it.
    If the installation process still fails with errors, for example,
     insufficient space on disk or permission denied, make should regard
     the install target failed, stop as soon as possible,
     and exit with error.
    
    Zhang Bingwu (2):
      kbuild: Abort make on install failures
      kbuild: Create INSTALL_PATH directory if it does not exist
    
     arch/arm/boot/install.sh   | 2 ++
     arch/arm64/boot/install.sh | 2 ++
     arch/m68k/install.sh       | 2 ++
     arch/nios2/boot/install.sh | 2 ++
     arch/parisc/install.sh     | 2 ++
     arch/riscv/boot/install.sh | 2 ++
     arch/s390/boot/install.sh  | 2 ++
     arch/sparc/boot/install.sh | 2 ++
     arch/x86/boot/install.sh   | 2 ++
     scripts/install.sh         | 4 ++++
     10 files changed, 22 insertions(+)
    
    
    base-commit: d0f86d080e3d7d5e1e75a56d88daf8e5f56a4146
    -- 
    2.43.0
    
    
    ^ permalink raw reply	[flat|nested] 4+ messages in thread

    end of thread, other threads:[~2024-07-14 19:11 UTC | newest]
    
    Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20240210074601.5363-1-xtex@envs.net>
         [not found] ` <B99CF5DB-276C-4BBC-8D18-C1199BDA104B.1@smtp-inbound1.duck.com>
    2024-02-10 10:18   ` [PATCH 0/2] kbuild: Fix install errors when INSTALL_PATH does not exist Zhang Bingwu
         [not found] ` <20240210074601.5363-2-xtex@envs.net>
         [not found]   ` <ZcdP7CC+OMbp5ZMi@shell.armlinux.org.uk>
    2024-02-10 10:33     ` [PATCH 1/2] kbuild: Abort make on install failures xtex
    2024-07-14  8:57 [RESEND PATCH 0/2] kbuild: Fix install errors when INSTALL_PATH does not exist Zhang Bingwu
    2024-07-14  8:57 ` [PATCH 1/2] kbuild: Abort make on install failures Zhang Bingwu
    2024-07-14 19:10   ` Masahiro Yamada
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox