[Buildroot] [PATCH] package/rauc: fix host build with systemd

Bartosz Bilas b.bilas at grinn-global.com
Fri Nov 13 13:44:58 UTC 2020


Hi Thomas,

On 13.11.2020 14:33, Thomas Petazzoni wrote:
> 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 ?
Yes, it does. Let's reject this patch then.
> Thomas 
Best
Bartek



More information about the buildroot mailing list