Skip to contentSkip to conversation

efivar: disable for MIPS Sourcery CodeBench toolchain

PATCH New Vicente Olivert Riera 1 participant 1 message Jun 21, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 efivar: disable for MIPS Sourcery CodeBench toolchain

linux/nvme.h has been renamed to linux/nvme_ioctl.h since 4.4, and we have a patch to handle that situation. However, MIPS Sourcery CodeBench toolchain uses 4.4 kernel headers but doesn't have that header file renamed, and that is causing a build failure. So, prevent this package to be built using that toolchain.

Fixes:

http://autobuild.buildroot.net/results/66c/66cf68261fa73c2366610f8d14bd02180ba7cd2d/

---
 package/efivar/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)
package/efivar/Config.in +7 -0
index c507584..7cf2c14 100644
@@ -1,6 +1,13 @@
 config BR2_PACKAGE_EFIVAR
 	bool "efivar"
 	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 # linux/nvme.h
+	# linux/nvme.h has been renamed to linux/nvme_ioctl.h since 4.4,
+	# and we have a patch to handle that situation. However, MIPS
+	# Sourcery CodeBench toolchain uses 4.4 kernel headers but
+	# doesn't have that header file renamed, and that is causing a
+	# build failure. So, prevent this package to be built using that
+	# toolchain.
+	depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS
 	# doesn't build with uclibc due to lack of uchar.h
 	# doesn't build with musl due to lack of __bswap_constant_16
 	depends on BR2_TOOLCHAIN_USES_GLIBC
Signature · 1 line
2.7.3