summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Android.bp18
-rw-r--r--METADATA3
-rw-r--r--OWNERS11
-rw-r--r--TEST_MAPPING53
-rwxr-xr-xscripts/extract-vmlinux73
5 files changed, 0 insertions, 158 deletions
diff --git a/Android.bp b/Android.bp
deleted file mode 100644
index 0d86be0..0000000
--- a/Android.bp
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright (C) 2017 The Android Open Source Project
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-sh_binary_host {
- name: "extract-vmlinux",
- src: "scripts/extract-vmlinux",
-}
diff --git a/METADATA b/METADATA
deleted file mode 100644
index d97975c..0000000
--- a/METADATA
+++ /dev/null
@@ -1,3 +0,0 @@
-third_party {
- license_type: NOTICE
-}
diff --git a/OWNERS b/OWNERS
deleted file mode 100644
index 1944029..0000000
--- a/OWNERS
+++ /dev/null
@@ -1,11 +0,0 @@
-# Current team members
-adelva@google.com
-jemoreira@google.com
-malchev@google.com
-muntsinger@google.com
-natsu@google.com
-rammuthiah@google.com
-schuffelen@google.com
-
-# Former team members
-ghartman@google.com
diff --git a/TEST_MAPPING b/TEST_MAPPING
deleted file mode 100644
index e97d669..0000000
--- a/TEST_MAPPING
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "presubmit": [
- {
- "name": "netd_integration_test"
- },
- {
- "name": "CtsBionicTestCases"
- },
- {
- "name": "CtsGraphicsTestCases"
- },
- {
- "name": "MediaProviderTests"
- },
- {
- "name": "CtsProviderTestCases",
- "options": [
- {
- "include-filter": "android.provider.cts.media."
- }
- ]
- },
- {
- "name": "RollbackTest"
- },
- {
- "name": "StagedRollbackTest"
- },
- {
- "name": "CtsOsTestCases",
- "options": [
- {
- "exclude-filter": "android.os.cts.BuildTest#testSdkInt"
- },
- {
- "exclude-filter": "android.os.cts.StrictModeTest#testNonSdkApiUsage"
- },
- {
- "exclude-filter": "android.os.cts.UsbDebuggingTest#testUsbDebugging"
- }
- ]
- },
- {
- "name": "minikin_tests"
- },
- {
- "name": "toybox-tests"
- },
- {
- "name": "CtsPerfettoTestCases"
- }
- ]
-}
diff --git a/scripts/extract-vmlinux b/scripts/extract-vmlinux
deleted file mode 100755
index 7724f38..0000000
--- a/scripts/extract-vmlinux
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/bin/sh
-# SPDX-License-Identifier: GPL-2.0-only
-# ----------------------------------------------------------------------
-# extract-vmlinux - Extract uncompressed vmlinux from a kernel image
-#
-# Inspired from extract-ikconfig
-# (c) 2009,2010 Dick Streefland <dick@streefland.net>
-#
-# (c) 2011 Corentin Chary <corentin.chary@gmail.com>
-#
-# ----------------------------------------------------------------------
-
-check_vmlinux()
-{
- # Use readelf to check if it's a valid ELF
- # TODO: find a better to way to check that it's really vmlinux
- # and not just an elf
- readelf -h $1 > /dev/null 2>&1
- if [ $? -ne 0 ]; then
- # On ARM64, the kernel might be a PE file instead
- # and output of file command might be something like following:
- # $ file cuttlefish_assembly/vmlinux
- # cuttlefish_assembly/vmlinux: MS-DOS executable PE32+ executable (EFI application) Aarch64 (stripped to external PDB), for MS Windows
- # $
- file $1 | grep -q "MS-DOS executable" || return 1
- fi
-
- cat $1
- exit 0
-}
-
-try_decompress()
-{
- # The obscure use of the "tr" filter is to work around older versions of
- # "grep" that report the byte offset of the line instead of the pattern.
-
- # Try to find the header ($1) and decompress from here
- for pos in `tr "$1\n$2" "\n$2=" < "$img" | grep -abo "^$2"`
- do
- pos=${pos%%:*}
- tail -c+$pos "$img" | $3 > $tmp 2> /dev/null
- check_vmlinux $tmp
- done
-}
-
-# Check invocation:
-me=${0##*/}
-img=$1
-if [ $# -ne 1 -o ! -s "$img" ]
-then
- echo "Usage: $me <kernel-image>" >&2
- exit 2
-fi
-
-# Prepare temp files:
-tmp=$(mktemp /tmp/vmlinux-XXX)
-trap "rm -f $tmp" 0
-
-# That didn't work, so retry after decompression.
-try_decompress '\037\213\010' xy gunzip
-try_decompress '\3757zXZ\000' abcde unxz
-try_decompress 'BZh' xy bunzip2
-try_decompress '\135\0\0\0' xxx unlzma
-try_decompress '\211\114\132' xy 'lzop -d'
-try_decompress '\004\"M\030' xxx 'lz4 -d'
-try_decompress '\002!L\030' xxx 'lz4 -d'
-try_decompress '(\265/\375' xxx unzstd
-
-# Finally check for uncompressed images or objects:
-check_vmlinux $img
-
-# Bail out:
-echo "$me: Cannot find vmlinux." >&2