• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Android kernel headers
2
3This project contains the original kernel headers that are used to generate
4Bionic's "cleaned-up" user-land headers.
5
6They are mostly covered by the GPLv2 + exception, and thus cannot be
7distributed as part of the platform itself.  The cleaned up headers do not
8contain copyrightable information and are distributed with bionic.
9
10## Regenerating the bionic headers
11
12Note that if you're actually just trying to expose device-specific headers
13to build your device drivers, you shouldn't modify these headers or bionic.
14Instead use `TARGET_DEVICE_KERNEL_HEADERS` and friends as described in
15[config.mk](https://android.googlesource.com/platform/build/+/master/core/config.mk#186).
16
17Otherwise see the
18[bionic/libc/kernel docs](https://android.googlesource.com/platform/bionic/+/master/libc/kernel/)
19for how to actually take an update.
20
21
22## Manually modified headers
23
24The `modified/scsi` directory contains a set of manually updated headers.
25The scsi kernel headers were never properly made to into uapi versions,
26so this directory contains the unmodified scsi headers that are imported
27into bionic. The generation script will indicate if these files have
28changed and require another manual update.
29
30The files from the scsi directory will be copied into bionic after
31being processed as is, unless there exists a file of the same name in
32`../modified/scsi`. Any files found in the modified directory completely
33replace the ones in the scsi directory.
34