Skip to content

Commit

Permalink
Fix folders
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Feb 7, 2024
1 parent 6b061c2 commit c2b1540
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/fc-kernels/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,22 @@ function build_version {
stringarray=($version)
kernel_version=${stringarray[1]}

cp configs/"${kernel_version}.config" linux/.config
cp ../configs/"${kernel_version}.config" .config

cd linux
git checkout "v${kernel_version}"

make vmlinux -j "$(nproc)"

mkdir -p "../builds/vmlinux-${kernel_version}"
cp vmlinux "../builds/vmlinux-${kernel_version}/vmlinux.bin"

cd ..
}


git clone --depth 1 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux
cd linux
git fetch --tags

grep -v '^ *#' < kernel_versions.txt | while IFS= read -r version
grep -v '^ *#' < ../kernel_versions.txt | while IFS= read -r version
do
build_version "$version"
done
Expand Down

0 comments on commit c2b1540

Please sign in to comment.