We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rust/
1 parent d6741e2 commit 7b4583eCopy full SHA for 7b4583e
rust/Makefile
@@ -61,11 +61,14 @@ endif
61
62
bindgen_opaque_types := xregs_state desc_struct arch_lbr_state
63
64
+# To avoid several recompilations in PowerPC, which inserts `-D_TASK_CPU`
65
+bindgen_c_flags_final = $(filter-out -D_TASK_CPU=%, $(bindgen_c_flags))
66
+
67
quiet_cmd_bindgen = BINDGEN $@
68
cmd_bindgen = \
69
$(BINDGEN) $< $(addprefix --opaque-type , $(bindgen_opaque_types)) \
70
--use-core --with-derive-default --ctypes-prefix c_types \
- --size_t-is-usize -o $@ -- $(bindgen_c_flags) -DMODULE
71
+ --size_t-is-usize -o $@ -- $(bindgen_c_flags_final) -DMODULE
72
73
$(objtree)/rust/bindings_generated.rs: $(srctree)/rust/kernel/bindings_helper.h FORCE
74
$(call if_changed_dep,bindgen)
0 commit comments