Skip to content

Commit 2b247cd

Browse files
committed
MOD magic
Signed-off-by: falkTX <falktx@falktx.com>
1 parent ee26628 commit 2b247cd

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Makefile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,39 @@ endif
2828

2929
# --------------------------------------------------------------
3030

31+
# NOTE: note path must be absolute
32+
MOD_WORKDIR ?= $(HOME)/mod-workdir
33+
MOD_ENVIRONMENT = AR=${1}/host/usr/bin/${2}-gcc-ar CC=${1}/host/usr/bin/${2}-gcc CPP=${1}/host/usr/bin/${2}-cpp CXX=${1}/host/usr/bin/${2}-g++ LD=${1}/host/usr/bin/${2}-ld PKG_CONFIG=${1}/host/usr/bin/pkg-config STRIP=${1}/host/usr/bin/${2}-strip CFLAGS="-I${1}/staging/usr/include" CPPFLAGS= CXXFLAGS="-I${1}/staging/usr/include" LDFLAGS="-L${1}/staging/usr/lib" \ EXE_WRAPPER="qemu-${3}-static -L ${1}/target"
34+
35+
modduo:
36+
$(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/modduo,arm-mod-linux-gnueabihf,arm)
37+
38+
modduox:
39+
$(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/modduox,aarch64-mod-linux-gnueabi,aarch64)
40+
41+
moddwarf:
42+
$(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/moddwarf,aarch64-mod-linux-gnu,aarch64)
43+
44+
publish:
45+
tar -C bin -cz $(subst bin/,,$(wildcard bin/*.lv2)) | base64 | curl -F 'package=@-' http://192.168.51.1/sdk/install && echo
46+
47+
ifneq (,$(findstring modduo-,$(MAKECMDGOALS)))
48+
$(MAKECMDGOALS):
49+
$(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/modduo,arm-mod-linux-gnueabihf,arm) $(subst modduo-,,$(MAKECMDGOALS))
50+
endif
51+
52+
ifneq (,$(findstring modduox-,$(MAKECMDGOALS)))
53+
$(MAKECMDGOALS):
54+
$(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/modduox,aarch64-mod-linux-gnueabi,aarch64) $(subst modduox-,,$(MAKECMDGOALS))
55+
endif
56+
57+
ifneq (,$(findstring moddwarf-,$(MAKECMDGOALS)))
58+
$(MAKECMDGOALS):
59+
$(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/moddwarf,aarch64-mod-linux-gnu,aarch64) $(subst moddwarf-,,$(MAKECMDGOALS))
60+
endif
61+
62+
# --------------------------------------------------------------
63+
3164
clean:
3265
$(MAKE) clean -C dpf/utils/lv2-ttl-generator
3366
$(MAKE) clean -C plugins/Kars

0 commit comments

Comments
 (0)