ahci: load AHCI as module
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
e8effb194e
commit
cb2c3e1053
6 changed files with 74 additions and 13 deletions
3
Makefile
3
Makefile
|
|
@ -138,11 +138,12 @@ modules_install: modules
|
|||
$(Q)echo -n > initramfs/modules/modules.alias
|
||||
$(Q)for ko in initramfs/modules/*.ko; do \
|
||||
[ -f "$$ko" ] || continue; \
|
||||
modname=$$(basename "$$ko" .ko); \
|
||||
readelf -p .modinfo "$$ko" 2>/dev/null | \
|
||||
sed -n 's/^\s*\[.*\]\s*//p' | \
|
||||
while IFS= read -r line; do \
|
||||
case "$$line" in alias=*) \
|
||||
echo "$${line#alias=} $$ko" >> initramfs/modules/modules.alias ;; \
|
||||
echo "$${line#alias=} $$modname" >> initramfs/modules/modules.alias ;; \
|
||||
esac; \
|
||||
done; \
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in a new issue