diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst index 2e2e31696fd6..ff9b09e4cfca 100644 --- a/scripts/Makefile.modinst +++ b/scripts/Makefile.modinst @@ -24,10 +24,6 @@ suffix-$(CONFIG_MODULE_COMPRESS_XZ) := .xz suffix-$(CONFIG_MODULE_COMPRESS_ZSTD) := .zst modules := $(patsubst $(extmod_prefix)%, $(dst)/%$(suffix-y), $(modules)) -ifneq ($(KBUILD_EXTMOD),) -extmod_suffix := $(subst /,_,$(subst .,_,$(subst -,_,$(KBUILD_EXTMOD)))) -modules += $(dst)/modules.order.$(extmod_suffix) -endif __modinst: $(modules) @: @@ -86,12 +82,6 @@ $(dst)/%.ko: $(extmod_prefix)%.ko FORCE $(call cmd,strip) $(call cmd,sign) -ifneq ($(KBUILD_EXTMOD),) -$(dst)/modules.order.$(extmod_suffix): $(MODORDER) FORCE - $(call cmd,install) - @sed -i "s:^$(KBUILD_EXTMOD):$(INSTALL_MOD_DIR):g" $@ -endif - else $(dst)/%.ko: FORCE