Home | History | Annotate | only in /external/kernel-headers
Up to higher level directory
NameDateSize
CleanSpec.mk21-Aug-20182.2K
modified/21-Aug-2018
MODULE_LICENSE_GPL21-Aug-20180
NOTICE21-Aug-201817.7K
original/21-Aug-2018
README.md21-Aug-20182K

README.md

      1 Android kernel headers
      2 ======================
      3 
      4 This project contains the original kernel headers that are used to generate
      5 Bionic's "cleaned-up" user-land headers.
      6 
      7 They are mostly covered by the GPLv2 + exception, and thus cannot be
      8 distributed as part of the platform itself.  The cleaned up headers do not
      9 contain copyrightable information and are distributed with bionic.
     10 
     11 Importing modified kernel headers files is done using scripts found in bionic.
     12 
     13 Note that if you're actually just trying to expose device-specific headers
     14 to build your device drivers, you shouldn't modify bionic. Instead
     15 use `TARGET_DEVICE_KERNEL_HEADERS` and friends described in
     16 [config.mk](https://android.googlesource.com/platform/build/+/master/core/config.mk#186).
     17 
     18 Regenerating the bionic headers
     19 -------------------------------
     20 The uapi directory contains the original kernel UAPI (userspace API) headers
     21 that are used to generate Bionic's "cleaned-up" user-land headers. The script
     22 `bionic/libc/kernel/tools/generate_uapi_headers.sh` automatically imports the
     23 headers from an android kernel repository.
     24 
     25 Running the script:
     26 ```
     27 generate_uapi_headers.sh --download-kernel
     28 ```
     29 
     30 In order to run the script, you must have properly initialized the build
     31 environment using the lunch command. The script will automatically retrieve
     32 an android kernel, generate all include files, and then copy the headers to
     33 this directory.
     34 
     35 Manually modified headers
     36 -------------------------
     37 The `modified/scsi` directory contains a set of manually updated headers.
     38 The scsi kernel headers were never properly made to into uapi versions,
     39 so this directory contains the unmodified scsi headers that are imported
     40 into bionic. The generation script will indicate if these files have
     41 changed and require another manual update.
     42 
     43 The files from the scsi directory will be copied into bionic after
     44 being processed as is, unless there exists a file of the same name in
     45 `../modified/scsi`. Any files found in the modified directory completely
     46 replace the ones in the scsi directory.
     47