What

On Dec 4, 2017 12:15 PM, "kids live safe" <[email protected]> wrote:

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Source: fwupdate Version: 9-3 Tags: patch User: [email protected]
> Usertags: rebootstrap fwupdate fails to cross build from source for a
> number of reasons: 1. It uses the build architecture objcopy, because
> dh_auto_build passes neither OBJCOPY nor CROSS_COMPILE. While the
> CROSS_COMPILE variable is somewhat general, it's not as widely adopted.
> dh_auto_build explicitly sets tools such as CC or PKG_CONFIG. Explicitly
> passing CROSS_COMPILE makes this part work. 2. The upstream build system
> hard codes the use of the build architecture pkg-config. While it considers
> CROSS_COMPILE for other tools (including CC, LD and OBJCOPY) it fails to do
> so for pkg-config. I think this is an upstream bug and it should allow
> substituting pkg-config just like the other tools. 3. It derives FWUP in
> efi/Makefile from ARCH and ARCH from CC. Unfortunately, dh_auto_install
> doesn't pass CC (only dh_auto_build does). Thus FWUP differs between build
> and install and thus tries to build more stuff. An easy way to solve this
> is to simply pass CROSS_COMPILE to make install as well. After fixing all
> of the above, fwupdate cross builds successfully. Please consider applying
> the attached patch. Helmut

Reply via email to