kumquat-buildroot/package/Config.in.host

93 lines
3.7 KiB
Plaintext
Raw Normal View History

menu "Host utilities"
source "package/aespipe/Config.in.host"
source "package/android-tools/Config.in.host"
source "package/asn1c/Config.in.host"
package/babeltrace2: new package Babeltrace 2 is a trace manipulation toolkit. The Babeltrace 2 project offers a library with a C API, Python 3 bindings, and a command-line tool which makes it very easy for mere mortals to view, convert, transform, and analyze traces. See <https://babeltrace.org/> for more details. Babeltrace 2 is a major update of Babeltrace 1 (Buildroot package `lttng-babeltrace`). Both projects are coinstallable. Except for the command-line tool (named `babeltrace2`), the Babeltrace 2 project is not backward compatible with Babeltrace 1. I'm naming this package `babeltrace2` instead of `lttng-babeltrace2` because, although it can read LTTng traces, the two projects are independent. All major distributions use `babeltrace2` as the Babeltrace 2 package's name. I'm keeping the `lttng-babeltrace` package because, as of this date, we still add bug and security fixes from time to time, therefore the project is not in EOL stage. Some external, custom packages could still depend on the Babeltrace 1 library, for example. As with `lttng-babeltrace`, you can build and install the host version of Babeltrace 2 for the workflow where you trace the target, download the resulting trace (or receive it during the tracing process), and then read and analyze it with Babeltrace 2. If you enable the `elfutils` package (`BR2_PACKAGE_ELFUTILS`), then support for Babeltrace 2's debugging information filter component class is enabled. Tested with glibc, uClibc-ng, and musl. Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-06-23 22:01:53 +02:00
source "package/babeltrace2/Config.in.host"
source "package/btrfs-progs/Config.in.host"
source "package/cbootimage/Config.in.host"
source "package/checkpolicy/Config.in.host"
source "package/checksec/Config.in.host"
source "package/cmake/Config.in.host"
source "package/cramfs/Config.in.host"
source "package/cryptsetup/Config.in.host"
source "package/dbus-python/Config.in.host"
infra: indent the Config.in source-ing of packages This makes sure that a patch adding a package shows in which menu the package is added. Before this commit, the patch has something like this: > diff --git a/package/Config.in b/package/Config.in > index 7800f23..433312e 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ source "package/googlefontdirectory/Config.in" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > +source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" [> added to avoid git-am recognizing this as the patch] After this commit, the function marker shows in which menu the new package was added: > diff --git a/package/Config.in b/package/Config.in > index b1111c8..7e6e1a4 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ menu "Miscellaneous" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > + source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" To keep things consistent, this is done for Config.in.host there, even though we don't have sub-menus there at the moment. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-05-08 23:35:43 +02:00
source "package/dfu-util/Config.in.host"
source "package/dos2unix/Config.in.host"
infra: indent the Config.in source-ing of packages This makes sure that a patch adding a package shows in which menu the package is added. Before this commit, the patch has something like this: > diff --git a/package/Config.in b/package/Config.in > index 7800f23..433312e 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ source "package/googlefontdirectory/Config.in" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > +source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" [> added to avoid git-am recognizing this as the patch] After this commit, the function marker shows in which menu the new package was added: > diff --git a/package/Config.in b/package/Config.in > index b1111c8..7e6e1a4 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ menu "Miscellaneous" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > + source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" To keep things consistent, this is done for Config.in.host there, even though we don't have sub-menus there at the moment. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-05-08 23:35:43 +02:00
source "package/dosfstools/Config.in.host"
source "package/doxygen/Config.in.host"
source "package/dtc/Config.in.host"
infra: indent the Config.in source-ing of packages This makes sure that a patch adding a package shows in which menu the package is added. Before this commit, the patch has something like this: > diff --git a/package/Config.in b/package/Config.in > index 7800f23..433312e 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ source "package/googlefontdirectory/Config.in" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > +source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" [> added to avoid git-am recognizing this as the patch] After this commit, the function marker shows in which menu the new package was added: > diff --git a/package/Config.in b/package/Config.in > index b1111c8..7e6e1a4 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ menu "Miscellaneous" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > + source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" To keep things consistent, this is done for Config.in.host there, even though we don't have sub-menus there at the moment. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-05-08 23:35:43 +02:00
source "package/e2fsprogs/Config.in.host"
source "package/e2tools/Config.in.host"
source "package/erofs-utils/Config.in.host"
package/eudev: introduce a host variant eudev and systemd provide a hardware database (hwdb) as a set of multiple files. Various other utilities may also use that database. Those files have to be "compiled" into a binary to be useful; libudev (and thus all utilities based on it) only use the compiled hwdb. Compiling the hwdb is done with udevadm, using the hwdb sub-command: udevadm hwdb --update Provide a simple host-variant of eudev, so that we can call udevadm at build time. When it is configured, eudev will shoehorn its --prefix path as the base location where the .hwdb file will be searched from, as well as where the hwdb.bin will be generated in. This means that with the usual --prefix=$(HOST_DIR), it would look into there. udevadm also accepts a --root=/path option at runtime, which prepends /path to all the paths it uses to find and generate files. Obviously, combining --root=$(TARGET_DIR) and --prefix=$(HOST_DIR) would not do what we want: all files would be searched for, and generated, in $(HOST_DIR)$(TARGET_DIR)/ . Avoiding use of --root would not help much either, as files would still searched in $(HOST_DIR) (we could use a trick to copy files there, generate and then move the hwdb.bin, but that's not nice). However, since we only need udevadm, and since udevadm has no internal and no external dependency, we can use a less dirty trick and configure host-eudev with --prefix=/usr (and similar for the other paths), manually copy udevadm to HOST_DIR, and then use --root when calling it. Then, we get a udevadm that can read files from, and generate files into $(TARGET_DIR). We register a target-finalize hook to generate the hwdb.bin, so that any pakage may install its .hwdb files (currently only eudev and systemd do, but other packages might (e.g. sane is known to do so on standard desktop distros)) The *.hwdb source files consume a lot of space, roughly the same as the generated database, i.e. ~8MiB as of today, and they are totally useless on the target; only the generated hwdb.bin is useful. So we want to get rid of them. However, we also want to be able to complete a build (e.g. make foo-reinstall to reinstall more hwdb files), so we don't want to irremediably lose them. As such, we register a pre-rootfs-cmd hook, that removes them just before assembling the filesystems, when we're only using a copy of the target directory. Note that this is the first host package to register a target-finalize hook, and also the first to register a pre-rootfs-cmd hook. This avoids duplicating these hooks logic in both eudev and systemd. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Peter Korsgaard <peter@korsgaard.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Carlos Santos <unixmania@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-10-29 23:07:53 +01:00
source "package/eudev/Config.in.host"
source "package/exfatprogs/Config.in.host"
source "package/f2fs-tools/Config.in.host"
source "package/faketime/Config.in.host"
source "package/fatcat/Config.in.host"
source "package/fwup/Config.in.host"
infra: indent the Config.in source-ing of packages This makes sure that a patch adding a package shows in which menu the package is added. Before this commit, the patch has something like this: > diff --git a/package/Config.in b/package/Config.in > index 7800f23..433312e 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ source "package/googlefontdirectory/Config.in" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > +source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" [> added to avoid git-am recognizing this as the patch] After this commit, the function marker shows in which menu the new package was added: > diff --git a/package/Config.in b/package/Config.in > index b1111c8..7e6e1a4 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ menu "Miscellaneous" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > + source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" To keep things consistent, this is done for Config.in.host there, even though we don't have sub-menus there at the moment. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-05-08 23:35:43 +02:00
source "package/genext2fs/Config.in.host"
source "package/genimage/Config.in.host"
source "package/genpart/Config.in.host"
source "package/gnupg/Config.in.host"
source "package/go/Config.in.host"
source "package/go-bootstrap/Config.in.host"
source "package/google-breakpad/Config.in.host"
source "package/gptfdisk/Config.in.host"
source "package/imagemagick/Config.in.host"
source "package/imx-mkimage/Config.in.host"
source "package/imx-usb-loader/Config.in.host"
source "package/jq/Config.in.host"
source "package/jsmin/Config.in.host"
source "package/libp11/Config.in.host"
source "package/lld/Config.in.host"
infra: indent the Config.in source-ing of packages This makes sure that a patch adding a package shows in which menu the package is added. Before this commit, the patch has something like this: > diff --git a/package/Config.in b/package/Config.in > index 7800f23..433312e 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ source "package/googlefontdirectory/Config.in" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > +source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" [> added to avoid git-am recognizing this as the patch] After this commit, the function marker shows in which menu the new package was added: > diff --git a/package/Config.in b/package/Config.in > index b1111c8..7e6e1a4 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ menu "Miscellaneous" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > + source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" To keep things consistent, this is done for Config.in.host there, even though we don't have sub-menus there at the moment. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-05-08 23:35:43 +02:00
source "package/lpc3250loader/Config.in.host"
source "package/lttng-babeltrace/Config.in.host"
source "package/mender-artifact/Config.in.host"
source "package/meson-tools/Config.in.host"
source "package/mfgtools/Config.in.host"
source "package/mkpasswd/Config.in.host"
infra: indent the Config.in source-ing of packages This makes sure that a patch adding a package shows in which menu the package is added. Before this commit, the patch has something like this: > diff --git a/package/Config.in b/package/Config.in > index 7800f23..433312e 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ source "package/googlefontdirectory/Config.in" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > +source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" [> added to avoid git-am recognizing this as the patch] After this commit, the function marker shows in which menu the new package was added: > diff --git a/package/Config.in b/package/Config.in > index b1111c8..7e6e1a4 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ menu "Miscellaneous" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > + source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" To keep things consistent, this is done for Config.in.host there, even though we don't have sub-menus there at the moment. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-05-08 23:35:43 +02:00
source "package/mtd/Config.in.host"
source "package/mtools/Config.in.host"
source "package/mxsldr/Config.in.host"
source "package/odb/Config.in.host"
infra: indent the Config.in source-ing of packages This makes sure that a patch adding a package shows in which menu the package is added. Before this commit, the patch has something like this: > diff --git a/package/Config.in b/package/Config.in > index 7800f23..433312e 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ source "package/googlefontdirectory/Config.in" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > +source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" [> added to avoid git-am recognizing this as the patch] After this commit, the function marker shows in which menu the new package was added: > diff --git a/package/Config.in b/package/Config.in > index b1111c8..7e6e1a4 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ menu "Miscellaneous" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > + source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" To keep things consistent, this is done for Config.in.host there, even though we don't have sub-menus there at the moment. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-05-08 23:35:43 +02:00
source "package/omap-u-boot-utils/Config.in.host"
source "package/openocd/Config.in.host"
source "package/opkg-utils/Config.in.host"
infra: indent the Config.in source-ing of packages This makes sure that a patch adding a package shows in which menu the package is added. Before this commit, the patch has something like this: > diff --git a/package/Config.in b/package/Config.in > index 7800f23..433312e 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ source "package/googlefontdirectory/Config.in" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > +source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" [> added to avoid git-am recognizing this as the patch] After this commit, the function marker shows in which menu the new package was added: > diff --git a/package/Config.in b/package/Config.in > index b1111c8..7e6e1a4 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ menu "Miscellaneous" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > + source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" To keep things consistent, this is done for Config.in.host there, even though we don't have sub-menus there at the moment. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-05-08 23:35:43 +02:00
source "package/parted/Config.in.host"
source "package/patchelf/Config.in.host"
source "package/pigz/Config.in.host"
source "package/pkgconf/Config.in.host"
source "package/pru-software-support/Config.in.host"
source "package/pwgen/Config.in.host"
source "package/python/Config.in.host"
source "package/python-cython/Config.in.host"
source "package/python-lxml/Config.in.host"
source "package/python-six/Config.in.host"
source "package/python-xlrd/Config.in.host"
source "package/python3/Config.in.host"
source "package/qemu/Config.in.host"
source "package/raspberrypi-usbboot/Config.in.host"
source "package/rauc/Config.in.host"
source "package/rcw/Config.in.host"
source "package/rustc/Config.in.host"
source "package/s6-rc/Config.in.host"
infra: indent the Config.in source-ing of packages This makes sure that a patch adding a package shows in which menu the package is added. Before this commit, the patch has something like this: > diff --git a/package/Config.in b/package/Config.in > index 7800f23..433312e 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ source "package/googlefontdirectory/Config.in" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > +source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" [> added to avoid git-am recognizing this as the patch] After this commit, the function marker shows in which menu the new package was added: > diff --git a/package/Config.in b/package/Config.in > index b1111c8..7e6e1a4 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ menu "Miscellaneous" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > + source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" To keep things consistent, this is done for Config.in.host there, even though we don't have sub-menus there at the moment. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-05-08 23:35:43 +02:00
source "package/sam-ba/Config.in.host"
source "package/sdbusplus/Config.in.host"
source "package/sentry-cli/Config.in.host"
infra: indent the Config.in source-ing of packages This makes sure that a patch adding a package shows in which menu the package is added. Before this commit, the patch has something like this: > diff --git a/package/Config.in b/package/Config.in > index 7800f23..433312e 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ source "package/googlefontdirectory/Config.in" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > +source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" [> added to avoid git-am recognizing this as the patch] After this commit, the function marker shows in which menu the new package was added: > diff --git a/package/Config.in b/package/Config.in > index b1111c8..7e6e1a4 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ menu "Miscellaneous" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > + source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" To keep things consistent, this is done for Config.in.host there, even though we don't have sub-menus there at the moment. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-05-08 23:35:43 +02:00
source "package/squashfs/Config.in.host"
source "package/sunxi-tools/Config.in.host"
source "package/swig/Config.in.host"
package/systemd: add host variant Add the infrastructure to build the host version of systemd * disable all optional features, they can be re-added when needed * systemd has creative way of dealing with cross compile we build a "normal" host systemd, but install it in $HOST_DIR we use systemctl --root to correctly act on TARGET_DIR * we need to adjust RPATH using patchelf because meson can't do it correctly by itsel The first question is: why do we use --prefix=/usr ? systemd will store its --prefix in all the executables it generates. As such, systemctl will have a hardcoded 'prefix', where it will manipulate and create files/symlinks in. When called natively, this is nice and shinny. However, for cross-setup, that does not work obviously. So, systemd has its tools know about the 'root' directory where this prefix should be related to. We can call systemctl --root=$(TARGET_DIR) and systemctl wil do the links and such in there. However, it does so by appending its known prefix to it. So, if we were to configure host-systemd as we usually do, with --prefix=$(HOST_DIR), then when we would call host systemctl --root=$(TARGET_DIR) it would look for files in $(TARGET_DIR)/$(HOST_DIR), which is wrong. Calling the host systemctl without --root is also wrong, as it would look for files in $(HOST_DIR) So, there is no satisfying official support for this case. The trick then, is to configure systemd with the prefix it would expect at runtime (on the target!), that is with /usr, but install out-of-tree. That was it for the first part of the question: why do we use --prefix. Now, the second question is: why do we need to muck up with the rpath after installation? Well, this boils down to meson (and not systemd itself). When it installs executables, meson will handily insert whatever rpath the package meson.build would tell it to use. systemd installs libs in $(prefix)/lib/systemd and has a NEEDED to those libs, so it uses an RPATH to find those libs, and meson does inject that RPATH into the installed executables. However, we Buildroot also want to insert our own RPATH, because systemd uses util-linux' libs and libcap, installed in $(HOST_DIR), so it needs our RPATH. However, meson can not extend the RPATH from the LDFLAGS in the environment; meson can only set the RPATH from what it knows about from the package's meson.build. That, in addition to the --prefix=/usr issue above, means that the executables installed by host-systemd have an RPATH set to /usr/lib/systemd. when we would want it to be set to $(HOST_DIR)/lib:$(HOST_DIR)/lib/systemd That's what is done in the post-install hook: set the RPATH to the appropriate values. Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr> [yann.morin.1998@free.fr: - reformatting in commit log - declare host variant after target variant - simplify comments - slight reordering of variable (HOST_SYSTEMD_NINJA_ENV moved) - reformatting for mutli-line variable (HOST_SYSTEMD_HOST_TOOLS) - don't split HOST_SYSTEMD_CONF_OPTS in two sets ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2019-12-16 11:30:40 +01:00
source "package/systemd/Config.in.host"
source "package/tegrarcm/Config.in.host"
source "package/ti-cgt-pru/Config.in.host"
infra: indent the Config.in source-ing of packages This makes sure that a patch adding a package shows in which menu the package is added. Before this commit, the patch has something like this: > diff --git a/package/Config.in b/package/Config.in > index 7800f23..433312e 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ source "package/googlefontdirectory/Config.in" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > +source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" [> added to avoid git-am recognizing this as the patch] After this commit, the function marker shows in which menu the new package was added: > diff --git a/package/Config.in b/package/Config.in > index b1111c8..7e6e1a4 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -864,6 +864,7 @@ menu "Miscellaneous" > source "package/haveged/Config.in" > source "package/mcrypt/Config.in" > source "package/mobile-broadband-provider-info/Config.in" > + source "package/mypackage/Config.in" > source "package/shared-mime-info/Config.in" > source "package/snowball-init/Config.in" > source "package/sound-theme-borealis/Config.in" To keep things consistent, this is done for Config.in.host there, even though we don't have sub-menus there at the moment. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-05-08 23:35:43 +02:00
source "package/uboot-tools/Config.in.host"
source "package/util-linux/Config.in.host"
source "package/utp_com/Config.in.host"
source "package/vboot-utils/Config.in.host"
source "package/xorriso/Config.in.host"
source "package/zip/Config.in.host"
source "package/zstd/Config.in.host"
endmenu