#!/bin/sh
VERSION=2023.10
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-suppress-warnings.patch
mv u-boot-$VERSION-suppress-warnings.patch ../patches
rm -rf ./u-boot-$VERSION
rm -rf ./u-boot-$VERSION-orig