#!/bin/sh
VERSION=2021.10-3.8.2
tar --files-from=file.list -xJvf ../u-boot-$VERSION.tar.xz
mv u-boot-$VERSION u-boot-$VERSION-orig
cp -rf ./u-boot-$VERSION-new ./u-boot-$VERSION
diff --unified -Nr u-boot-$VERSION-orig u-boot-$VERSION > u-boot-$VERSION-vf2-bootenv.patch
mv u-boot-$VERSION-vf2-bootenv.patch ../patches
rm -rf ./u-boot-$VERSION
rm -rf ./u-boot-$VERSION-orig