diff --git a/core/Makefile b/core/Makefile index c5803f91c7..82fe3418dd 100644 --- a/core/Makefile +++ b/core/Makefile @@ -766,7 +766,6 @@ $(3)/$(DEPMOD_STAGING_SUBDIR)/modules.dep: $(1) $(6) $(if $(6),\ unzip -qo -d $$(PRIVATE_MODULE_DIR) $$(PRIVATE_MODULE_ARCHIVE); \ mkdir -p $$(PRIVATE_OUTPUT_DIR)/lib; \ - rm -rf $$(PRIVATE_OUTPUT_DIR)/lib/modules; \ cp -r $$(PRIVATE_MODULE_DIR) $$(PRIVATE_OUTPUT_DIR)/lib/; \ find $$(PRIVATE_MODULE_DIR) -type f -name *.ko | xargs basename -a > $$(PRIVATE_LOAD_FILE); \ )