aboutsummaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorKyunam Jo <kyunam.jo@gmail.com>2014-12-10 15:06:46 +0900
committerKyunam Jo <kyunam.jo@gmail.com>2014-12-10 07:53:07 +0000
commitfa343e630d9a96039987ba163aef5b475428d614 (patch)
tree549f9959fea10485e4dad45f4439d70bd3c910b5 /libc
parent6a6845244cf9eb8fe21ecc012b7b45990adad7d8 (diff)
downloadandroid_bionic-fa343e630d9a96039987ba163aef5b475428d614.tar.gz
android_bionic-fa343e630d9a96039987ba163aef5b475428d614.tar.bz2
android_bionic-fa343e630d9a96039987ba163aef5b475428d614.zip
fix runtime issues for scripts
now, some script to update kernel-headers is not working. because of wrong variable value and test codes. so this issue is fixed. Change-Id: Iffae9607858cc3c1c58fa24244be217b5a1ab06e
Diffstat (limited to 'libc')
-rwxr-xr-xlibc/kernel/tools/generate_uapi_headers.sh4
-rwxr-xr-xlibc/kernel/tools/update_all.py5
2 files changed, 3 insertions, 6 deletions
diff --git a/libc/kernel/tools/generate_uapi_headers.sh b/libc/kernel/tools/generate_uapi_headers.sh
index 386159aab..90ba0ed3d 100755
--- a/libc/kernel/tools/generate_uapi_headers.sh
+++ b/libc/kernel/tools/generate_uapi_headers.sh
@@ -159,7 +159,7 @@ if [[ ${KERNEL_DOWNLOAD} -eq 1 ]]; then
cd "${TMPDIR}"
echo "Fetching android kernel source ${KERNEL_VERSION}"
git clone https://android.googlesource.com/kernel/common.git
- cd "${COMMON}"
+ cd "${src_dir}"
git checkout "${KERNEL_VERSION}"
KERNEL_DIR="${TMPDIR}"
elif [[ "${KERNEL_DIR}" == "" ]]; then
@@ -180,6 +180,8 @@ if [[ ${SKIP_GENERATION} -eq 0 ]]; then
done
fi
+cd ${ANDROID_BUILD_TOP}
+
# Copy all of the include/uapi files to the kernel headers uapi directory.
copy_hdrs "${KERNEL_DIR}/${src_dir}/include/uapi" "${ANDROID_KERNEL_DIR}/uapi"
diff --git a/libc/kernel/tools/update_all.py b/libc/kernel/tools/update_all.py
index 73862da17..f45d4e057 100755
--- a/libc/kernel/tools/update_all.py
+++ b/libc/kernel/tools/update_all.py
@@ -40,12 +40,7 @@ else:
if not os.path.isdir(original_dir):
panic( "Missing directory, please specify one through command-line: %s\n" % original_dir )
-# Fixme: This should be removed after next release.
-# Do not update ion.h ion_test.h until after next release in aosp.
-source = subprocess.check_output('git remote show', shell=True).strip()
skip_ion = False
-if source == "aosp":
- skip_ion = True
# find all source files in 'original'
#