Skip to content

Commit 3d1450d

Browse files
zx2c4Michal Marek
authored and
Michal Marek
committed
Makefile: Force gzip and xz on module install
Running `make modules_install` ordinarily will overwrite existing modules. This is the desired behavior, and is how pretty much every other `make install` target works. However, if CONFIG_MODULE_COMPRESS is enabled, modules are passed through gzip and xz which then do the file writing. Both gzip and xz will error out if the file already exists, unless -f is passed. This patch adds -f so that the behavior is uniform. Signed-off-by: Jason A. Donenfeld <[email protected]> Signed-off-by: Michal Marek <[email protected]>
1 parent 6dd3f13 commit 3d1450d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,10 +852,10 @@ export mod_strip_cmd
852852
mod_compress_cmd = true
853853
ifdef CONFIG_MODULE_COMPRESS
854854
ifdef CONFIG_MODULE_COMPRESS_GZIP
855-
mod_compress_cmd = gzip -n
855+
mod_compress_cmd = gzip -n -f
856856
endif # CONFIG_MODULE_COMPRESS_GZIP
857857
ifdef CONFIG_MODULE_COMPRESS_XZ
858-
mod_compress_cmd = xz
858+
mod_compress_cmd = xz -f
859859
endif # CONFIG_MODULE_COMPRESS_XZ
860860
endif # CONFIG_MODULE_COMPRESS
861861
export mod_compress_cmd

0 commit comments

Comments
 (0)