[Buildroot] [PATCH] package/rauc: fix host build with systemd
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Fri Nov 13 13:33:02 UTC 2020
Hello,
On Fri, 13 Nov 2020 14:28:01 +0100
Bartosz Bilas <b.bilas at grinn-global.com> wrote:
> ouch, I meant about HOST_DIR but I typed STAGING_DIR for some reason...
> Shouldn't we pass the --prefix=/usr to configure and DESTDIR=$(HOST_DIR)
> to make in that case?
No. --prefix= is where the software will be executed from, so from host
binaries it must be --prefix=$(HOST_DIR), and DESTDIR not used.
It is when you're cross-compiling that there is a difference between
where the software will be executed from (--prefix) and where you
install it after the build (DESTDIR). That's why when cross-compiling
you have --prefix=/usr, and DESTDIR=$(TARGET_DIR) or
DESTDIR=$(STAGING_DIR). This means "at runtime the software will be in
/usr, but for the installation please put it in TARGET_DIR/usr".
Does that make sense ?
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list