Skip to content

Commit

Permalink
Add release process fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Jan 21, 2024
1 parent 7deaf5b commit 095206e
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 4 deletions.
6 changes: 3 additions & 3 deletions blink/jit.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ static void pthread_jit_write_protect_np_workaround(int enabled) {
#if defined(__APPLE__) && defined(__aarch64__)
int count_start = 8192;
volatile int count = count_start;
uint64_t *addr, *other, val, val2, reread = -1;
uint64_t *addr, val, val2, reread = -1;
addr = (uint64_t *)(!enabled ? _COMM_PAGE_APRR_WRITE_ENABLE
: _COMM_PAGE_APRR_WRITE_DISABLE);
other = (uint64_t *)(enabled ? _COMM_PAGE_APRR_WRITE_ENABLE
: _COMM_PAGE_APRR_WRITE_DISABLE);
// other = (uint64_t *)(enabled ? _COMM_PAGE_APRR_WRITE_ENABLE
// : _COMM_PAGE_APRR_WRITE_DISABLE);
switch (*(volatile uint8_t *)_COMM_PAGE_APRR_SUPPORT) {
case 1:
do {
Expand Down
2 changes: 1 addition & 1 deletion blink/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -2939,7 +2939,7 @@ static int SysMount(struct Machine *m, i64 source, i64 target, i64 fstype,
i64 mountflags, i64 data) {
// No xlat, the VFS system will handle raw Linux options.
return VfsMount(LoadStr(m, source), LoadStr(m, target), LoadStr(m, fstype),
mountflags, (void *)data);
mountflags, (void *)(uintptr_t)data);
}
#endif

Expand Down
64 changes: 64 additions & 0 deletions tool/release-linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#!/bin/bash
set -ex
v=1.1

d=/mnt/videos/blink-$v
[ ! -d $d ]
mkdir -p $d

./configure --static --enable-vfs

make -j32 \
o//x86_64/blink/blink \
o//x86_64/blink/blinkenlights \
o//aarch64/blink/blink \
o//aarch64/blink/blinkenlights \
o//arm/blink/blink \
o//arm/blink/blinkenlights \
o//i486/blink/blink \
o//i486/blink/blinkenlights \
o//mips/blink/blink \
o//mips/blink/blinkenlights \
o//mipsel/blink/blink \
o//mipsel/blink/blinkenlights \
o//mips64/blink/blink \
o//mips64/blink/blinkenlights \
o//mips64el/blink/blink \
o//mips64el/blink/blinkenlights \
o//powerpc/blink/blink \
o//powerpc/blink/blinkenlights \
o//powerpc64le/blink/blink \
o//powerpc64le/blink/blinkenlights \
o//s390x/blink/blink \
o//s390x/blink/blinkenlights

pdf() {
groff -Tps -man $1 >$2.ps
ps2pdf $2.ps $2.pdf
}

git archive --format=tar.gz -o $d/blink-$v.tar.gz --prefix=blink-$v/ master
pdf blink/blink.1 $d/blink-$v
pdf blink/blinkenlights.1 $d/blinkenlights-$v
gzip -9 <o//x86_64/blink/blink >$d/blink-$v-linux-x86_64.elf.gz
gzip -9 <o//x86_64/blink/blinkenlights >$d/blinkenlights-$v-linux-x86_64.elf.gz
gzip -9 <o//aarch64/blink/blink >$d/blink-$v-linux-aarch64.elf.gz
gzip -9 <o//aarch64/blink/blinkenlights >$d/blinkenlights-$v-linux-aarch64.elf.gz
gzip -9 <o//arm/blink/blink >$d/blink-$v-linux-arm.elf.gz
gzip -9 <o//arm/blink/blinkenlights >$d/blinkenlights-$v-linux-arm.elf.gz
gzip -9 <o//i486/blink/blink >$d/blink-$v-linux-i486.elf.gz
gzip -9 <o//i486/blink/blinkenlights >$d/blinkenlights-$v-linux-i486.elf.gz
gzip -9 <o//mips/blink/blink >$d/blink-$v-linux-mips.elf.gz
gzip -9 <o//mips/blink/blinkenlights >$d/blinkenlights-$v-linux-mips.elf.gz
gzip -9 <o//mipsel/blink/blink >$d/blink-$v-linux-mipsel.elf.gz
gzip -9 <o//mipsel/blink/blinkenlights >$d/blinkenlights-$v-linux-mipsel.elf.gz
gzip -9 <o//mips64/blink/blink >$d/blink-$v-linux-mips64.elf.gz
gzip -9 <o//mips64/blink/blinkenlights >$d/blinkenlights-$v-linux-mips64.elf.gz
gzip -9 <o//mips64el/blink/blink >$d/blink-$v-linux-mips64el.elf.gz
gzip -9 <o//mips64el/blink/blinkenlights >$d/blinkenlights-$v-linux-mips64el.elf.gz
gzip -9 <o//powerpc/blink/blink >$d/blink-$v-linux-powerpc.elf.gz
gzip -9 <o//powerpc/blink/blinkenlights >$d/blinkenlights-$v-linux-powerpc.elf.gz
gzip -9 <o//powerpc64le/blink/blink >$d/blink-$v-linux-powerpc64le.elf.gz
gzip -9 <o//powerpc64le/blink/blinkenlights >$d/blinkenlights-$v-linux-powerpc64le.elf.gz
gzip -9 <o//s390x/blink/blink >$d/blink-$v-linux-s390x.elf.gz
gzip -9 <o//s390x/blink/blinkenlights >$d/blinkenlights-$v-linux-s390x.elf.gz

0 comments on commit 095206e

Please sign in to comment.