Add sun8i target config.
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
diff -uNr a/Makefile b/Makefile
|
||||
--- a/Makefile 2016-04-27 14:08:20.000000000 +0200
|
||||
+++ b/Makefile 2016-11-28 14:49:46.120488923 +0100
|
||||
@@ -1115,20 +1115,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 `cd $(srctree) && /bin/pwd` $(MODLIB)/source
|
||||
- @if [ ! $(objtree) -ef $(MODLIB)/build ]; then \
|
||||
- rm -f $(MODLIB)/build ; \
|
||||
- ln -s $(CURDIR) $(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 `cd $(srctree) && /bin/pwd` $(MODLIB)/source
|
||||
+ #@if [ ! $(objtree) -ef $(MODLIB)/build ]; then \
|
||||
+ # rm -f $(MODLIB)/build ; \
|
||||
+ # ln -s $(CURDIR) $(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 -uNr a/scripts/Makefile.modinst b/scripts/Makefile.modinst
|
||||
--- a/scripts/Makefile.modinst 2016-04-27 14:08:20.000000000 +0200
|
||||
+++ b/scripts/Makefile.modinst 2016-11-28 14:15:17.739232018 +0100
|
||||
@@ -27,9 +27,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))
|
||||
@@ -0,0 +1,51 @@
|
||||
diff -urN a/Makefile b/Makefile
|
||||
--- a/Makefile 2016-11-18 23:06:38.000000000 +0100
|
||||
+++ b/Makefile 2016-12-06 12:38:53.134958521 +0100
|
||||
@@ -1116,20 +1116,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 `cd $(srctree) && /bin/pwd` $(MODLIB)/source
|
||||
- @if [ ! $(objtree) -ef $(MODLIB)/build ]; then \
|
||||
- rm -f $(MODLIB)/build ; \
|
||||
- ln -s $(CURDIR) $(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 `cd $(srctree) && /bin/pwd` $(MODLIB)/source
|
||||
+ #@if [ ! $(objtree) -ef $(MODLIB)/build ]; then \
|
||||
+ # rm -f $(MODLIB)/build ; \
|
||||
+ # ln -s $(CURDIR) $(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-18 23:06:38.000000000 +0100
|
||||
+++ b/scripts/Makefile.modinst 2016-12-06 12:39:35.659162899 +0100
|
||||
@@ -27,9 +27,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))
|
||||
Reference in New Issue
Block a user