diff options
Diffstat (limited to 'main/mkinitfs/0001-mkinitfs-fix-kernel-module-dependency-tracing.patch')
-rw-r--r-- | main/mkinitfs/0001-mkinitfs-fix-kernel-module-dependency-tracing.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/main/mkinitfs/0001-mkinitfs-fix-kernel-module-dependency-tracing.patch b/main/mkinitfs/0001-mkinitfs-fix-kernel-module-dependency-tracing.patch new file mode 100644 index 0000000000..1eb4af8f9d --- /dev/null +++ b/main/mkinitfs/0001-mkinitfs-fix-kernel-module-dependency-tracing.patch @@ -0,0 +1,36 @@ +From f3c65536e02764486f1dd0082c0537377ee8720b Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Thu, 27 Mar 2014 15:28:25 +0000 +Subject: [PATCH] mkinitfs: fix kernel module dependency tracing + +When searching kernel module depedencies we need to that relative +kerneldir and not relative basedir. +--- + mkinitfs.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/mkinitfs.in b/mkinitfs.in +index cd10359..fc7cf34 100755 +--- a/mkinitfs.in ++++ b/mkinitfs.in +@@ -68,7 +68,7 @@ function recursedeps(k, j, dep) { + split(deps[k], dep, " "); + for (j in dep) + recursedeps(dep[j]); +- print(k); ++ print(prepend k); + } + + BEGIN { +@@ -98,7 +98,7 @@ find_kmods() { + local oldpwd="$PWD" + cd "$kerneldir" || return 1 + for file in $(feature_files "${kerneldir}/" modules); do +- echo ${file#$basedir} ++ echo ${file#${kerneldir%/}/} + done | find_kmod_deps + cd "$oldpwd" + } +-- +1.9.1 + |