Files
domo/bsp/buildroot_external/patches/linux/sun8i/001awox-install-module.patch
2016-12-06 18:12:11 +01:00

52 lines
1.8 KiB
Diff

diff -urN a/Makefile b/Makefile
--- a/Makefile 2016-11-16 12:37:21.000000000 +0100
+++ b/Makefile 2016-11-22 11:58:52.000000000 +0100
@@ -1114,20 +1114,20 @@
# Target to install modules
PHONY += modules_install
-modules_install: _modinst_ _modinst_post
+modules_install: _modinst_ #_modinst_post
PHONY += _modinst_
_modinst_:
- @rm -rf $(MODLIB)/kernel
- @rm -f $(MODLIB)/source
- @mkdir -p $(MODLIB)/kernel
- @ln -s $(srctree) $(MODLIB)/source
- @if [ ! $(objtree) -ef $(MODLIB)/build ]; then \
- rm -f $(MODLIB)/build ; \
- ln -s $(objtree) $(MODLIB)/build ; \
- fi
- @cp -f $(objtree)/modules.order $(MODLIB)/
- @cp -f $(objtree)/modules.builtin $(MODLIB)/
+ #@rm -rf $(MODLIB)/kernel
+ #@rm -f $(MODLIB)/source
+ #@mkdir -p $(MODLIB)/kernel
+ #@ln -s $(srctree) $(MODLIB)/source
+ #@if [ ! $(objtree) -ef $(MODLIB)/build ]; then \
+ # rm -f $(MODLIB)/build ; \
+ # ln -s $(objtree) $(MODLIB)/build ; \
+ #fi
+ #@cp -f $(objtree)/modules.order $(MODLIB)/
+ #@cp -f $(objtree)/modules.builtin $(MODLIB)/
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst
# This depmod is only for convenience to give the initial
diff -urN a/scripts/Makefile.modinst b/scripts/Makefile.modinst
--- a/scripts/Makefile.modinst 2016-11-16 12:37:21.000000000 +0100
+++ b/scripts/Makefile.modinst 2016-11-14 12:38:15.000000000 +0100
@@ -21,9 +21,10 @@
# Modules built outside the kernel source tree go into extra by default
INSTALL_MOD_DIR ?= extra
-ext-mod-dir = $(INSTALL_MOD_DIR)$(subst $(patsubst %/,%,$(KBUILD_EXTMOD)),,$(@D))
+ext-mod-dir = $(INSTALL_MOD_DIR)$(subst $(KBUILD_EXTMOD),,$(@D))
-modinst_dir = $(if $(KBUILD_EXTMOD),$(ext-mod-dir),kernel/$(@D))
+#modinst_dir = $(if $(KBUILD_EXTMOD),$(ext-mod-dir),kernel/$(@D))
+modinst_dir =
$(modules):
$(call cmd,modules_install,$(MODLIB)/$(modinst_dir))