summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-10-08 13:18:20 +0100
committerLeah Rowe <leah@libreboot.org>2024-10-08 13:27:08 +0100
commitd845791d6f194e0b36bce2f0aeddcb5addc926f4 (patch)
treebcbfa392a0ca88de248b387eebe65355af4c550a /include
parent09a8f2ea83e5f5e2eda448b8e57cf59108e68f62 (diff)
rom.sh: support making pcsx-redux bios release
I also checked the copyright declarations in the directory src/mips/openbios where the PCSX-Redux BIOS is, gleaning all the copyright years: 2019-2024 at this time. The years will be updated as and when PCSX-Redux is updated in lbmk. Their BIOS is under MIT so I made lbmk generate an appropriate COPYING file alongside the binary, containing: Copyright (c) 2019-2024 PCSX-Redux authors Along with the actual text of the MIT license. With all of this, the PCSX-Redux BIOS can now be included in Libreboot releases. No actual tarball is created. The release script in lbmk simply copies the bin/ directory to ../roms I'm leaving the PCSX-Redux BIOS release uncompressed, because, and this will sound patronising because that is my precise intention: Windows users don't know how to do anything. If I provide a tarball to Windows users, they won't know what to do. Libreboot releases always go on rsync mirrors, which also have HTTP servers with indexing enabled, for browsing release files. I mention Windows users, because most people who use the PCSX Redux BIOS will probably use it on a PlayStation emulator, and most emulator users are on Windows. I can't really be bothered to provide it as a .zip archive, and it's only 512kb, so just provide it uncompressed in Libreboot releases! Releases were already possible under this scheme, so this patch really just adds the COPYING file. It's simply a courtesy to the PCSX-Redux developers, providing proper credit to them. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/rom.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/rom.sh b/include/rom.sh
index e7745271..808959d8 100644
--- a/include/rom.sh
+++ b/include/rom.sh
@@ -29,6 +29,15 @@ copyps1bios()
x_ rm -Rf bin/playstation
x_ mkdir -p bin/playstation
x_ cp src/pcsx-redux/src/mips/openbios/openbios.bin bin/playstation
+
+ printf "MIT License\n\nCopyright (c) 2019-2024 PCSX-Redux authors\n\n" \
+ > bin/playstation/COPYING.txt || $err "!pcsx-redux copyright"
+ cat config/snippet/mit >>bin/playstation/COPYING.txt || $err "!pcsx MIT"
+
+ if [ -e "src/pcsx-redux/.git" ]; then
+ git -C src/pcsx-redux/src/mips/openbios shortlog -sne > \
+ bin/playstation/AUTHORS.txt || $err "!pcsx-redux authors"
+ fi
}
mkpayload_grub()