aboutsummaryrefslogtreecommitdiffstats
path: root/kernels
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2020-10-30 12:56:46 -0700
committerNathan Chancellor <natechancellor@gmail.com>2020-10-30 13:02:24 -0700
commit7662110c1b6f20095d7a6bcec37ac106828104a6 (patch)
treedac399fac5bafdeb8e0647e27cbeffbd47b8619e /kernels
parentbuild-one.bash: override user's default branch name for temporary manifest repo (diff)
downloadandroid-wireguard-module-builder-7662110c1b6f20095d7a6bcec37ac106828104a6.tar.xz
android-wireguard-module-builder-7662110c1b6f20095d7a6bcec37ac106828104a6.zip
kernels: add sunfish
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'kernels')
-rw-r--r--kernels/sunfish/do.bash8
-rw-r--r--kernels/sunfish/manifest.xml21
-rw-r--r--kernels/sunfish/version-hashes.txt1
3 files changed, 30 insertions, 0 deletions
diff --git a/kernels/sunfish/do.bash b/kernels/sunfish/do.bash
new file mode 100644
index 0000000..b875b8c
--- /dev/null
+++ b/kernels/sunfish/do.bash
@@ -0,0 +1,8 @@
+#!/bin/bash
+set -ex
+BASE="$(readlink -f "$(dirname "$(readlink -f "$0")")")"
+echo 'EXT_MODULES="${EXT_MODULES} wireguard"' >> private/msm-google/build.config.common
+echo 'ccflags-y += -Wno-unused-variable' >> wireguard-linux-compat/src/Kbuild
+./build/build.sh
+./prebuilts-master/clang/host/linux-x86/clang-r383902/bin/llvm-strip -strip-debug out/android-msm-pixel-4.14/dist/wireguard.ko
+readlink -f out/android-msm-pixel-4.14/dist/wireguard.ko >&7
diff --git a/kernels/sunfish/manifest.xml b/kernels/sunfish/manifest.xml
new file mode 100644
index 0000000..29c3a28
--- /dev/null
+++ b/kernels/sunfish/manifest.xml
@@ -0,0 +1,21 @@
+<manifest>
+ <remote name="aosp" fetch="https://android.googlesource.com/" />
+ <default revision="refs/tags/android-11.0.0_r0.14" remote="aosp" sync-j="4" />
+
+ <project path="build" name="kernel/build" revision="master" clone-depth="1" />
+
+ <project path="private/msm-google" name="kernel/msm" clone-depth="1">
+ <linkfile src="build.config" dest="build.config" />
+ </project>
+ <project path="private/msm-google/techpack/audio" name="kernel/msm-extra" clone-depth="1" />
+ <project path="private/msm-google-modules/data-kernel" name="kernel/msm-modules/data-kernel" clone-depth="1" />
+ <project path="private/msm-google-modules/wlan/qca-wifi-host-cmn" name="kernel/msm-modules/qca-wfi-host-cmn" clone-depth="1" />
+ <project path="private/msm-google-modules/wlan/qcacld-3.0" name="kernel/msm-modules/qcacld" clone-depth="1" />
+ <project path="private/msm-google-modules/wlan/fw-api" name="kernel/msm-modules/wlan-fw-api" clone-depth="1" />
+ <project path="private/msm-google-modules/touch/fts" name="kernel/msm-modules/fts_touch" clone-depth="1" />
+
+ <project path="prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9" name="platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9" revision="pie-release" clone-depth="1" />
+ <project path="prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9" name="platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9" revision="pie-release" clone-depth="1" />
+ <project path="prebuilts-master/clang/host/linux-x86" name="platform/prebuilts/clang/host/linux-x86" revision="android11-release" clone-depth="1" groups="partner" />
+ <project path="prebuilts-master/misc" name="platform/prebuilts/misc" revision="pie-release" clone-depth="1" />
+</manifest>
diff --git a/kernels/sunfish/version-hashes.txt b/kernels/sunfish/version-hashes.txt
new file mode 100644
index 0000000..60225ad
--- /dev/null
+++ b/kernels/sunfish/version-hashes.txt
@@ -0,0 +1 @@
+a8b2e77643f311b0b37ca39b370952527726c169cfb1269d2e183ad073bcd7d1|Linux version 4.14.170-g538dda190bfb-ab6722133 (android-build@abfarm-us-west1-c-0019) (Android (6443078 based on r383902) clang version 11.0.1 (https://android.googlesource.com/toolchain/llvm-project b397f81060ce6d701042b782172ed13bee898b79)) #1 SMP PREEMPT Thu Jul 30 10:21:07 UTC 2020