From 381616e77ae7610f8fe07b9e0eb193d613fb3bf7 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sun, 30 Jun 2013 21:29:09 +0200 Subject: Introduce BR2_TOOLCHAIN_USES_{UCLIBC, GLIBC} Currently, when we need to do a conditional on the type of C library used, we need to take into account the three toolchain backends. As we are going to add eglibc support to the Buildroot toolchain backend, it would become even uglier, so this patch introduces two new hidden options: BR2_TOOLCHAIN_USES_UCLIBC and BR2_TOOLCHAIN_USES_GLIBC, that exist regardless of the toolchain backend. The entire Buildroot code base is converted to use those options. Note that we have intentionally created only one option (BR2_TOOLCHAIN_USES_GLIBC) for both glibc and eglibc, since they are essentially the same, as far as Buildroot is concerned. Signed-off-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- package/freescale-imx/gpu-viv-bin-mx6q/Config.in | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'package/freescale-imx') diff --git a/package/freescale-imx/gpu-viv-bin-mx6q/Config.in b/package/freescale-imx/gpu-viv-bin-mx6q/Config.in index 06544c406..e80eae434 100644 --- a/package/freescale-imx/gpu-viv-bin-mx6q/Config.in +++ b/package/freescale-imx/gpu-viv-bin-mx6q/Config.in @@ -1,7 +1,5 @@ comment "gpu-viv-bin-mx6q requires a glibc toolchain" - depends on !(BR2_TOOLCHAIN_CTNG_glibc || \ - BR2_TOOLCHAIN_CTNG_eglibc || \ - BR2_TOOLCHAIN_EXTERNAL_GLIBC) + depends on !BR2_TOOLCHAIN_USES_GLIBC config BR2_PACKAGE_GPU_VIV_BIN_MX6Q bool "gpu-viv-bin-mx6q" @@ -9,9 +7,7 @@ config BR2_PACKAGE_GPU_VIV_BIN_MX6Q select BR2_PACKAGE_HAS_OPENGL_ES depends on BR2_arm # Only relevant for i.MX6 # Library binaries are linked against libc.so.6 - depends on BR2_TOOLCHAIN_CTNG_glibc || \ - BR2_TOOLCHAIN_CTNG_eglibc || \ - BR2_TOOLCHAIN_EXTERNAL_GLIBC + depends on BR2_TOOLCHAIN_USES_GLIBC help Userspace libraries for Vivante GPU on i.MX6 platforms -- cgit v1.2.3