Skip to content
Snippets Groups Projects
Unverified Commit 5abff5e3 authored by Michal Hrusecky's avatar Michal Hrusecky :mouse:
Browse files

kernel: More magic in kmods installation

parent 45bba378
Branches
Tags
No related merge requests found
From 85dc339958818063a931edd3cf5e64f8de0a6506 Mon Sep 17 00:00:00 2001
From bbab5a593a3141bcc0c584b3f295aa1b95cfecce Mon Sep 17 00:00:00 2001
From: Michal Hrusecky <Michal@Hrusecky.net>
Date: Mon, 19 Feb 2018 22:02:58 +0100
Subject: [PATCH] kernel: Include kernel magic in all kmods
......@@ -7,15 +7,26 @@ Kernel modules can greatly depend on configuration of the kernel and might not
work with different kernel, so always put kernel magic as part of the package
version.
Also install modules into directories versioned by the kernel magic.
Signed-off-by: Michal Hrusecky <Michal@Hrusecky.net>
---
include/kernel.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
include/kernel.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/kernel.mk b/include/kernel.mk
index 1b6006a..f0de45b 100644
index 77c5ecf..814e4e0 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -67,7 +67,7 @@ else
LINUX_UNAME_VERSION:=$(strip $(shell cat $(LINUX_DIR)/include/config/kernel.release 2>/dev/null))
endif
- MODULES_SUBDIR:=lib/modules/$(LINUX_UNAME_VERSION)
+ MODULES_SUBDIR:=lib/modules/$(LINUX_UNAME_VERSION)-$(LINUX_VERMAGIC)
TARGET_MODULES_DIR:=$(LINUX_TARGET_DIR)/$(MODULES_SUBDIR)
ifneq ($(TARGET_BUILD),1)
@@ -196,7 +196,7 @@ define KernelPackage
CATEGORY:=Kernel modules
DESCRIPTION:=$(DESCRIPTION)
......@@ -26,5 +37,5 @@ index 1b6006a..f0de45b 100644
$(call KernelPackage/$(1))
$(call KernelPackage/$(1)/$(BOARD))
--
2.16.1
2.19.1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment