1This directory contains the original kernel headers that are used to generate 2Bionic's "cleaned-up" user-land headers. 3 4They are mostly covered by the GPLv2 + exception, and thus cannot be 5distributed as part of the platform itself. 6(NOTE: The cleaned up headers do not contain copyrightable information and are 7distributed with Bionic) 8 9Importing modified kernel headers files is done using scripts found in bionic. 10 11For more details, please read bionic/libc/kernel/README.TXT. 12 13Generated Headers 14----------------- 15The uapi directory contains uapi version of original kernel headers that are 16used to generate Bionic's "cleaned-up" user-land headers. The script 17bionic/libc/kernel/tools/generate_uapi_headers.sh automatically imports the 18headers from an android kernel repository. 19 20Running the script: 21 22generate_uapi_headers.sh --download-kernel 23 24In order to run the script, you must have properly initialized the build 25environment using the lunch command. The script will automatically retrieve 26an android kernel, generate all include files, and then copy the headers to 27this directory. 28 29The headers are mostly covered by the GPLv2 + exception, and thus cannot be 30distributed as part of the platform itself. 31(NOTE: The cleaned up headers do not contain copyrightable information and 32are distributed with Bionic) 33 34For more details, please read bionic/libc/kernel/README.TXT 35 36Manually Modified Headers 37------------------------- 38The scsi directory contains a set of manually updated headers. The scsi kernel 39header were never properly made to into uapi versions, so this directory 40contains the unmodified scsi headers that are imported into bionic. The 41generation script will indicate if these files have changed and require 42another manual update. 43 44The files from the scsi directory will be copied into bionic after being 45processed as is, unless there exists a file of the same name in 46../modified/scsi. Any files found in the modified directory completely 47replace the ones in the scsi directory. 48