2023-11-28 01:02:19 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2023-03-31 19:08:50 +01:00
|
|
|
# SPDX-FileCopyrightText: 2023 Richard Masters <grick23@gmail.com>
|
|
|
|
# SPDX-License-Identifier: MIT
|
2023-11-28 01:02:19 +00:00
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2023-03-31 19:08:50 +01:00
|
|
|
cd src
|
2023-11-28 02:16:09 +00:00
|
|
|
tcc -m32 -march=i386 -std=c89 -I../../tcc/tcc-0.9.27/include -o ${BINDIR}/kexec-fiwix kexec-fiwix.c
|
2023-04-14 22:17:13 +01:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
# Checksums
|
|
|
|
if match x${UPDATE_CHECKSUMS} xTrue; then
|
|
|
|
sha256sum -o ${pkg}.checksums \
|
|
|
|
/usr/bin/kexec-fiwix
|
|
|
|
|
2023-11-28 02:16:09 +00:00
|
|
|
cp ${pkg}.checksums ${SRCDIR}
|
2023-04-14 22:17:13 +01:00
|
|
|
else
|
|
|
|
sha256sum -c ${pkg}.checksums
|
|
|
|
fi
|