summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndroid Code Review <code-review@android.com>2009-09-17 13:43:08 -0700
committerAndroid Code Review <code-review@android.com>2009-09-17 13:43:08 -0700
commit5632aeb83862a50e39dae9b7da2d7e2e5a8cb0d3 (patch)
tree7f3330f7ba5eb22771007f7b6f12847a77c4b370
parent5672726b44f796b43ec825aa666925231e8d69a4 (diff)
parent37429fff4101f8f75db795048226169ede9e7413 (diff)
downloadbionic-5632aeb83862a50e39dae9b7da2d7e2e5a8cb0d3.zip
bionic-5632aeb83862a50e39dae9b7da2d7e2e5a8cb0d3.tar.gz
bionic-5632aeb83862a50e39dae9b7da2d7e2e5a8cb0d3.tar.bz2
Merge change 10539
* changes: modified kernel headers re-generate tools to support SuperH architecture
-rw-r--r--libc/kernel/tools/defaults.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/libc/kernel/tools/defaults.py b/libc/kernel/tools/defaults.py
index aad0092..4227de7 100644
--- a/libc/kernel/tools/defaults.py
+++ b/libc/kernel/tools/defaults.py
@@ -7,7 +7,7 @@ from utils import *
# the list of supported architectures
#
-kernel_archs = [ 'arm', 'x86' ]
+kernel_archs = [ 'arm', 'x86', 'sh' ]
# the list of include directories that belong to the kernel
# tree. used when looking for sources...
@@ -57,6 +57,15 @@ kernel_known_x86_statics = set(
]
)
+kernel_known_sh_statics = set(
+ [ "___arch__swab16", # asm-sh/byteorder.h
+ "___arch__swab32", # asm-sh/byteorder.h
+ "___arch__swab64", # asm-sh/byteorder.h
+ "__FD_ZERO", # asm-sh/posix_types_32/64.h
+ "__FD_SET", # asm-sh/posix_types_32/64.h
+ ]
+ )
+
kernel_known_generic_statics = set(
[ "__invalid_size_argument_for_IOC", # asm-generic/ioctl.h
"__cmsg_nxthdr", # linux/socket.h
@@ -70,7 +79,8 @@ kernel_known_generic_statics = set(
#
kernel_known_statics = {
"arm" : kernel_known_arm_statics,
- "x86" : kernel_known_x86_statics
+ "x86" : kernel_known_x86_statics,
+ "sh" : kernel_known_sh_statics
}
# this is a list of macros which we want to specifically exclude from