Skip to content

Commit

Permalink
Helpers; could we use triplets for the platform. Now, I don't really …
Browse files Browse the repository at this point in the history
…understand the implications, but it'd make sense, since I have been experiementing with --host=i686-linux-musl and thus 'linux-x86-musl' as meson configuration
  • Loading branch information
Harry Gunnarsson committed Sep 17, 2024
1 parent 2d99088 commit 8af084a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/linux/helpers/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
top_srcdir := ../../..
top_srcdir := ../../../..
releng := $(top_srcdir)/releng

BUILDDIR ?= $(top_srcdir)/build
Expand All @@ -7,14 +7,15 @@ FRIDA_MONOREPO ?= $(top_srcdir)/..
ifdef FRIDA_HOST
host_os := $(shell echo $(FRIDA_HOST) | cut -f1 -d"-")
host_arch := $(shell echo $(FRIDA_HOST) | cut -f2 -d"-")
host_variant := $(shell echo $(FRIDA_HOST) | cut -f3 -d"-")
else
host_os := $(shell $(releng)/detect-os.sh)
host_arch := $(shell $(releng)/detect-arch.sh)
endif

crossfile := $(shell test -d "$(BUILDDIR)" \
&& echo "$(BUILDDIR)/frida-$(host_os)-$(host_arch).txt" \
|| echo $(FRIDA_MONOREPO)/build/frida*-$(host_os)-$(host_arch).txt)
&& echo "$(BUILDDIR)/frida-$(host_os)-$(host_arch)-$(host_variant).txt" \
|| echo $(FRIDA_MONOREPO)/build/frida*-$(host_os)-$(host_arch)-$(host_variant).txt)

build: ext/linux/tools/include/nolibc/nolibc.h
rm -rf build
Expand Down

0 comments on commit 8af084a

Please sign in to comment.