#!/bin/sh
VERSION=6.1.31-3.8.2
tar --files-from=file.list -xJvf ../linux-starfive-$VERSION.tar.xz
mv linux-starfive-$VERSION linux-starfive-$VERSION-orig
cp -rf ./linux-starfive-$VERSION-new ./linux-starfive-$VERSION
diff --unified -Nr linux-starfive-$VERSION-orig linux-starfive-$VERSION > linux-starfive-$VERSION-host-limits.patch
mv linux-starfive-$VERSION-host-limits.patch ../patches
rm -rf ./linux-starfive-$VERSION
rm -rf ./linux-starfive-$VERSION-orig