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