At present dm/device.h includes the linux-compatible features. This requires including linux/compat.h which in turn includes a lot of headers. One of these is malloc.h which we thus end up including in every file in U-Boot. Apart from the inefficiency of this, it is problematic for sandbox which needs to use the system malloc() in some files. Move the compatibility features into a separate header file. Signed-off-by: Simon Glass <sjg@chromium.org> |
||
|---|---|---|
| .. | ||
| Makefile | ||
| avb_chain_partition_descriptor.c | ||
| avb_chain_partition_descriptor.h | ||
| avb_cmdline.c | ||
| avb_cmdline.h | ||
| avb_crypto.c | ||
| avb_crypto.h | ||
| avb_descriptor.c | ||
| avb_descriptor.h | ||
| avb_footer.c | ||
| avb_footer.h | ||
| avb_hash_descriptor.c | ||
| avb_hash_descriptor.h | ||
| avb_hashtree_descriptor.c | ||
| avb_hashtree_descriptor.h | ||
| avb_kernel_cmdline_descriptor.c | ||
| avb_kernel_cmdline_descriptor.h | ||
| avb_ops.h | ||
| avb_property_descriptor.c | ||
| avb_property_descriptor.h | ||
| avb_rsa.c | ||
| avb_rsa.h | ||
| avb_sha.h | ||
| avb_sha256.c | ||
| avb_sha512.c | ||
| avb_slot_verify.c | ||
| avb_slot_verify.h | ||
| avb_sysdeps.h | ||
| avb_sysdeps_posix.c | ||
| avb_util.c | ||
| avb_util.h | ||
| avb_vbmeta_image.c | ||
| avb_vbmeta_image.h | ||
| avb_version.c | ||
| avb_version.h | ||
| libavb.h | ||