Hi there,
I'm working on a customized image of LibreELEC 9.2.6 (for x86 and Raspberry Pi 3) and I need to add an application to the system which can't be added through Kodi Addons, so I'm creating a package.mk in order to get the App added on buildtime.
However, I have some questions regarding package.mk and dependencies, and I didn't find answers anywhere.
using the glib package.mk as an example, we have:
...
PKG_DEPENDS_HOST="libffi:host Python3:host meson:host"
PKG_DEPENDS_TARGET="toolchain pcre zlib libffi Python3:host util-linux"
...
I do not fully understand what are all this PKG_DEPENDS_* for. Looking at the build script, I've seen that you can specify to build a package like:
PROJECT=RPi DEVICE=RPi2 ARCH=arm scripts/build glib
Or
PROJECT=RPi DEVICE=RPi2 ARCH=arm scripts/build glib:host
I supose for the glib:host it uses as dependencies the PKG_DEPENDS_HOST variable, if I build glib:target it uses PKG_DEPENDS_TARGET... but my question is, what is this argument (:[host|bootstrap|init|target]) for? If I only make a normal build (without this argument) what libraries variable from the package.mk will it use?
And another question:
PKG_DEPENDS_TARGET="toolchain pcre zlib libffi Python3:host util-linux"
Here is a list of libraries needed to build glib. Why in the python3 one it says Python3:host and not Python3? What is the meaning of ":host" in this case?
Cheers!