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.
master v53
Fabio Erculiani 11 years ago
parent 7085ad2b32
commit c90b34046e

@ -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..."

Loading…
Cancel
Save