Browse Source

unicorn: fix build error

master
Henrik Grimler 5 years ago
parent
commit
9679a85ae3
  1. 11
      packages/unicorn/Makefile.patch
  2. 2
      packages/unicorn/build.sh

11
packages/unicorn/Makefile.patch

@ -0,0 +1,11 @@
--- ../Makefile.orig 2020-05-06 09:57:15.390559598 +0000
+++ ./Makefile 2017-04-20 06:14:24.000000000 +0000
@@ -212,7 +212,7 @@
qemu/config-host.h-timestamp:
cd qemu && \
- ./configure --cc="${CC}" --extra-cflags="$(UNICORN_CFLAGS)" --target-list="$(UNICORN_TARGETS)" ${UNICORN_QEMU_FLAGS}
+ ./configure --cc="${CC}" --extra-cflags="$(UNICORN_CFLAGS)" --target-list="$(UNICORN_TARGETS)" ${UNICORN_QEMU_FLAGS} --python=/usr/bin/python2
printf "$(UNICORN_ARCHS)" > config.log
$(MAKE) -C qemu $(SMP_MFLAGS)
$(eval UC_TARGET_OBJ += $$(wildcard qemu/util/*.o) $$(wildcard qemu/*.o) $$(wildcard qemu/qom/*.o) $$(wildcard qemu/hw/core/*.o) $$(wildcard qemu/qapi/*.o) $$(wildcard qemu/qobject/*.o))

2
packages/unicorn/build.sh

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Unicorn is a lightweight multi-platform, multi-architect
TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>" TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
TERMUX_PKG_VERSION=1.0.1 TERMUX_PKG_VERSION=1.0.1
TERMUX_PKG_REVISION=4 TERMUX_PKG_REVISION=5
TERMUX_PKG_SRCURL=https://github.com/unicorn-engine/unicorn/archive/$TERMUX_PKG_VERSION.tar.gz TERMUX_PKG_SRCURL=https://github.com/unicorn-engine/unicorn/archive/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=3a6a4f2b8c405ab009040ca43af8e4aa10ebe44d9c8b336aa36dc35df955017c TERMUX_PKG_SHA256=3a6a4f2b8c405ab009040ca43af8e4aa10ebe44d9c8b336aa36dc35df955017c
TERMUX_PKG_BREAKS="unicorn-dev" TERMUX_PKG_BREAKS="unicorn-dev"

Loading…
Cancel
Save