Skip to content

Commit

Permalink
Fixed toolchain build to support lastest Debian stable
Browse files Browse the repository at this point in the history
  • Loading branch information
tvass committed Mar 6, 2024
1 parent e6a738e commit 4daa224
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions scripts/common.sh
Expand Up @@ -66,6 +66,8 @@ function remove_tls_patch()

function emulate_arm()
{
echo qemu-arm-static as ARM interpreter to the kernel
echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm-static:' > /proc/sys/fs/binfmt_misc/register
echo Copying ARM QEMU binary
if [ "$2" == "32" ]; then ARM_EMULATOR="qemu-arm-static"; fi
if [ "$2" == "64" ]; then ARM_EMULATOR="qemu-aarch64-static"; fi
Expand Down
2 changes: 1 addition & 1 deletion toolchains/armv7-toolchain-osmc/DEBIAN/control
Expand Up @@ -4,7 +4,7 @@ Version: 11.0.0-5
Section: tools
Essential: No
Priority: optional
Depends: qemu, binfmt-support, qemu-user-static
Depends: qemu-system, binfmt-support, qemu-user-static
Architecture: all
Maintainer: Sam G Nazarko <email@samnazarko.co.uk>
Description: OSMC toolchain for ARMv7
3 changes: 1 addition & 2 deletions toolchains/armv7-toolchain-osmc/build.sh
Expand Up @@ -2,7 +2,6 @@
# email@samnazarko.co.uk

#!/bin/bash

. ../common/funcs.sh
wd=$(pwd)
tcstub="armv7-toolchain-osmc"
Expand All @@ -19,7 +18,7 @@ verify_action
packages="debootstrap
dh-make
devscripts
qemu
qemu-system
binfmt-support
qemu-user-static"
for package in $packages
Expand Down

0 comments on commit 4daa224

Please sign in to comment.