blob: 25ce457e7f1b385c684f6d9dc3248d1ba2b32d09 [file] [log] [blame]
#!/bin/bash
set -e
MODULE_PLAYGROUND=$1
ROOTFS=$2
declare -A map
map=(
["test-depmod/search-order-simple/lib/modules/4.4.4/kernel/crypto/"]="mod-simple.ko"
["test-depmod/search-order-simple/lib/modules/4.4.4/updates/"]="mod-simple.ko"
["test-depmod/search-order-same-prefix/lib/modules/4.4.4/foo/"]="mod-simple.ko"
["test-depmod/search-order-same-prefix/lib/modules/4.4.4/foobar/"]="mod-simple.ko"
)
for k in ${!map[@]}; do
dst=${ROOTFS}/$k
src=${MODULE_PLAYGROUND}/${map[$k]}
install -d $dst
install -t $dst $src
done