diff --git a/device/testing/linux-alcatel-pop7lte/APKBUILD b/device/testing/linux-alcatel-pop7lte/APKBUILD
index 2dc0f007f2b0e5434a3bb6b2ade53a2f42d5e59e..1b62f236d6ecb979b96b83bf889ea61b2fbb0bc8 100644
--- a/device/testing/linux-alcatel-pop7lte/APKBUILD
+++ b/device/testing/linux-alcatel-pop7lte/APKBUILD
@@ -40,7 +40,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-amazon-tank/APKBUILD b/device/testing/linux-amazon-tank/APKBUILD
index 59024acfef751f698049e6990749e74467b27ece..dd739bf614177baecd9577b2224e6d083e470aea 100644
--- a/device/testing/linux-amazon-tank/APKBUILD
+++ b/device/testing/linux-amazon-tank/APKBUILD
@@ -35,7 +35,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-amazon-thor/APKBUILD b/device/testing/linux-amazon-thor/APKBUILD
index 9e06f495db0a8f456c29e5f9a714d1e9650dd163..fddc4686b1d90d8fd4bd25c15b3abb52a77aabe5 100755
--- a/device/testing/linux-amazon-thor/APKBUILD
+++ b/device/testing/linux-amazon-thor/APKBUILD
@@ -42,7 +42,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-asus-duma/APKBUILD b/device/testing/linux-asus-duma/APKBUILD
index 259d5fcbf8b737517d5a61506c0cd56e3bc5e65f..c0cab2e1a6e732fc21862808e2f45bf403a88f42 100644
--- a/device/testing/linux-asus-duma/APKBUILD
+++ b/device/testing/linux-asus-duma/APKBUILD
@@ -36,7 +36,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-asus-t00f/APKBUILD b/device/testing/linux-asus-t00f/APKBUILD
index 32f4195993e1eba35e617569844f95915c945a39..46f1f90160dd55f602f30d8e6b3d6ec3d55765fd 100644
--- a/device/testing/linux-asus-t00f/APKBUILD
+++ b/device/testing/linux-asus-t00f/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-asus-tf101/APKBUILD b/device/testing/linux-asus-tf101/APKBUILD
index 35f58c584784f34bb7aea1c4518c32526fe9b7c6..fe2a5d1eb61a21efc8e6961c2270d368629454fc 100644
--- a/device/testing/linux-asus-tf101/APKBUILD
+++ b/device/testing/linux-asus-tf101/APKBUILD
@@ -41,7 +41,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-asus-z00t/APKBUILD b/device/testing/linux-asus-z00t/APKBUILD
index fadd8c5ae63cb8f727ae923fad878f4b1b8f5a4b..0c9a3e5d5c8219d713426e0e779779ff2f0d4a95 100644
--- a/device/testing/linux-asus-z00t/APKBUILD
+++ b/device/testing/linux-asus-z00t/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-bq-chaozu/APKBUILD b/device/testing/linux-bq-chaozu/APKBUILD
index d50b82f9c1b234af5c64e9cbce894ce54802662b..1075dff1f224ca730337861e2b606d66ca29b419 100644
--- a/device/testing/linux-bq-chaozu/APKBUILD
+++ b/device/testing/linux-bq-chaozu/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-chuwi-hi10plus/APKBUILD b/device/testing/linux-chuwi-hi10plus/APKBUILD
index eb1c2127d380fda76ec2da864f63f14059b0ea5a..129207889af9cfdc3af7d83163471b373ebd9450 100644
--- a/device/testing/linux-chuwi-hi10plus/APKBUILD
+++ b/device/testing/linux-chuwi-hi10plus/APKBUILD
@@ -28,7 +28,7 @@ builddir="$srcdir/linux-$pkgver"
 prepare() {
 	default_prepare
 	REPLACE_GCCH=0 \
-		downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+		. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-fairphone-fp1/APKBUILD b/device/testing/linux-fairphone-fp1/APKBUILD
index 0558d7c515d8c01b98d37883dbc11ccf4be3d2d0..333005ab988ea8f72acb9bc7f555676f253b3bd9 100644
--- a/device/testing/linux-fairphone-fp1/APKBUILD
+++ b/device/testing/linux-fairphone-fp1/APKBUILD
@@ -32,7 +32,11 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir"/kernel "$_config" "$_carch" "$HOSTCC"
+	_builddir="$builddir"
+	builddir="$builddir"/kernel
+	. downstreamkernel_prepare
+	builddir="$_builddir"
+	unset _builddir
 }
 
 build() {
diff --git a/device/testing/linux-fairphone-fp2/APKBUILD b/device/testing/linux-fairphone-fp2/APKBUILD
index ce40aa257f146b30d77c6cbd93810ff188b5b48e..04c76617ea8941b78a62ff5c09b118781e5493ef 100644
--- a/device/testing/linux-fairphone-fp2/APKBUILD
+++ b/device/testing/linux-fairphone-fp2/APKBUILD
@@ -38,7 +38,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-finepower-f1/APKBUILD b/device/testing/linux-finepower-f1/APKBUILD
index 6ddff665aa39f86efeec90e8efa8398dadaee12c..f7f31c58c12a036b3687e2fb820d40bbe85b7b5c 100644
--- a/device/testing/linux-finepower-f1/APKBUILD
+++ b/device/testing/linux-finepower-f1/APKBUILD
@@ -32,7 +32,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-fujitsu-m532/APKBUILD b/device/testing/linux-fujitsu-m532/APKBUILD
index 550fabd30fbda63839aa0beabdf6fed3d0333c64..d883a3a8090a31054b882daea84d62418f1ffda4 100644
--- a/device/testing/linux-fujitsu-m532/APKBUILD
+++ b/device/testing/linux-fujitsu-m532/APKBUILD
@@ -35,7 +35,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-google-crosshatch/APKBUILD b/device/testing/linux-google-crosshatch/APKBUILD
index 3c23280efd20795d80b8750f009e33383d702d1d..61fbaec837e3c9df5e268a967786fcaf3e1f2a7f 100644
--- a/device/testing/linux-google-crosshatch/APKBUILD
+++ b/device/testing/linux-google-crosshatch/APKBUILD
@@ -31,7 +31,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-google-glass/APKBUILD b/device/testing/linux-google-glass/APKBUILD
index 62d9b933f5ab4c4451bebb149fa7f5e8b72ad235..6039fb885cb12818aec6a9c93883dcba9dfe8fa8 100644
--- a/device/testing/linux-google-glass/APKBUILD
+++ b/device/testing/linux-google-glass/APKBUILD
@@ -34,7 +34,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-gp-peak/APKBUILD b/device/testing/linux-gp-peak/APKBUILD
index 9cc145c2224641f71c5a2fef67142a060c8cef3e..8ab053f7cd60afcec3a6b0cb387314d4a93c8fff 100644
--- a/device/testing/linux-gp-peak/APKBUILD
+++ b/device/testing/linux-gp-peak/APKBUILD
@@ -36,7 +36,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-hisense-m470bsa/APKBUILD b/device/testing/linux-hisense-m470bsa/APKBUILD
index 159b16f4870ee4ebc77cfa86ae861e2bb10e9ac6..4f07f9e31b273b410d56d60cc24a1872c6da7692 100644
--- a/device/testing/linux-hisense-m470bsa/APKBUILD
+++ b/device/testing/linux-hisense-m470bsa/APKBUILD
@@ -32,7 +32,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-htc-a5ul/APKBUILD b/device/testing/linux-htc-a5ul/APKBUILD
index cb5e1df71b1d6b311a13a016621fb4c8dbdbeff8..16ea541e436d6476163407fd718e90c3f78a2772 100644
--- a/device/testing/linux-htc-a5ul/APKBUILD
+++ b/device/testing/linux-htc-a5ul/APKBUILD
@@ -35,7 +35,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-htc-bravo/APKBUILD b/device/testing/linux-htc-bravo/APKBUILD
index c2801c9a05b339fcf5888ab3133941019b9a3d02..d0f88dd46b638754611334729a4dc7bb56898ff4 100644
--- a/device/testing/linux-htc-bravo/APKBUILD
+++ b/device/testing/linux-htc-bravo/APKBUILD
@@ -35,7 +35,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-htc-evita/APKBUILD b/device/testing/linux-htc-evita/APKBUILD
index dd1431bc6c0fe6e051a17120451105bf6ad550c5..83ac1b0dbf0a4b2a97051261f1d00c425aec4a8b 100644
--- a/device/testing/linux-htc-evita/APKBUILD
+++ b/device/testing/linux-htc-evita/APKBUILD
@@ -29,7 +29,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-htc-flounder/APKBUILD b/device/testing/linux-htc-flounder/APKBUILD
index 74651a59a5f7fb54773adbb0becbdaf98146132f..6abd2a130c3910bd033c25a523cba1f5d303e270 100644
--- a/device/testing/linux-htc-flounder/APKBUILD
+++ b/device/testing/linux-htc-flounder/APKBUILD
@@ -34,7 +34,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-htc-k2ul/APKBUILD b/device/testing/linux-htc-k2ul/APKBUILD
index 72675a49f7761dcb01e7cc266ff17fb465d868bb..98d66a507b79c5a62585cc385f687e7d85a2ff2f 100644
--- a/device/testing/linux-htc-k2ul/APKBUILD
+++ b/device/testing/linux-htc-k2ul/APKBUILD
@@ -42,7 +42,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-htc-m7/APKBUILD b/device/testing/linux-htc-m7/APKBUILD
index 3359f183e62f118adb4889bd11125555b4a231df..a4c01d9fe98deeb0e9f84ff8dd4a022eb580f3a2 100644
--- a/device/testing/linux-htc-m7/APKBUILD
+++ b/device/testing/linux-htc-m7/APKBUILD
@@ -29,7 +29,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-htc-m8/APKBUILD b/device/testing/linux-htc-m8/APKBUILD
index 4e1f25834054ffb57b3291415909b96f7aa2a21b..2c7b2cd750ec30aab8956560c156b517136b5922 100644
--- a/device/testing/linux-htc-m8/APKBUILD
+++ b/device/testing/linux-htc-m8/APKBUILD
@@ -36,7 +36,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-htc-memul/APKBUILD b/device/testing/linux-htc-memul/APKBUILD
index c0f275fcaf9b74d5673be4484ea45526af9d9427..c2ecf12473e83c8801d5e2cbaa999ec677d6522c 100644
--- a/device/testing/linux-htc-memul/APKBUILD
+++ b/device/testing/linux-htc-memul/APKBUILD
@@ -30,7 +30,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-htc-primou/APKBUILD b/device/testing/linux-htc-primou/APKBUILD
index 79260f693b72b9cdb424d522d4b417254ef29615..706ecd467a0ce86df124ba049babe08704da716b 100644
--- a/device/testing/linux-htc-primou/APKBUILD
+++ b/device/testing/linux-htc-primou/APKBUILD
@@ -29,7 +29,7 @@ builddir="$srcdir/$_repository-$_commit"
 prepare() {
 	default_prepare
 
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-htc-protou/APKBUILD b/device/testing/linux-htc-protou/APKBUILD
index 4f97685ac3ec638b4749766a0981efcc3ec0acbb..a4c4f19c7f55e4620d2871355b1a7526dca6c892 100644
--- a/device/testing/linux-htc-protou/APKBUILD
+++ b/device/testing/linux-htc-protou/APKBUILD
@@ -39,7 +39,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-htc-ville/APKBUILD b/device/testing/linux-htc-ville/APKBUILD
index b75031f25b436f1b385663f2fddbc3c923120215..e6e388bff3a3530a9a172ba1185fcb3d6ab466ff 100644
--- a/device/testing/linux-htc-ville/APKBUILD
+++ b/device/testing/linux-htc-ville/APKBUILD
@@ -30,7 +30,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-htc-vision/APKBUILD b/device/testing/linux-htc-vision/APKBUILD
index 3012fcc2e92a463b60e02c87a170d694d288787f..0bba02406279bea76a2f0a3fea0cc24bb2511ea6 100644
--- a/device/testing/linux-htc-vision/APKBUILD
+++ b/device/testing/linux-htc-vision/APKBUILD
@@ -30,7 +30,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-htc-vivo/APKBUILD b/device/testing/linux-htc-vivo/APKBUILD
index 512e9810660ef15b3ddd2cefd95015e9a9a8c4bf..0845b19922ba23bebc1e14e3b013f7dccc47975f 100644
--- a/device/testing/linux-htc-vivo/APKBUILD
+++ b/device/testing/linux-htc-vivo/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-huawei-cameron/APKBUILD b/device/testing/linux-huawei-cameron/APKBUILD
index e31e3573bb7f160d472f1ec76429e04dd6f20ab7..37f1920f1bf820c70b3f1f33c05f0133893cb342 100644
--- a/device/testing/linux-huawei-cameron/APKBUILD
+++ b/device/testing/linux-huawei-cameron/APKBUILD
@@ -29,7 +29,7 @@ outdir="$srcdir/../out"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-huawei-lua-u22/APKBUILD b/device/testing/linux-huawei-lua-u22/APKBUILD
index 3a2da623f11eb496ac7390037e51d288f877ac33..4f80746266a033ae736f8a400cb0b87e6884a82d 100644
--- a/device/testing/linux-huawei-lua-u22/APKBUILD
+++ b/device/testing/linux-huawei-lua-u22/APKBUILD
@@ -29,7 +29,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-huawei-y530/APKBUILD b/device/testing/linux-huawei-y530/APKBUILD
index b79beb3ad60e84209f45ea738f01ce5ef5663433..98c386a8bc8fc701113af97a64b9804b154f8726 100644
--- a/device/testing/linux-huawei-y530/APKBUILD
+++ b/device/testing/linux-huawei-y530/APKBUILD
@@ -45,7 +45,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-infocus-flatfish/APKBUILD b/device/testing/linux-infocus-flatfish/APKBUILD
index aaafa66b87d937bfb8cfb2cb4ac08402b833f662..6e0bbad6ea604595e01e665a4e456c2a60e34444 100644
--- a/device/testing/linux-infocus-flatfish/APKBUILD
+++ b/device/testing/linux-infocus-flatfish/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-jolla-sbj/APKBUILD b/device/testing/linux-jolla-sbj/APKBUILD
index d4a5e57a1b40d293d15cb7c628340794e72b3f4b..f2229e797012fd45a2fdfddb5dea84b4e1d4ff6e 100644
--- a/device/testing/linux-jolla-sbj/APKBUILD
+++ b/device/testing/linux-jolla-sbj/APKBUILD
@@ -41,7 +41,7 @@ prepare() {
 	cd "$ksrcdir"
 
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-leeco-s2/APKBUILD b/device/testing/linux-leeco-s2/APKBUILD
index d945263b579b892713ff159e0d2809d0a21a0531..9a0b515d9486456bf276a6009ad779871ef9e346 100644
--- a/device/testing/linux-leeco-s2/APKBUILD
+++ b/device/testing/linux-leeco-s2/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-lenovo-karate/APKBUILD b/device/testing/linux-lenovo-karate/APKBUILD
index 88d52e790d7201fc9e601abd87bc68eca0bd15ca..8b7f43c57804f19d7021f8fd3b85e0813f511047 100644
--- a/device/testing/linux-lenovo-karate/APKBUILD
+++ b/device/testing/linux-lenovo-karate/APKBUILD
@@ -35,7 +35,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-lg-bullhead/APKBUILD b/device/testing/linux-lg-bullhead/APKBUILD
index 92ceb38390b7278f96f0fff9d3e72b18de575add..3ae11417f0bc87bc8d1c614c9df7287eee0954ea 100644
--- a/device/testing/linux-lg-bullhead/APKBUILD
+++ b/device/testing/linux-lg-bullhead/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-lg-d722/APKBUILD b/device/testing/linux-lg-d722/APKBUILD
index f1b50c8cd6c256b963296ce632fc7b4f89d8030d..00e516af79fc3a3e043df1c8228d18b15eded224 100644
--- a/device/testing/linux-lg-d722/APKBUILD
+++ b/device/testing/linux-lg-d722/APKBUILD
@@ -28,7 +28,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-lg-dory/APKBUILD b/device/testing/linux-lg-dory/APKBUILD
index e5f91af3423a8f296116dd34773a5a35c766654f..c483db90116ade1602eff57cc0617338ea248719 100644
--- a/device/testing/linux-lg-dory/APKBUILD
+++ b/device/testing/linux-lg-dory/APKBUILD
@@ -53,7 +53,7 @@ builddir="$srcdir/kernel_msm-$_hash"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-lg-e610/APKBUILD b/device/testing/linux-lg-e610/APKBUILD
index 183f9f2e42713fc1378af536c940b08b05447e68..ff8fbf79f54a7248be2d6ca0dd8742d8c005862d 100644
--- a/device/testing/linux-lg-e610/APKBUILD
+++ b/device/testing/linux-lg-e610/APKBUILD
@@ -36,7 +36,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-lg-h815/APKBUILD b/device/testing/linux-lg-h815/APKBUILD
index 9c93ad6f916eefda201ea5f63f39dbca3ff4fcba..64941b78a2fee642f085ac7d58e4118315ab0695 100644
--- a/device/testing/linux-lg-h815/APKBUILD
+++ b/device/testing/linux-lg-h815/APKBUILD
@@ -35,7 +35,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-lg-mako/APKBUILD b/device/testing/linux-lg-mako/APKBUILD
index 82170fe721c3d38e74a05d6f37e2022d77e0d01b..866c3d2c6c02bb4eb22e69c9723772fc7dac5ac6 100644
--- a/device/testing/linux-lg-mako/APKBUILD
+++ b/device/testing/linux-lg-mako/APKBUILD
@@ -29,7 +29,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-lg-p700/APKBUILD b/device/testing/linux-lg-p700/APKBUILD
index 459c134a951668d7cbbbb209e4fa2b0500e01f57..7e2d558a3d25de37f9da63dd2415b531edda9be5 100644
--- a/device/testing/linux-lg-p700/APKBUILD
+++ b/device/testing/linux-lg-p700/APKBUILD
@@ -36,7 +36,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-lg-vee7e/APKBUILD b/device/testing/linux-lg-vee7e/APKBUILD
index b4cb747ae6fe96d3dac26aa224b9466130c24fee..2c82514232032acaef57cc8afc99a52b3e7f8edb 100644
--- a/device/testing/linux-lg-vee7e/APKBUILD
+++ b/device/testing/linux-lg-vee7e/APKBUILD
@@ -31,7 +31,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-lg-w5/APKBUILD b/device/testing/linux-lg-w5/APKBUILD
index fe1874b2a571624697be977c30a88d6ff8a95d22..1a9feb352aa81b2e09111eaf0fb5e38a8f3e9cca 100644
--- a/device/testing/linux-lg-w5/APKBUILD
+++ b/device/testing/linux-lg-w5/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-medion-kai/APKBUILD b/device/testing/linux-medion-kai/APKBUILD
index 35db059478f7bdcd78292ff9bfa2364f4e0fa00a..72a3ac94e82cf491df6547c221f161bd1fff4831 100644
--- a/device/testing/linux-medion-kai/APKBUILD
+++ b/device/testing/linux-medion-kai/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-meizu-turbo/APKBUILD b/device/testing/linux-meizu-turbo/APKBUILD
index 6445c03ecb05e7213707772371a6431a054e85f7..9c53b3a86ee4added17849a63756fa5148f6b24e 100644
--- a/device/testing/linux-meizu-turbo/APKBUILD
+++ b/device/testing/linux-meizu-turbo/APKBUILD
@@ -31,7 +31,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-motorola-athene/APKBUILD b/device/testing/linux-motorola-athene/APKBUILD
index 26e43c4a6ee1f306d26c86712fb249f74d44edcf..392b28c71b61d1822e1615a81ce318a3f43e8739 100644
--- a/device/testing/linux-motorola-athene/APKBUILD
+++ b/device/testing/linux-motorola-athene/APKBUILD
@@ -35,7 +35,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-motorola-cedric/APKBUILD b/device/testing/linux-motorola-cedric/APKBUILD
index 6f89472569a62f1ed8540b8908c880673e58ec4c..5fcab3b672297550921274141964d8e944de5a58 100644
--- a/device/testing/linux-motorola-cedric/APKBUILD
+++ b/device/testing/linux-motorola-cedric/APKBUILD
@@ -30,7 +30,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-motorola-def/APKBUILD b/device/testing/linux-motorola-def/APKBUILD
index fbcd51fd6935cc1502e77e4b353d26ca9898735e..cacbf2f625488c392db25aa820d443682f38ed5e 100644
--- a/device/testing/linux-motorola-def/APKBUILD
+++ b/device/testing/linux-motorola-def/APKBUILD
@@ -36,7 +36,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	REPLACE_GCCH=0 downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	REPLACE_GCCH=0 . downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-motorola-falcon/APKBUILD b/device/testing/linux-motorola-falcon/APKBUILD
index 5a3a2b01a9e8599f157a342cd583f75350d52fd5..8e92c0f26e48d0076e432cdbe582812dfd2bcd61 100644
--- a/device/testing/linux-motorola-falcon/APKBUILD
+++ b/device/testing/linux-motorola-falcon/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-motorola-ghost/APKBUILD b/device/testing/linux-motorola-ghost/APKBUILD
index dc34dc317e868777e805ad8f6c20542c9b2f0475..939be2ec61812a11d9e8efbff64e093b26c3be71 100644
--- a/device/testing/linux-motorola-ghost/APKBUILD
+++ b/device/testing/linux-motorola-ghost/APKBUILD
@@ -39,7 +39,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-motorola-lux/APKBUILD b/device/testing/linux-motorola-lux/APKBUILD
index 0d84d19bec3bc281f6b646cef59e0c491ee72aa7..79aed1dcb50d424a3fcff576741e80d34d22e9fe 100644
--- a/device/testing/linux-motorola-lux/APKBUILD
+++ b/device/testing/linux-motorola-lux/APKBUILD
@@ -28,7 +28,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-motorola-maserati/APKBUILD b/device/testing/linux-motorola-maserati/APKBUILD
index 70eb7f9084c7b78d8855db35df8355b16254b025..c3bb7383c62ac9827673aa30ff6bdbec6a9e7ec0 100644
--- a/device/testing/linux-motorola-maserati/APKBUILD
+++ b/device/testing/linux-motorola-maserati/APKBUILD
@@ -46,7 +46,7 @@ _pvr_builddir="$srcdir/$_hardware_repository-$_hardware_commit/pvr-source/eurasi
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 
 	# Workaround to get the Makefile working outside of a git repository
 	cd "$_wlan_builddir"
diff --git a/device/testing/linux-motorola-montana/APKBUILD b/device/testing/linux-motorola-montana/APKBUILD
index add0846bb82d9849e041d23bf3219e35333ca4e8..27809c32dbd8f446541246cd00f9974999f4ed07 100644
--- a/device/testing/linux-motorola-montana/APKBUILD
+++ b/device/testing/linux-motorola-montana/APKBUILD
@@ -25,7 +25,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-motorola-peregrine/APKBUILD b/device/testing/linux-motorola-peregrine/APKBUILD
index cb39edac09e0c3e1d00ae3f105722b5e5803c7e3..e4517b71629ebf160648a49ff341ed0d8d990a45 100644
--- a/device/testing/linux-motorola-peregrine/APKBUILD
+++ b/device/testing/linux-motorola-peregrine/APKBUILD
@@ -38,7 +38,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-motorola-potter/APKBUILD b/device/testing/linux-motorola-potter/APKBUILD
index 2ede39732f97f204a274f4681885b2c08b83dd29..26108ff2193ab837e7581e92363ead339aad85c2 100644
--- a/device/testing/linux-motorola-potter/APKBUILD
+++ b/device/testing/linux-motorola-potter/APKBUILD
@@ -40,7 +40,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-motorola-shamu/APKBUILD b/device/testing/linux-motorola-shamu/APKBUILD
index e9a819a168f9cb8dbb1e547e24f78a0e7ae96d37..a8f090058ea44bac51954eddde15e4143fb05386 100644
--- a/device/testing/linux-motorola-shamu/APKBUILD
+++ b/device/testing/linux-motorola-shamu/APKBUILD
@@ -35,7 +35,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-motorola-surnia/APKBUILD b/device/testing/linux-motorola-surnia/APKBUILD
index 0546132bbeae1032bf3e394113d8a856ce449c59..6867841318ef482a09d9a5aef1443738bd255751 100644
--- a/device/testing/linux-motorola-surnia/APKBUILD
+++ b/device/testing/linux-motorola-surnia/APKBUILD
@@ -33,7 +33,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-nextbit-robin/APKBUILD b/device/testing/linux-nextbit-robin/APKBUILD
index 58c4be1767667ff35ac7a8abf53ff0635604a785..83b27ae04182a5269c15f68191991553d38ef2c5 100644
--- a/device/testing/linux-nextbit-robin/APKBUILD
+++ b/device/testing/linux-nextbit-robin/APKBUILD
@@ -35,7 +35,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-nobby-230/APKBUILD b/device/testing/linux-nobby-230/APKBUILD
index 6cd6bf67404aadaa0be62bba0b43cab0edac9b9c..45a9d2d1427f3fe4919a6b68fdcfd286e77bc15d 100644
--- a/device/testing/linux-nobby-230/APKBUILD
+++ b/device/testing/linux-nobby-230/APKBUILD
@@ -41,7 +41,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-nokia-beatles/APKBUILD b/device/testing/linux-nokia-beatles/APKBUILD
index af9225c737ed72a57eb13b2dcd045669910c38ca..dcf88ddaf91c3bcc4e3e95f741b85a07f7c85c6f 100644
--- a/device/testing/linux-nokia-beatles/APKBUILD
+++ b/device/testing/linux-nokia-beatles/APKBUILD
@@ -40,7 +40,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-nokia-frt/APKBUILD b/device/testing/linux-nokia-frt/APKBUILD
index 8733336dc2585eb6877947a7efc9d0c16aeea3e7..1fcdae9910db0eafa2886989480c6e83243e18a4 100644
--- a/device/testing/linux-nokia-frt/APKBUILD
+++ b/device/testing/linux-nokia-frt/APKBUILD
@@ -31,7 +31,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-nokia-rm846/APKBUILD b/device/testing/linux-nokia-rm846/APKBUILD
index 54b8f60cb8e8ca87b6c2a90dc872f8304bcb0e8c..c9fce2c2ec9a93e1033c0b6a44419603fd54b129 100644
--- a/device/testing/linux-nokia-rm846/APKBUILD
+++ b/device/testing/linux-nokia-rm846/APKBUILD
@@ -35,7 +35,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-nokia-rm885/APKBUILD b/device/testing/linux-nokia-rm885/APKBUILD
index 3ed07a8432e275c362a9ab161580984757ef3b65..4d9bab9017fb96051e659ad327acd65c6a507664 100644
--- a/device/testing/linux-nokia-rm885/APKBUILD
+++ b/device/testing/linux-nokia-rm885/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-oneplus-msm8998/APKBUILD b/device/testing/linux-oneplus-msm8998/APKBUILD
index d694081b797c86cba59f25d200b3f1f91b5d8e7f..78efa380400ee87ad6c640e12120a51d4a3d2632 100644
--- a/device/testing/linux-oneplus-msm8998/APKBUILD
+++ b/device/testing/linux-oneplus-msm8998/APKBUILD
@@ -39,7 +39,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-oneplus-oneplus2/APKBUILD b/device/testing/linux-oneplus-oneplus2/APKBUILD
index 22450ab3f06f7d1e46e5786f4bd7b506686835fa..985a0cf69890c5aeb33d08aaed0f85fb592ada34 100644
--- a/device/testing/linux-oneplus-oneplus2/APKBUILD
+++ b/device/testing/linux-oneplus-oneplus2/APKBUILD
@@ -35,7 +35,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-oppo-find-7a/APKBUILD b/device/testing/linux-oppo-find-7a/APKBUILD
index 76c13064d5d91b229b1405527f4570ded35c5603..61340b3e695f3dcc9686748d8c68fa03076d6759 100644
--- a/device/testing/linux-oppo-find-7a/APKBUILD
+++ b/device/testing/linux-oppo-find-7a/APKBUILD
@@ -45,7 +45,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-ouya-ouya/APKBUILD b/device/testing/linux-ouya-ouya/APKBUILD
index 6ca7148ba6489a1039ee60ace5f38b6260aa87ea..8b2b6660b4afdb19219a570341f055416c551612 100644
--- a/device/testing/linux-ouya-ouya/APKBUILD
+++ b/device/testing/linux-ouya-ouya/APKBUILD
@@ -32,7 +32,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-purism-librem5/APKBUILD b/device/testing/linux-purism-librem5/APKBUILD
index 550887c448ea76764c4fe85a7d3f2e7d9b819425..a159d3f39ba0e03959d56783194f72596441530b 100644
--- a/device/testing/linux-purism-librem5/APKBUILD
+++ b/device/testing/linux-purism-librem5/APKBUILD
@@ -31,7 +31,7 @@ builddir="$srcdir/$_repository-pureos-$_purismver"
 prepare() {
 	default_prepare
 	REPLACE_GCCH=0 \
-		downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+		. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-a5y17lte/APKBUILD b/device/testing/linux-samsung-a5y17lte/APKBUILD
index 0d331b39ba94097585e258db313ebf00837def80..46c89b002082413a3b8de0e00d9f6a4e3a8ba74b 100644
--- a/device/testing/linux-samsung-a5y17lte/APKBUILD
+++ b/device/testing/linux-samsung-a5y17lte/APKBUILD
@@ -37,7 +37,7 @@ qcaclddir="$srcdir/quic-la-platform-vendor-qcom-opensource-wlan-qcacld-2.0-$_qca
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 	prepare_modules
 }
 
diff --git a/device/testing/linux-samsung-apexq/APKBUILD b/device/testing/linux-samsung-apexq/APKBUILD
index 961de3ce69a0ccffe92967e4ca57ebc8a1af54e8..aafd27046ae6138b8e174c30f62ebb804d4ca813 100644
--- a/device/testing/linux-samsung-apexq/APKBUILD
+++ b/device/testing/linux-samsung-apexq/APKBUILD
@@ -29,7 +29,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-ariesve/APKBUILD b/device/testing/linux-samsung-ariesve/APKBUILD
index 4d8c8e3c3514b73cf1c65c08410455681610b2aa..c5c8c9e285a497c8551063900f2349b569cc0906 100644
--- a/device/testing/linux-samsung-ariesve/APKBUILD
+++ b/device/testing/linux-samsung-ariesve/APKBUILD
@@ -28,7 +28,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-baffinlite/APKBUILD b/device/testing/linux-samsung-baffinlite/APKBUILD
index 57db8c7dbe539c48b2b71c730b2c0b90d3c1f516..425d8d9340d46c01290692e9a6e24b14dad7717c 100644
--- a/device/testing/linux-samsung-baffinlite/APKBUILD
+++ b/device/testing/linux-samsung-baffinlite/APKBUILD
@@ -30,7 +30,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-espresso10/APKBUILD b/device/testing/linux-samsung-espresso10/APKBUILD
index b24b94f7e8fedca5a331c4878bc03e7cd2a4ff70..e94adbf59570208fca6bd036bbb6c2801c7e76c5 100644
--- a/device/testing/linux-samsung-espresso10/APKBUILD
+++ b/device/testing/linux-samsung-espresso10/APKBUILD
@@ -35,7 +35,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-expressatt/APKBUILD b/device/testing/linux-samsung-expressatt/APKBUILD
index 970352c90be33dbabe1a0aca97b695b9513700a3..62de5259b30a88bb6ed0333d021e264642feec03 100644
--- a/device/testing/linux-samsung-expressatt/APKBUILD
+++ b/device/testing/linux-samsung-expressatt/APKBUILD
@@ -33,7 +33,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-golden/APKBUILD b/device/testing/linux-samsung-golden/APKBUILD
index 94a6af64812dccd404263f4fa73fd7f6e538828e..f310554205ebf68edc75360354300b5cb7d99f19 100644
--- a/device/testing/linux-samsung-golden/APKBUILD
+++ b/device/testing/linux-samsung-golden/APKBUILD
@@ -40,7 +40,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-gts210velte/APKBUILD b/device/testing/linux-samsung-gts210velte/APKBUILD
index 23dae7f03f793891a9d48228084ceea53998f7dc..eb2dfa544fb1146a8afa7222c734ac3a6fcdb821 100644
--- a/device/testing/linux-samsung-gts210velte/APKBUILD
+++ b/device/testing/linux-samsung-gts210velte/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 prepare() {
 	default_prepare
 
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-gts210vewifi/APKBUILD b/device/testing/linux-samsung-gts210vewifi/APKBUILD
index f213d5083f7c7c5c2855348041f59bf7dbf2dbcd..e0865c8f01248b46211ea1d3181b87fa803f32f9 100644
--- a/device/testing/linux-samsung-gts210vewifi/APKBUILD
+++ b/device/testing/linux-samsung-gts210vewifi/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 prepare() {
 	default_prepare
 
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-hero2lte/APKBUILD b/device/testing/linux-samsung-hero2lte/APKBUILD
index e0d98bacd85bf77bf7f9ab7aec5a3d0950a9047e..310d5f0777a3db19c9851e248fb13e6e6e7d9aa6 100644
--- a/device/testing/linux-samsung-hero2lte/APKBUILD
+++ b/device/testing/linux-samsung-hero2lte/APKBUILD
@@ -27,7 +27,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-herolte/APKBUILD b/device/testing/linux-samsung-herolte/APKBUILD
index 1162aaa9bf3112c788b0550f56a52d41be1f0869..51ce3cfa11ad58089e0701f70827aca6712403fd 100644
--- a/device/testing/linux-samsung-herolte/APKBUILD
+++ b/device/testing/linux-samsung-herolte/APKBUILD
@@ -27,7 +27,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-i747m/APKBUILD b/device/testing/linux-samsung-i747m/APKBUILD
index 5b5067e92b13d904140043a39392e5056ede8e1a..641da4f429965107e50497fe41aeff90c741abf4 100644
--- a/device/testing/linux-samsung-i747m/APKBUILD
+++ b/device/testing/linux-samsung-i747m/APKBUILD
@@ -44,7 +44,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-i8200/APKBUILD b/device/testing/linux-samsung-i8200/APKBUILD
index ba4f098de107b21ec2e9396dea4f3addf2e95438..f8963909a1d5dd9c5c670f55745cc32bc951d12b 100644
--- a/device/testing/linux-samsung-i8200/APKBUILD
+++ b/device/testing/linux-samsung-i8200/APKBUILD
@@ -35,7 +35,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-i9003/APKBUILD b/device/testing/linux-samsung-i9003/APKBUILD
index 2d69a35267b8907911667d55c8b283b9a9308a02..b85c05fd742fa96beb0936acb8499e8399c894bd 100644
--- a/device/testing/linux-samsung-i9003/APKBUILD
+++ b/device/testing/linux-samsung-i9003/APKBUILD
@@ -56,7 +56,7 @@ prepare_isorec() {
 prepare() {
 	default_prepare
 	prepare_isorec
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-i9070/APKBUILD b/device/testing/linux-samsung-i9070/APKBUILD
index aaae53fe12bd830054f33b04e40553b4a0083c34..f1a35d8d57b7bc34c77c79f3f970ce8dcd81800f 100644
--- a/device/testing/linux-samsung-i9070/APKBUILD
+++ b/device/testing/linux-samsung-i9070/APKBUILD
@@ -41,7 +41,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 
 	# Use Alpine's busybox.static instead of the pre-compiled busybox shipped
 	# with the source
diff --git a/device/testing/linux-samsung-i9100/APKBUILD b/device/testing/linux-samsung-i9100/APKBUILD
index 99a87843c14054610cec056f1822a19584695533..f0d1aa472164e1a77fdee19099cf15c22e1fad69 100644
--- a/device/testing/linux-samsung-i9100/APKBUILD
+++ b/device/testing/linux-samsung-i9100/APKBUILD
@@ -53,7 +53,7 @@ prepare() {
 	default_prepare
 	prepare_isorec
 
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-i9195/APKBUILD b/device/testing/linux-samsung-i9195/APKBUILD
index e27885d69dcecf6eb950beda7c7793fdb5b83b8c..bfe703c7e2e25e66a1bf6fc15fe14022bb99f1f8 100644
--- a/device/testing/linux-samsung-i9195/APKBUILD
+++ b/device/testing/linux-samsung-i9195/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-j1mini3g/APKBUILD b/device/testing/linux-samsung-j1mini3g/APKBUILD
index d71ba52bd47e861698fa54114e76f8b7975bf175..86b82efa192e2561859d12608ff7b16711e4a448 100644
--- a/device/testing/linux-samsung-j1mini3g/APKBUILD
+++ b/device/testing/linux-samsung-j1mini3g/APKBUILD
@@ -29,7 +29,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-j3nxlte/APKBUILD b/device/testing/linux-samsung-j3nxlte/APKBUILD
index 65e62a3968b67de69dee8cfd599897f90179cd3f..acc833b01cd927c9ac54ef47a1f38263f2b3db87 100644
--- a/device/testing/linux-samsung-j3nxlte/APKBUILD
+++ b/device/testing/linux-samsung-j3nxlte/APKBUILD
@@ -30,7 +30,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-jflte/APKBUILD b/device/testing/linux-samsung-jflte/APKBUILD
index 2dea667dd1638b73ca0a8a020d5f9bef8c75ac3a..daa378a3a74f851c7fa81cc2ca5af673ac955d5b 100644
--- a/device/testing/linux-samsung-jflte/APKBUILD
+++ b/device/testing/linux-samsung-jflte/APKBUILD
@@ -29,7 +29,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-klte/APKBUILD b/device/testing/linux-samsung-klte/APKBUILD
index b3ef3384c0c95b5e305be960205b870ccc82736f..3b559b02327c1de7be99fbcc3149c7ac82db6bc3 100644
--- a/device/testing/linux-samsung-klte/APKBUILD
+++ b/device/testing/linux-samsung-klte/APKBUILD
@@ -48,7 +48,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-kminilte/APKBUILD b/device/testing/linux-samsung-kminilte/APKBUILD
index d7ad295e93222ec704b0d5858e7024d674dfa1be..70a0c38ecfb83aa1b8383c8ae961f9440fd23838 100644
--- a/device/testing/linux-samsung-kminilte/APKBUILD
+++ b/device/testing/linux-samsung-kminilte/APKBUILD
@@ -34,7 +34,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-kylepro/APKBUILD b/device/testing/linux-samsung-kylepro/APKBUILD
index 83da0f017f7332929e8a758c74f6403fbef91e65..3cdee269c04585152ec28fcd1c9e8b892c1d79bb 100644
--- a/device/testing/linux-samsung-kylepro/APKBUILD
+++ b/device/testing/linux-samsung-kylepro/APKBUILD
@@ -29,7 +29,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-kylessopen/APKBUILD b/device/testing/linux-samsung-kylessopen/APKBUILD
index 027684257f2d81c0bf0a62a124167df5e4f61b71..70c48fca40b0b3c03a17c53220a9065f799e71b6 100644
--- a/device/testing/linux-samsung-kylessopen/APKBUILD
+++ b/device/testing/linux-samsung-kylessopen/APKBUILD
@@ -29,7 +29,7 @@ builddir="$srcdir/$_kernel-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-kylevess/APKBUILD b/device/testing/linux-samsung-kylevess/APKBUILD
index 6a74e67ad3f2b12ea6d2361fd6c683dc10be8219..e02e8111796f2dabc4960e06bff2ab2e014afca3 100644
--- a/device/testing/linux-samsung-kylevess/APKBUILD
+++ b/device/testing/linux-samsung-kylevess/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-lt01wifi/APKBUILD b/device/testing/linux-samsung-lt01wifi/APKBUILD
index 072102659a4379ed3484f3afe653fff53eff9482..1934bcc4fb5e3a839b957a14e1abf9a574bf6f31 100644
--- a/device/testing/linux-samsung-lt01wifi/APKBUILD
+++ b/device/testing/linux-samsung-lt01wifi/APKBUILD
@@ -28,7 +28,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-lt023g/APKBUILD b/device/testing/linux-samsung-lt023g/APKBUILD
index 9b5e79c2c32b75ba6bdc737f5bcffac0bba7ea35..7706d17696324d5b9d2a923ac78fe98ec6e0a529 100644
--- a/device/testing/linux-samsung-lt023g/APKBUILD
+++ b/device/testing/linux-samsung-lt023g/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-maguro/APKBUILD b/device/testing/linux-samsung-maguro/APKBUILD
index ac1f3b6fd977fd9ce315851efc398a908b3af9a3..6cc97550f6936d1449e58dad5b0aaa802268231d 100644
--- a/device/testing/linux-samsung-maguro/APKBUILD
+++ b/device/testing/linux-samsung-maguro/APKBUILD
@@ -36,7 +36,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-manta/APKBUILD b/device/testing/linux-samsung-manta/APKBUILD
index 009639c1a427d16395fc42c802f58245fa2cba24..9fad0006fb6dcd680fd369bd28799d78f1df7faf 100644
--- a/device/testing/linux-samsung-manta/APKBUILD
+++ b/device/testing/linux-samsung-manta/APKBUILD
@@ -34,7 +34,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-matissewifi/APKBUILD b/device/testing/linux-samsung-matissewifi/APKBUILD
index 746ba2497a7f9ca825b0212e5c6bc2c4e6fa3841..b5409293e886daa3e229816bb09ac5c6e24a9b26 100644
--- a/device/testing/linux-samsung-matissewifi/APKBUILD
+++ b/device/testing/linux-samsung-matissewifi/APKBUILD
@@ -34,7 +34,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-n5110/APKBUILD b/device/testing/linux-samsung-n5110/APKBUILD
index df687004cccf5ab2c10859419be7d8b00c326c76..2d863fe323480f0bd80b4d81dcfa3c899a21e875 100644
--- a/device/testing/linux-samsung-n5110/APKBUILD
+++ b/device/testing/linux-samsung-n5110/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-nevisp/APKBUILD b/device/testing/linux-samsung-nevisp/APKBUILD
index c11e9fb29cb378ea264a76dcebc0c2a8bc77982d..69d60b044048280e84e1fe2a3040687129cb2860 100644
--- a/device/testing/linux-samsung-nevisp/APKBUILD
+++ b/device/testing/linux-samsung-nevisp/APKBUILD
@@ -38,7 +38,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-royss/APKBUILD b/device/testing/linux-samsung-royss/APKBUILD
index 678cd968555e70020b59acacd9e78fbbfe248d6f..e58500660b38547163c1ab8c1c4ea7f6decdaaac 100644
--- a/device/testing/linux-samsung-royss/APKBUILD
+++ b/device/testing/linux-samsung-royss/APKBUILD
@@ -30,7 +30,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-s6500d/APKBUILD b/device/testing/linux-samsung-s6500d/APKBUILD
index cac103f2ee1116452ea61649503213b79f9144b6..6ea0b246cc2fede6d53099809d774af77f2a1d8c 100644
--- a/device/testing/linux-samsung-s6500d/APKBUILD
+++ b/device/testing/linux-samsung-s6500d/APKBUILD
@@ -29,7 +29,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-serranodsdd/APKBUILD b/device/testing/linux-samsung-serranodsdd/APKBUILD
index 96d124568b53e8591c0b8878410d30f64f363e82..4356560cc7b645cc4c044f95a33c011613415b6a 100644
--- a/device/testing/linux-samsung-serranodsdd/APKBUILD
+++ b/device/testing/linux-samsung-serranodsdd/APKBUILD
@@ -35,7 +35,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-samsung-zanin/APKBUILD b/device/testing/linux-samsung-zanin/APKBUILD
index a524404477ba1fc914bc46d8bd1fa46862fdcadd..ef642ccc4f04a6dba0cd76566e06843710e62644 100644
--- a/device/testing/linux-samsung-zanin/APKBUILD
+++ b/device/testing/linux-samsung-zanin/APKBUILD
@@ -32,7 +32,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-semc-anzu/APKBUILD b/device/testing/linux-semc-anzu/APKBUILD
index e189993273d8d194bb63ab7829fccb718f145f24..a2077173c4ad4a4afc3e9e6a7d5c82e96d7977f0 100644
--- a/device/testing/linux-semc-anzu/APKBUILD
+++ b/device/testing/linux-semc-anzu/APKBUILD
@@ -42,7 +42,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-semc-smultron/APKBUILD b/device/testing/linux-semc-smultron/APKBUILD
index 830417bce0583bf9494b7dbb8ef21ce7f038b20f..2ccfd13823d8dbc315f84dd5c6de35a6ddddb138 100644
--- a/device/testing/linux-semc-smultron/APKBUILD
+++ b/device/testing/linux-semc-smultron/APKBUILD
@@ -36,7 +36,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-sharp-shl22/APKBUILD b/device/testing/linux-sharp-shl22/APKBUILD
index 6001546f3577d6a31f8635532d44a50d4bc678ed..327237bda562b22f67d00aa07cbaae786c0c29e3 100644
--- a/device/testing/linux-sharp-shl22/APKBUILD
+++ b/device/testing/linux-sharp-shl22/APKBUILD
@@ -34,7 +34,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-sony-amami/APKBUILD b/device/testing/linux-sony-amami/APKBUILD
index cc5b8b6ec65ba9dc6bd486a5c2e66e0aec6e2923..9087a137e3dc227ff19b6fe06de651fa0f223a56 100644
--- a/device/testing/linux-sony-amami/APKBUILD
+++ b/device/testing/linux-sony-amami/APKBUILD
@@ -29,7 +29,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-sony-aries/APKBUILD b/device/testing/linux-sony-aries/APKBUILD
index aa17b8efea5dc9a06b863bb5ed2065f93ec78b78..414f321f123d20f3e7721bd06b7a27eb15141f23 100644
--- a/device/testing/linux-sony-aries/APKBUILD
+++ b/device/testing/linux-sony-aries/APKBUILD
@@ -28,7 +28,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-sony-coconut/APKBUILD b/device/testing/linux-sony-coconut/APKBUILD
index 382ee064b8111370c732805b124abb2100efca72..14f5f74b6cd45d0f6973edb19853b968abfefee5 100644
--- a/device/testing/linux-sony-coconut/APKBUILD
+++ b/device/testing/linux-sony-coconut/APKBUILD
@@ -36,7 +36,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-sony-honami/APKBUILD b/device/testing/linux-sony-honami/APKBUILD
index e93543bdceb9496184566e558de2a9e05bf2f7f2..47762d18a86d89b92f51a00aebeafd7d1cb6f902 100644
--- a/device/testing/linux-sony-honami/APKBUILD
+++ b/device/testing/linux-sony-honami/APKBUILD
@@ -27,7 +27,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-sony-nicki/APKBUILD b/device/testing/linux-sony-nicki/APKBUILD
index 7633a2fe5769ff2ab5b616b01b6859f068e96e8a..06924899bb6c04a11a1516179fc2a9087f3c93f2 100644
--- a/device/testing/linux-sony-nicki/APKBUILD
+++ b/device/testing/linux-sony-nicki/APKBUILD
@@ -35,7 +35,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-sony-scorpion/APKBUILD b/device/testing/linux-sony-scorpion/APKBUILD
index 36b6f955f26286c0b9cc31ded32e0a7c5521472d..695b3338ca289bec47e47d3ff985e57b410f4941 100644
--- a/device/testing/linux-sony-scorpion/APKBUILD
+++ b/device/testing/linux-sony-scorpion/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-sony-seagull/APKBUILD b/device/testing/linux-sony-seagull/APKBUILD
index d2c7459c8957370afa6362b2068da4b78fa86945..1afb44b46f23443271d7736ec65c0de5ac03fc87 100644
--- a/device/testing/linux-sony-seagull/APKBUILD
+++ b/device/testing/linux-sony-seagull/APKBUILD
@@ -42,7 +42,7 @@ builddir="$srcdir/$_repository-$_commit/"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-sony-suzu/APKBUILD b/device/testing/linux-sony-suzu/APKBUILD
index 8bdb1dcb894d3c4a7ccb0c0c0ba4107dff28a9d1..83a7605afc1d561b384291fd9b2d1221477a88a8 100644
--- a/device/testing/linux-sony-suzu/APKBUILD
+++ b/device/testing/linux-sony-suzu/APKBUILD
@@ -32,7 +32,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-sony-taoshan/APKBUILD b/device/testing/linux-sony-taoshan/APKBUILD
index 101d74f7f2b5a673ac5b109ee9fc00a94486558f..a7f1a7a81d968e632d3962e0cd9e771fd6255185 100644
--- a/device/testing/linux-sony-taoshan/APKBUILD
+++ b/device/testing/linux-sony-taoshan/APKBUILD
@@ -29,7 +29,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-sony-tulip/APKBUILD b/device/testing/linux-sony-tulip/APKBUILD
index e5ef6ce6c4da9d6026538c1aa769365e2b98143e..623ec10e58cbe8ab61ffa7e9e94e7ce003528340 100644
--- a/device/testing/linux-sony-tulip/APKBUILD
+++ b/device/testing/linux-sony-tulip/APKBUILD
@@ -33,7 +33,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-sony-yuga/APKBUILD b/device/testing/linux-sony-yuga/APKBUILD
index 00aeb8265b2da6d2ab90591a011b6dfcc680cd39..51153fb5dd74bf1de4318f4e3bb66a83a2046a40 100644
--- a/device/testing/linux-sony-yuga/APKBUILD
+++ b/device/testing/linux-sony-yuga/APKBUILD
@@ -34,7 +34,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-tokio-techbook/APKBUILD b/device/testing/linux-tokio-techbook/APKBUILD
index 069279ed3119ee244988a8a1981aec914f9e4cee..90f6f57ff8bea77a544b39d977a8b0ed576ec0d6 100644
--- a/device/testing/linux-tokio-techbook/APKBUILD
+++ b/device/testing/linux-tokio-techbook/APKBUILD
@@ -30,7 +30,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-wiko-lenny3/APKBUILD b/device/testing/linux-wiko-lenny3/APKBUILD
index c8f184010293a6abbac119c42539277b8ea6cc7c..26b145936bbffdacbe584fdc7680e051a5076d7a 100644
--- a/device/testing/linux-wiko-lenny3/APKBUILD
+++ b/device/testing/linux-wiko-lenny3/APKBUILD
@@ -37,7 +37,7 @@ builddir="$srcdir/LENNY3_OpenSource/kernel-3.18"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-wiko-ufeel/APKBUILD b/device/testing/linux-wiko-ufeel/APKBUILD
index 1b5adda2f5bb37548c42be39619ed54cc7bfdb21..0d34deef5fda1b23e37895d1a090146b878b361f 100644
--- a/device/testing/linux-wiko-ufeel/APKBUILD
+++ b/device/testing/linux-wiko-ufeel/APKBUILD
@@ -36,7 +36,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-wileyfox-crackling/APKBUILD b/device/testing/linux-wileyfox-crackling/APKBUILD
index 1cead03023f3ff38a086c9d34e42a0454541aab5..fed7baa71bcf4bc4b20c04bea077274065812ad3 100644
--- a/device/testing/linux-wileyfox-crackling/APKBUILD
+++ b/device/testing/linux-wileyfox-crackling/APKBUILD
@@ -36,7 +36,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-wingtech-wt88047/APKBUILD b/device/testing/linux-wingtech-wt88047/APKBUILD
index 69a9e62fa726c290614ed3c7e376c73bd444a127..b72da9fb7444646172941aed25e5c8ed7688d32b 100644
--- a/device/testing/linux-wingtech-wt88047/APKBUILD
+++ b/device/testing/linux-wingtech-wt88047/APKBUILD
@@ -34,7 +34,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-aries/APKBUILD b/device/testing/linux-xiaomi-aries/APKBUILD
index 1b0e0b399d4d907f6562c02404519b162b55727a..eaca0f2a5a0106fb1ba4b8dadf17efeb932316fd 100644
--- a/device/testing/linux-xiaomi-aries/APKBUILD
+++ b/device/testing/linux-xiaomi-aries/APKBUILD
@@ -35,7 +35,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-armani/APKBUILD b/device/testing/linux-xiaomi-armani/APKBUILD
index d279368ecd93a4474423c77c3183d2ebdbd8a844..35b0bdf9066c383cf42f4935748483bab259c636 100644
--- a/device/testing/linux-xiaomi-armani/APKBUILD
+++ b/device/testing/linux-xiaomi-armani/APKBUILD
@@ -40,7 +40,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-cancro/APKBUILD b/device/testing/linux-xiaomi-cancro/APKBUILD
index 37fa36bc404517891d50355331cabcee898ce824..c45afa1d30a0c579f05fa29386462902e4b4bb1a 100644
--- a/device/testing/linux-xiaomi-cancro/APKBUILD
+++ b/device/testing/linux-xiaomi-cancro/APKBUILD
@@ -42,7 +42,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-ido/APKBUILD b/device/testing/linux-xiaomi-ido/APKBUILD
index 011426ddc3b438e44fe98a06727647247302e9c2..0420e02f7b0ff249f55511ef5e1da27d95e373d0 100644
--- a/device/testing/linux-xiaomi-ido/APKBUILD
+++ b/device/testing/linux-xiaomi-ido/APKBUILD
@@ -35,7 +35,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-kenzo/APKBUILD b/device/testing/linux-xiaomi-kenzo/APKBUILD
index e22f91a73df695d7b16981718c24fbacbf777f06..86e0c390c00c74e2bea1c249fe85d03b8c76d316 100644
--- a/device/testing/linux-xiaomi-kenzo/APKBUILD
+++ b/device/testing/linux-xiaomi-kenzo/APKBUILD
@@ -34,7 +34,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-mido/APKBUILD b/device/testing/linux-xiaomi-mido/APKBUILD
index ba6188bef1142a1d6e753be9f4d079e6e768db40..70a8a10802a0e635d3ca812b63daeb9acf85c908 100644
--- a/device/testing/linux-xiaomi-mido/APKBUILD
+++ b/device/testing/linux-xiaomi-mido/APKBUILD
@@ -41,7 +41,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-santoni/APKBUILD b/device/testing/linux-xiaomi-santoni/APKBUILD
index 2e6c1509e32a85d4dcf2a067c07d72c16d885765..508b3e0bef41457e73c187a5034d960b080c5ce5 100644
--- a/device/testing/linux-xiaomi-santoni/APKBUILD
+++ b/device/testing/linux-xiaomi-santoni/APKBUILD
@@ -27,7 +27,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-tissot/APKBUILD b/device/testing/linux-xiaomi-tissot/APKBUILD
index 25ca8183c9829c5b921d6768ca413d41fc3249ca..218c6f4e345be6f902c080e47fe3493acdf74354 100644
--- a/device/testing/linux-xiaomi-tissot/APKBUILD
+++ b/device/testing/linux-xiaomi-tissot/APKBUILD
@@ -45,7 +45,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-whyred/APKBUILD b/device/testing/linux-xiaomi-whyred/APKBUILD
index 085a07168472a694381c1874ce963ef93fd3fe56..04cccd4b3bb65a85ec86ebda10f55818961d1520 100644
--- a/device/testing/linux-xiaomi-whyred/APKBUILD
+++ b/device/testing/linux-xiaomi-whyred/APKBUILD
@@ -47,7 +47,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-yu-tomato/APKBUILD b/device/testing/linux-yu-tomato/APKBUILD
index cfa0461fb52b1f2bdd87de7b124e63c315acb837..4905b7f195f1cb30161614642cb365f4de9303c4 100644
--- a/device/testing/linux-yu-tomato/APKBUILD
+++ b/device/testing/linux-yu-tomato/APKBUILD
@@ -39,7 +39,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-zte-kis3/APKBUILD b/device/testing/linux-zte-kis3/APKBUILD
index 38d73833efbfc72399770c323aa75e1e11efa63f..d0562df5902439da574caf5517d750aec9d6cf54 100644
--- a/device/testing/linux-zte-kis3/APKBUILD
+++ b/device/testing/linux-zte-kis3/APKBUILD
@@ -30,7 +30,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-zte-p731a20/APKBUILD b/device/testing/linux-zte-p731a20/APKBUILD
index 19e27bfebae8cfd47c3b3321fe6addc40bf0aae8..59e4c92ad15cbd2667727146100e02f121cd984b 100644
--- a/device/testing/linux-zte-p731a20/APKBUILD
+++ b/device/testing/linux-zte-p731a20/APKBUILD
@@ -31,7 +31,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/device/testing/linux-zuk-z2-row/APKBUILD b/device/testing/linux-zuk-z2-row/APKBUILD
index 82cfbd79d40bc04b387a1fb36dfad70a00e40e4b..20fe9075fbf485fc3c259112128dfdcf6e15c782 100644
--- a/device/testing/linux-zuk-z2-row/APKBUILD
+++ b/device/testing/linux-zuk-z2-row/APKBUILD
@@ -36,7 +36,7 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+	. downstreamkernel_prepare
 }
 
 build() {
diff --git a/main/linux-postmarketos-allwinner/APKBUILD b/main/linux-postmarketos-allwinner/APKBUILD
index 5cb727ff3d525afabc7077eacc685c5037f128c8..a4891631518cdb34f655e1d8d63900ebb60a9c24 100644
--- a/main/linux-postmarketos-allwinner/APKBUILD
+++ b/main/linux-postmarketos-allwinner/APKBUILD
@@ -38,7 +38,7 @@ prepare() {
 	cp -rv "$srcdir"/rtl8723cs-${_commit_rtl8723cs} "$builddir"/drivers/staging/rtl8723cs
 
 	REPLACE_GCCH=0 \
-		downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
+		. downstreamkernel_prepare
 }
 
 build() {
diff --git a/pmaports.cfg b/pmaports.cfg
index d5bc025ca9501d6a17f0d92725b2fe7c3df157b8..04ad0f6dc0e7dc87215b9586eb76db80e08a7bc5 100644
--- a/pmaports.cfg
+++ b/pmaports.cfg
@@ -2,7 +2,7 @@
 # Version numbers (for sanity checks in pmbootstrap)
 # - "version" gets compared with "pmb.config.pmaports_min_version"
 # - "pmbootstrap_min_version" gets compared with "pmb.config.version"
-version=5
+version=6
 pmbootstrap_min_version=1.17.0
 branch_pmos=master
 # Compatible branch from Alpine's aports repository