UBUNTU: SAUCE: scripts: remove generating .o-ur objects

BugLink: https://bugs.launchpad.net/bugs/2046440

Remove patch to upstream build system to generate Ubuntu retpoline
data files, as used to be used for a defunct retpoline build time
check.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
This commit is contained in:
Dimitri John Ledkov
2023-12-14 12:09:50 +00:00
committed by Paolo Pisati
parent 9c888e2099
commit f921eba36b
-8
View File
@@ -221,19 +221,12 @@ ifneq ($(findstring 1, $(KBUILD_EXTRA_WARN)),)
cmd_warn_shared_object = $(if $(word 2, $(modname-multi)),$(warning $(kbuild-file): $*.o is added to multiple modules: $(modname-multi)))
endif
ifdef CONFIG_RETPOLINE
cmd_ubuntu_retpoline = $(CONFIG_SHELL) $(srctree)/scripts/ubuntu-retpoline-extract-one $(@) $(<) "$(filter -m16 %code16gcc.h,$(a_flags))";
else
cmd_ubuntu_retpoline =
endif
define rule_cc_o_c
$(call cmd_and_fixdep,cc_o_c)
$(call cmd,checksrc)
$(call cmd,checkdoc)
$(call cmd,gen_objtooldep)
$(call cmd,gen_symversions_c)
$(call cmd,ubuntu-retpoline)
$(call cmd,record_mcount)
$(call cmd,warn_shared_object)
endef
@@ -242,7 +235,6 @@ define rule_as_o_S
$(call cmd_and_fixdep,as_o_S)
$(call cmd,gen_objtooldep)
$(call cmd,gen_symversions_S)
$(call cmd,ubuntu-retpoline)
$(call cmd,warn_shared_object)
endef