From c90b34046ee14610a82b6b1117261ad75fbea8d2 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 23 Feb 2014 15:11:53 +0100 Subject: [PATCH] gen_initramfs: fix append_drm() modules lookup code After generating the module dependencies for drm drivers, we should pick up all the modules by looking at the whole kernel modules directory path and not just at drivers/drm. This has been reported in GitHub issue #17 for genkernel-next. --- gen_initramfs.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index a323ba2..9c6cbcc 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -788,7 +788,8 @@ append_drm() { rm -rf "${TEMP}/initramfs-drm-${KV}-temp/" mkdir -p "${TEMP}/initramfs-drm-${KV}-temp/lib/modules/${KV}" - local drm_path="./lib/modules/${KV}/kernel/drivers/gpu/drm" + local mods_path="./lib/modules/${KV}" + local drm_path="${mods_path}/kernel/drivers/gpu/drm" local modules if [ -d "${drm_path}" ] then @@ -809,7 +810,7 @@ append_drm() { local mod i fws fw for i in ${modules} do - mod=$(find "${drm_path}" -name "${i}${MOD_EXT}" 2>/dev/null| head -n 1) + mod=$(find "${mods_path}" -name "${i}${MOD_EXT}" 2>/dev/null| head -n 1) if [ -z "${mod}" ] then print_warning 2 "Warning :: ${i}${MOD_EXT} not found; skipping..."