add FAQ about custom targets
- [Why isn't `bindgen` generating bindings to inline functions?](#why-isnt-bindgen-generating-bindings-to-inline-functions)
- [Does `bindgen` support the C++ Standard Template Library (STL)?](#does-bindgen-support-the-c-standard-template-library-stl)
- [How to deal with bindgen generated padding fields?](#how-to-deal-with-bindgen-generated-padding-fields)
+- [How to generate bindings for a custom target?](#how-to-generate-bindings-for-a-custom-target)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
@@ -95,3 +96,15 @@ SRC_DATA {
In the case bindgen generates a padding field, then this field will
be automatically initialized by `..Default::default()`.
+
+### How to generate bindings for a custom target?
+
+To generate bindings for a custom target you only need to pass the `--target`
+argument to `libclang`. For example, if you want to generate bindings for the
+`armv7a-none-eabi` target using the command line, you need to invoke `bindgen`
+like so:
+```bash
+$ bindgen <input_headers> -- --target=armv7a-none-eabi
+```
+If you are using `bindgen` as a library, you should call
+`builder.clang_arg("--target=armv7a-none-eabi")` on your `builder`.
