Mageia Bugzilla – Attachment 14011 Details for
Bug 32296
Update request: kernel-6.4.16-3.mga9
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Update of disable-mrproper-in-devel-rpms.patch
disable-mrproper-in-devel-rpms.patch (text/plain), 4.18 KB, created by
christian barranco
on 2023-09-27 20:46:43 CEST
(
hide
)
Description:
Update of disable-mrproper-in-devel-rpms.patch
Filename:
MIME Type:
Creator:
christian barranco
Created:
2023-09-27 20:46:43 CEST
Size:
4.18 KB
patch
obsolete
> >Disable clean, scripts, oldconfig, prepare targets for kernel-devel rpms > >Signed-off-by: Thomas Backlund <tmb@mageia.org> > >--- > Makefile | 57 ++++++++++++++++++--------------------------------------- > 1 file changed, 18 insertions(+), 39 deletions(-) > >diff -Nurp linux-6.3/Makefile linux-6.3.mrp/Makefile >--- linux-6.3/Makefile 2023-04-23 22:02:52.000000000 +0300 >+++ linux-6.3.mrp/Makefile 2023-04-24 19:18:57.018160874 +0300 >@@ -685,11 +685,14 @@ ifdef config-build > include $(srctree)/arch/$(SRCARCH)/Makefile > export KBUILD_DEFCONFIG KBUILD_KCONFIG CC_VERSION_TEXT > >-config: outputmakefile scripts_basic FORCE >- $(Q)$(MAKE) $(build)=scripts/kconfig $@ >+config: > >-%config: outputmakefile scripts_basic FORCE >- $(Q)$(MAKE) $(build)=scripts/kconfig $@ >+%config: >+ >+# empty targets to keep dkms happy without need for depending on >+# bison and flex as kernel-devel rpms are already fully prepared >+oldconfig: >+syncconfig: > > else #!config-build > # =========================================================================== >@@ -788,7 +791,7 @@ $(KCONFIG_CONFIG): > # > # Do not use $(call cmd,...) here. That would suppress prompts from syncconfig, > # so you cannot notice that Kconfig is waiting for the user input. >-%/config/auto.conf %/config/auto.conf.cmd %/generated/autoconf.h %/generated/rustc_cfg: $(KCONFIG_CONFIG) >+%/config/auto.conf %/generated/autoconf.h %/generated/rustc_cfg: $(KCONFIG_CONFIG) > $(Q)$(kecho) " SYNC $@" > $(Q)$(MAKE) -f $(srctree)/Makefile syncconfig > else # !may-sync-config >@@ -1266,8 +1269,7 @@ include/config/kernel.release: FORCE > # Carefully list dependencies so we do not try to build scripts twice > # in parallel > PHONY += scripts >-scripts: scripts_basic scripts_dtc >- $(Q)$(MAKE) $(build)=$(@) >+scripts: > > # Things we need to do before we recursively start building the kernel > # or the modules are listed in "prepare". >@@ -1281,16 +1283,10 @@ archprepare: outputmakefile archheaders > asm-generic $(version_h) $(autoksyms_h) include/generated/utsrelease.h \ > include/generated/compile.h include/generated/autoconf.h remove-stale-files > >-prepare0: archprepare >- $(Q)$(MAKE) $(build)=scripts/mod >- $(Q)$(MAKE) $(build)=. prepare >+prepare0: > > # All the preparing.. >-prepare: prepare0 >-ifdef CONFIG_RUST >- $(Q)$(CONFIG_SHELL) $(srctree)/scripts/rust_is_available.sh >- $(Q)$(MAKE) $(build)=rust >-endif >+prepare: > > PHONY += remove-stale-files > remove-stale-files: >@@ -1405,7 +1401,7 @@ quiet_cmd_install = INSTALL $(INSTALL_PA > # Tools > > ifdef CONFIG_OBJTOOL >-prepare: tools/objtool >+prepare: > endif > > ifdef CONFIG_BPF >@@ -1543,8 +1539,7 @@ endif > modules: modules_prepare > > # Target to prepare building external modules >-modules_prepare: prepare >- $(Q)$(MAKE) $(build)=scripts scripts/module.lds >+modules_prepare: > > export modules_sign_only := > >@@ -1590,22 +1585,10 @@ endif # CONFIG_MODULES > # make distclean Remove editor backup files, patch leftover files and the like > > # Directories & files removed with 'make clean' >-CLEAN_FILES += include/ksym vmlinux.symvers modules-only.symvers \ >- modules.builtin modules.builtin.modinfo modules.nsdeps \ >- compile_commands.json .thinlto-cache rust/test rust/doc \ >- rust-project.json .vmlinux.objs .vmlinux.export.c >+CLEAN_FILES += "" > > # Directories & files removed with 'make mrproper' >-MRPROPER_FILES += include/config include/generated \ >- arch/$(SRCARCH)/include/generated .objdiff \ >- debian snap tar-install \ >- .config .config.old .version \ >- Module.symvers \ >- certs/signing_key.pem \ >- certs/x509.genkey \ >- vmlinux-gdb.py \ >- *.spec rpmbuild \ >- rust/libmacros.so >+MRPROPER_FILES += "" > > # clean - Delete most, but leave enough to build external modules > # >@@ -1621,18 +1604,14 @@ clean: archclean vmlinuxclean resolve_bt > > # mrproper - Delete all generated files, including .config > # >-mrproper: rm-files := $(wildcard $(MRPROPER_FILES)) >-mrproper-dirs := $(addprefix _mrproper_,scripts) >+mrproper: >+mrproper-dirs := > > PHONY += $(mrproper-dirs) mrproper > $(mrproper-dirs): > $(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@) > >-mrproper: clean $(mrproper-dirs) >- $(call cmd,rmfiles) >- @find . $(RCS_FIND_IGNORE) \ >- \( -name '*.rmeta' \) \ >- -type f -print | xargs rm -f >+mrproper: > > # distclean > #
Disable clean, scripts, oldconfig, prepare targets for kernel-devel rpms Signed-off-by: Thomas Backlund <tmb@mageia.org> --- Makefile | 57 ++++++++++++++++++--------------------------------------- 1 file changed, 18 insertions(+), 39 deletions(-) diff -Nurp linux-6.3/Makefile linux-6.3.mrp/Makefile --- linux-6.3/Makefile 2023-04-23 22:02:52.000000000 +0300 +++ linux-6.3.mrp/Makefile 2023-04-24 19:18:57.018160874 +0300 @@ -685,11 +685,14 @@ ifdef config-build include $(srctree)/arch/$(SRCARCH)/Makefile export KBUILD_DEFCONFIG KBUILD_KCONFIG CC_VERSION_TEXT -config: outputmakefile scripts_basic FORCE - $(Q)$(MAKE) $(build)=scripts/kconfig $@ +config: -%config: outputmakefile scripts_basic FORCE - $(Q)$(MAKE) $(build)=scripts/kconfig $@ +%config: + +# empty targets to keep dkms happy without need for depending on +# bison and flex as kernel-devel rpms are already fully prepared +oldconfig: +syncconfig: else #!config-build # =========================================================================== @@ -788,7 +791,7 @@ $(KCONFIG_CONFIG): # # Do not use $(call cmd,...) here. That would suppress prompts from syncconfig, # so you cannot notice that Kconfig is waiting for the user input. -%/config/auto.conf %/config/auto.conf.cmd %/generated/autoconf.h %/generated/rustc_cfg: $(KCONFIG_CONFIG) +%/config/auto.conf %/generated/autoconf.h %/generated/rustc_cfg: $(KCONFIG_CONFIG) $(Q)$(kecho) " SYNC $@" $(Q)$(MAKE) -f $(srctree)/Makefile syncconfig else # !may-sync-config @@ -1266,8 +1269,7 @@ include/config/kernel.release: FORCE # Carefully list dependencies so we do not try to build scripts twice # in parallel PHONY += scripts -scripts: scripts_basic scripts_dtc - $(Q)$(MAKE) $(build)=$(@) +scripts: # Things we need to do before we recursively start building the kernel # or the modules are listed in "prepare". @@ -1281,16 +1283,10 @@ archprepare: outputmakefile archheaders asm-generic $(version_h) $(autoksyms_h) include/generated/utsrelease.h \ include/generated/compile.h include/generated/autoconf.h remove-stale-files -prepare0: archprepare - $(Q)$(MAKE) $(build)=scripts/mod - $(Q)$(MAKE) $(build)=. prepare +prepare0: # All the preparing.. -prepare: prepare0 -ifdef CONFIG_RUST - $(Q)$(CONFIG_SHELL) $(srctree)/scripts/rust_is_available.sh - $(Q)$(MAKE) $(build)=rust -endif +prepare: PHONY += remove-stale-files remove-stale-files: @@ -1405,7 +1401,7 @@ quiet_cmd_install = INSTALL $(INSTALL_PA # Tools ifdef CONFIG_OBJTOOL -prepare: tools/objtool +prepare: endif ifdef CONFIG_BPF @@ -1543,8 +1539,7 @@ endif modules: modules_prepare # Target to prepare building external modules -modules_prepare: prepare - $(Q)$(MAKE) $(build)=scripts scripts/module.lds +modules_prepare: export modules_sign_only := @@ -1590,22 +1585,10 @@ endif # CONFIG_MODULES # make distclean Remove editor backup files, patch leftover files and the like # Directories & files removed with 'make clean' -CLEAN_FILES += include/ksym vmlinux.symvers modules-only.symvers \ - modules.builtin modules.builtin.modinfo modules.nsdeps \ - compile_commands.json .thinlto-cache rust/test rust/doc \ - rust-project.json .vmlinux.objs .vmlinux.export.c +CLEAN_FILES += "" # Directories & files removed with 'make mrproper' -MRPROPER_FILES += include/config include/generated \ - arch/$(SRCARCH)/include/generated .objdiff \ - debian snap tar-install \ - .config .config.old .version \ - Module.symvers \ - certs/signing_key.pem \ - certs/x509.genkey \ - vmlinux-gdb.py \ - *.spec rpmbuild \ - rust/libmacros.so +MRPROPER_FILES += "" # clean - Delete most, but leave enough to build external modules # @@ -1621,18 +1604,14 @@ clean: archclean vmlinuxclean resolve_bt # mrproper - Delete all generated files, including .config # -mrproper: rm-files := $(wildcard $(MRPROPER_FILES)) -mrproper-dirs := $(addprefix _mrproper_,scripts) +mrproper: +mrproper-dirs := PHONY += $(mrproper-dirs) mrproper $(mrproper-dirs): $(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@) -mrproper: clean $(mrproper-dirs) - $(call cmd,rmfiles) - @find . $(RCS_FIND_IGNORE) \ - \( -name '*.rmeta' \) \ - -type f -print | xargs rm -f +mrproper: # distclean #
View Attachment As Raw
Actions:
View
Attachments on
bug 32296
:
14010
| 14011 |
14019
|
14020