#!/bin/sh
VERSION=2023.04
tar --files-from=file.list -xjvf ../u-boot-$VERSION.tar.bz2
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-repka-pi3.patch
mv u-boot-$VERSION-repka-pi3.patch ../patches
rm -rf ./u-boot-$VERSION
rm -rf ./u-boot-$VERSION-orig