Forum Discussion
Altera_Forum
Honored Contributor
20 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- I don't understand how to update the kernel Makefile for modules install--- Makefile 2006/01/26 06:13:18 1.1
+++ Makefile 2006/01/26 06:14:23
@@ -894,7 +894,7 @@
ifeq "$(strip $(INSTALL_MOD_PATH))" ""
depmod_opts :=
else
-depmod_opts := -b $(INSTALL_MOD_PATH)/lib/modules -r
+depmod_opts := -b $(INSTALL_MOD_PATH) -r
endif
.PHONY: _modinst_post
_modinst_post: _modinst_[/b] --- Quote End --- That's a format of diff/patch command. You can use editor, open Makefile, go to line 897, it was, depmod_opts := -b $(INSTALL_MOD_PATH)/lib/modules -r change it to depmod_opts := -b $(INSTALL_MOD_PATH) -r Do you remember, we have several "patch" commands in the post? A patch file is generated with the "diff" command. When we change some files, we can find the differences from what they were before we change. Send only the change to others, and he can update the files with "patch" command. So if you save the "diff" to a file, Makefile.diff you can update without using editor, with the command cd ~/linux-2.6.x
patch -p0 <Makefile.diff The parameter "-p0" mean cut zero dir level from file header, ie, the files in diff are in the same directory. Sometime, we use "-p1", we cut one level dir level from file header. eg, "linux-2.6.x/Makefile" with "-p1" will be the same as "Makefile" with "-p0" .