linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] kbuild: Fix install errors when INSTALL_PATH does not exist
@ 2024-02-10  7:45 Zhang Bingwu
  2024-02-10  7:46 ` [PATCH 1/2] kbuild: Abort make on install failures Zhang Bingwu
  2024-02-10  7:46 ` [PATCH 2/2] kbuild: Create INSTALL_PATH directory if it does not exist Zhang Bingwu
  0 siblings, 2 replies; 11+ messages in thread
From: Zhang Bingwu @ 2024-02-10  7:45 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-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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [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; 11+ 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] 11+ messages in thread

end of thread, other threads:[~2024-07-14 19:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-10  7:45 [PATCH 0/2] kbuild: Fix install errors when INSTALL_PATH does not exist Zhang Bingwu
2024-02-10  7:46 ` [PATCH 1/2] kbuild: Abort make on install failures Zhang Bingwu
2024-02-10 10:29   ` Russell King (Oracle)
2024-02-10 10:33     ` xtex
2024-02-10 21:19     ` Nicolas Schier
2024-02-10 23:35       ` Masahiro Yamada
2024-02-11 10:31         ` xtex
2024-02-10  7:46 ` [PATCH 2/2] kbuild: Create INSTALL_PATH directory if it does not exist Zhang Bingwu
2024-02-10 21:26   ` Nicolas Schier
  -- strict thread matches above, loose matches on Subject: below --
2024-07-14  8:57 [RESEND PATCH 0/2] kbuild: Fix install errors when INSTALL_PATH " 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;
as well as URLs for NNTP newsgroup(s).