瀏覽代碼

package/util-linux: disable raw with kernel >= 5.14

raw has been dropped from kernel since version 5.14 and
https://github.com/torvalds/linux/commit/603e4922f1c81fc2ed3a87b4f91a8d3aafc7e093
resulting in the following build failure:

configure: error: raw selected, but required raw.h header file not available

https://github.com/karelzak/util-linux/issues/1442

Fixes:
 - http://autobuild.buildroot.org/results/d009d663a7c3c75872b19a92d3eadd3ecee2df63

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Fabrice Fontaine 3 年之前
父節點
當前提交
63f34c5409
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      package/util-linux/Config.in

+ 4 - 0
package/util-linux/Config.in

@@ -291,9 +291,13 @@ config BR2_PACKAGE_UTIL_LINUX_PIVOT_ROOT
 
 
 config BR2_PACKAGE_UTIL_LINUX_RAW
 config BR2_PACKAGE_UTIL_LINUX_RAW
 	bool "raw"
 	bool "raw"
+	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_14
 	help
 	help
 	  Build a linux raw character device
 	  Build a linux raw character device
 
 
+comment "raw needs a toolchain w/ headers < 5.14"
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_14
+
 config BR2_PACKAGE_UTIL_LINUX_RENAME
 config BR2_PACKAGE_UTIL_LINUX_RENAME
 	bool "rename"
 	bool "rename"
 	help
 	help