[Buildroot] [PATCH 1/1] efivar: depends on target gcc >= 4.7

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Jun 26 20:59:06 UTC 2016


Hello,

On Sun, 26 Jun 2016 22:54:24 +0200, Erico Nunes wrote:
> The efivar internal build system uses flags such as -std=gnu11 ,
> -Wmaybe-uninitialized , -flto which are available in gcc >= 4.7 only.
> These flags are passed both to target build and to build a host tool.
> For the host part, this has been worked around by overriding
> 'gcc_flags', but doing that for the target would remove all flags that
> upstream intended for the target build.
> 
> Buildroot doesn't support building gcc 4.6 in its own toolchain anymore
> but it's possible to use an external toolchain with gcc 4.6 which would
> be unable to build this package.
> 
> This patch adds a limitation on toolchains with target gcc >= 4.7 to
> make sure that the flags are available in the chosen toolchain.
> 
> Signed-off-by: Erico Nunes <nunes.erico at gmail.com>

Thanks for the patch. However, when you introduce a new dependency to a
package, you must propagate it to the reverse dependencies of that
package. In this case, the efibootmgr also needs to get the gcc >= 4.7
dependency.

Could you adjust this and send an updated version?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list