build: bootstrap: Remove stb_image.h.orig should it be generated

This commit is contained in:
mintsuki 2024-01-07 03:26:33 +01:00
parent 7f72a7ca32
commit 9e19370689
1 changed files with 6 additions and 1 deletions

View File

@ -21,7 +21,12 @@ fi
find common/libfdt/ -type f -not -name '*.c' -not -name '*.h' -delete
patch -p1 < common/libfdt.patch
)
[ -f common/stb/stb_image.h ] || ( curl -Lo common/stb/stb_image.h https://github.com/nothings/stb/raw/master/stb_image.h && patch -p0 < common/stb_image.patch )
[ -f common/stb/stb_image.h ] || (
set -e
curl -Lo common/stb/stb_image.h https://github.com/nothings/stb/raw/master/stb_image.h
patch -p0 < common/stb_image.patch
rm -f common/stb/stb_image.h.orig
)
[ -d decompressor/tinf ] || (
set -e
mkdir -p decompressor/tinf