1
0
mirror of https://github.com/rancher/os-kernel.git synced 2025-08-31 20:36:46 +00:00

Sort the modules file after moving modules

This commit is contained in:
niusmallnan
2018-11-29 10:50:36 +08:00
parent 23af20ce3e
commit 70f9897354

View File

@@ -67,6 +67,7 @@ create_firmware_tar() {
move_files() {
local module_list=$1
local target=$2
local target_file=${DIST}/kernel/modules-${target}.list
for i in $(<$module_list); do
if [ ! -e $i ]; then
@@ -79,10 +80,12 @@ move_files() {
dest=$(readlink -f $j | sed 's!/build/!/'$target'/!')
mkdir -p $(dirname $dest)
mv -f $j $dest
echo $j >> ${DIST}/kernel/modules-${target}.list
echo $j >> ${target_file}
fi
done
done
sort ${target_file} -o ${target_file}
}
declare -A DEPS