diff --git a/device/testing/linux-alcatel-pop7lte/APKBUILD b/device/testing/linux-alcatel-pop7lte/APKBUILD
index 2dc0f007f2b0e5434a3bb6b2ade53a2f42d5e59e..d448c7ff1d6270c910c448c5a16480067958122a 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-amazon-tank/APKBUILD b/device/testing/linux-amazon-tank/APKBUILD
index 59024acfef751f698049e6990749e74467b27ece..c3c4353dad9f69ccc6731437c51f1f085ff8f878 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-amazon-thor/APKBUILD b/device/testing/linux-amazon-thor/APKBUILD
index 9e06f495db0a8f456c29e5f9a714d1e9650dd163..818935537d36908f69e72dd774d2d46c767c30b6 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-asus-duma/APKBUILD b/device/testing/linux-asus-duma/APKBUILD
index 259d5fcbf8b737517d5a61506c0cd56e3bc5e65f..92a59810c730447f369604ac18a997112350be8c 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-asus-t00f/APKBUILD b/device/testing/linux-asus-t00f/APKBUILD
index 32f4195993e1eba35e617569844f95915c945a39..d5fdf4dad7d8dccbcd76f52e5724f37569c8ab3f 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-asus-tf101/APKBUILD b/device/testing/linux-asus-tf101/APKBUILD
index 35f58c584784f34bb7aea1c4518c32526fe9b7c6..de2b93f5d17665f23f970a81a85d1734ef049298 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-asus-z00t/APKBUILD b/device/testing/linux-asus-z00t/APKBUILD
index fadd8c5ae63cb8f727ae923fad878f4b1b8f5a4b..17e9872371464505ed5186c35e8eba05b135df5e 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-bq-chaozu/APKBUILD b/device/testing/linux-bq-chaozu/APKBUILD
index d50b82f9c1b234af5c64e9cbce894ce54802662b..a7504ba80a221ca6b9b485426d00ad6e8ee4f797 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-chuwi-hi10plus/APKBUILD b/device/testing/linux-chuwi-hi10plus/APKBUILD
index eb1c2127d380fda76ec2da864f63f14059b0ea5a..ba573194ed0374a663c5b22d26a05691cc86a548 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-fairphone-fp1/APKBUILD b/device/testing/linux-fairphone-fp1/APKBUILD
index 0558d7c515d8c01b98d37883dbc11ccf4be3d2d0..af4e3a17b818c9527732e00454ffd21b597c4d4b 100644
--- a/device/testing/linux-fairphone-fp1/APKBUILD
+++ b/device/testing/linux-fairphone-fp1/APKBUILD
@@ -32,7 +32,8 @@ builddir="$srcdir/$_repository-$_commit"
 
 prepare() {
 	default_prepare
-	downstreamkernel_prepare "$srcdir" "$builddir"/kernel "$_config" "$_carch" "$HOSTCC"
+	builddir="$builddir"/kernel \
+		. downstreamkernel_prepare "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-fairphone-fp2/APKBUILD b/device/testing/linux-fairphone-fp2/APKBUILD
index ce40aa257f146b30d77c6cbd93810ff188b5b48e..b635f2525937af08d6f2304cc779e48b1fa569ed 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-finepower-f1/APKBUILD b/device/testing/linux-finepower-f1/APKBUILD
index 6ddff665aa39f86efeec90e8efa8398dadaee12c..ed24fab32fa9dd5227ac78840c8b4652c794c6f6 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-fujitsu-m532/APKBUILD b/device/testing/linux-fujitsu-m532/APKBUILD
index 550fabd30fbda63839aa0beabdf6fed3d0333c64..fde7ae399d03b55711cc1ec1e18f5e5e61a0e668 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-google-crosshatch/APKBUILD b/device/testing/linux-google-crosshatch/APKBUILD
index 3c23280efd20795d80b8750f009e33383d702d1d..1effbe0e1e43034a464ddcc50fbbe6f3edfa4ce6 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-google-glass/APKBUILD b/device/testing/linux-google-glass/APKBUILD
index 62d9b933f5ab4c4451bebb149fa7f5e8b72ad235..d5b32a6be008f9d9e013ebe51a101cd5fbfef9c4 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-gp-peak/APKBUILD b/device/testing/linux-gp-peak/APKBUILD
index 9cc145c2224641f71c5a2fef67142a060c8cef3e..4ef8370cd9106d5cd7752590000e7f4d5b125850 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-hisense-m470bsa/APKBUILD b/device/testing/linux-hisense-m470bsa/APKBUILD
index 159b16f4870ee4ebc77cfa86ae861e2bb10e9ac6..82b30710ba301db7c55e42c3d10f93b16bc58f40 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-htc-a5ul/APKBUILD b/device/testing/linux-htc-a5ul/APKBUILD
index cb5e1df71b1d6b311a13a016621fb4c8dbdbeff8..24c9ba3bcf9cef67b34bcdd087f2d9dcfa4df87f 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-htc-bravo/APKBUILD b/device/testing/linux-htc-bravo/APKBUILD
index c2801c9a05b339fcf5888ab3133941019b9a3d02..842124ecfce04feb4590a3af64e37477b40f9b26 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-htc-evita/APKBUILD b/device/testing/linux-htc-evita/APKBUILD
index dd1431bc6c0fe6e051a17120451105bf6ad550c5..bbea5a1e85a304e7e87f210d49842f9d953bbd2d 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-htc-flounder/APKBUILD b/device/testing/linux-htc-flounder/APKBUILD
index 74651a59a5f7fb54773adbb0becbdaf98146132f..7a325315c967d22004f2160686d7c50991752bb1 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-htc-k2ul/APKBUILD b/device/testing/linux-htc-k2ul/APKBUILD
index 72675a49f7761dcb01e7cc266ff17fb465d868bb..06bf1511b6a3a209f685fb202f3ea0c214f3ca1b 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-htc-m7/APKBUILD b/device/testing/linux-htc-m7/APKBUILD
index 3359f183e62f118adb4889bd11125555b4a231df..ae9a17c6eb37cc96a0cd7a93f045e742c9d912de 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-htc-m8/APKBUILD b/device/testing/linux-htc-m8/APKBUILD
index 4e1f25834054ffb57b3291415909b96f7aa2a21b..323219de7827be2219cc0136799d288f26c91bdf 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-htc-memul/APKBUILD b/device/testing/linux-htc-memul/APKBUILD
index c0f275fcaf9b74d5673be4484ea45526af9d9427..1378dbbedcb24425dd4c4fa869cda7724614a9e6 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-htc-primou/APKBUILD b/device/testing/linux-htc-primou/APKBUILD
index 79260f693b72b9cdb424d522d4b417254ef29615..fc995527611fa773383ef9b24e682b591d047844 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-htc-protou/APKBUILD b/device/testing/linux-htc-protou/APKBUILD
index 4f97685ac3ec638b4749766a0981efcc3ec0acbb..8b786b45fe34235bcff0fe7f2904e1d36c9382ef 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-htc-ville/APKBUILD b/device/testing/linux-htc-ville/APKBUILD
index b75031f25b436f1b385663f2fddbc3c923120215..58ad7b9ba3138aa669b878c108e7a7cc7a8cdeaf 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-htc-vision/APKBUILD b/device/testing/linux-htc-vision/APKBUILD
index 3012fcc2e92a463b60e02c87a170d694d288787f..95ed5b132e24f2d20776fa3fcab27c1e4240e64a 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-htc-vivo/APKBUILD b/device/testing/linux-htc-vivo/APKBUILD
index 512e9810660ef15b3ddd2cefd95015e9a9a8c4bf..40995bf63ef80261e1eaa5a2b1c8a4644db9925c 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-huawei-cameron/APKBUILD b/device/testing/linux-huawei-cameron/APKBUILD
index e31e3573bb7f160d472f1ec76429e04dd6f20ab7..d8e2cd77db315c7f2e5564cfbf2f9ebef1315d96 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-huawei-lua-u22/APKBUILD b/device/testing/linux-huawei-lua-u22/APKBUILD
index 3a2da623f11eb496ac7390037e51d288f877ac33..e29ec37afbeffef4416c6dcdaa3c813e18f45af2 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-huawei-y530/APKBUILD b/device/testing/linux-huawei-y530/APKBUILD
index b79beb3ad60e84209f45ea738f01ce5ef5663433..c342aa3ba11136fd93f863a7fab68e020639e38f 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-infocus-flatfish/APKBUILD b/device/testing/linux-infocus-flatfish/APKBUILD
index aaafa66b87d937bfb8cfb2cb4ac08402b833f662..7c063c0a994f45ec74ef2f81038ff0e520dad69e 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-jolla-sbj/APKBUILD b/device/testing/linux-jolla-sbj/APKBUILD
index d4a5e57a1b40d293d15cb7c628340794e72b3f4b..f893a219ff76aed10c19ef80ab43a695643c0ff6 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-leeco-s2/APKBUILD b/device/testing/linux-leeco-s2/APKBUILD
index d945263b579b892713ff159e0d2809d0a21a0531..e6010870a4a35ab3be4b002d28f93ce2da3775d6 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-lenovo-karate/APKBUILD b/device/testing/linux-lenovo-karate/APKBUILD
index 88d52e790d7201fc9e601abd87bc68eca0bd15ca..7ae8f5b68cf83514ff02a7080f886d515b3b63c3 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-lg-bullhead/APKBUILD b/device/testing/linux-lg-bullhead/APKBUILD
index 92ceb38390b7278f96f0fff9d3e72b18de575add..6abe3624a28e6948f0da618da30cf89e0b115e6f 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-lg-d722/APKBUILD b/device/testing/linux-lg-d722/APKBUILD
index f1b50c8cd6c256b963296ce632fc7b4f89d8030d..9affe951a8df4500e596fe3604f07c1221f64256 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-lg-dory/APKBUILD b/device/testing/linux-lg-dory/APKBUILD
index e5f91af3423a8f296116dd34773a5a35c766654f..ad0c76ed6b4a7ac1dda522ca9f3f248c12339364 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-lg-e610/APKBUILD b/device/testing/linux-lg-e610/APKBUILD
index 183f9f2e42713fc1378af536c940b08b05447e68..d4d6bb6f1a21c24b51269a0dbdc2705fb6f57060 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-lg-h815/APKBUILD b/device/testing/linux-lg-h815/APKBUILD
index 9c93ad6f916eefda201ea5f63f39dbca3ff4fcba..450f94c72c6c31c15a58e2693baae214f255b06e 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-lg-mako/APKBUILD b/device/testing/linux-lg-mako/APKBUILD
index 82170fe721c3d38e74a05d6f37e2022d77e0d01b..c89bc65b8977a3c3dd5fc23c5808f1b98905f457 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-lg-p700/APKBUILD b/device/testing/linux-lg-p700/APKBUILD
index 459c134a951668d7cbbbb209e4fa2b0500e01f57..5b9678c1dae5861de62c17dfbdaf8c92f2a4890e 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-lg-vee7e/APKBUILD b/device/testing/linux-lg-vee7e/APKBUILD
index b4cb747ae6fe96d3dac26aa224b9466130c24fee..aca27ca2fecc763710e444d84708a5ed7fb1d339 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-lg-w5/APKBUILD b/device/testing/linux-lg-w5/APKBUILD
index fe1874b2a571624697be977c30a88d6ff8a95d22..48280e66197539a73112c3d04fbced33233c41b8 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-medion-kai/APKBUILD b/device/testing/linux-medion-kai/APKBUILD
index 35db059478f7bdcd78292ff9bfa2364f4e0fa00a..a2e9aa3ec11aa64a322a54c93ceadf595505f64b 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-meizu-turbo/APKBUILD b/device/testing/linux-meizu-turbo/APKBUILD
index 6445c03ecb05e7213707772371a6431a054e85f7..40df8bd1fb5508e05b8ea176fd9b6180e17927be 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-motorola-athene/APKBUILD b/device/testing/linux-motorola-athene/APKBUILD
index 26e43c4a6ee1f306d26c86712fb249f74d44edcf..7470d1ef162cb750fffd547499c3aeb8e7cc168d 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-motorola-cedric/APKBUILD b/device/testing/linux-motorola-cedric/APKBUILD
index 6f89472569a62f1ed8540b8908c880673e58ec4c..b84ecf843f5a3c844f0011b018def2650ef3f09e 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-motorola-def/APKBUILD b/device/testing/linux-motorola-def/APKBUILD
index fbcd51fd6935cc1502e77e4b353d26ca9898735e..2acd974b3d459cc6c664905b19be016f1765c71c 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-motorola-falcon/APKBUILD b/device/testing/linux-motorola-falcon/APKBUILD
index 5a3a2b01a9e8599f157a342cd583f75350d52fd5..cdae832cfba9338c04fe4b81742604b79328f5a7 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-motorola-ghost/APKBUILD b/device/testing/linux-motorola-ghost/APKBUILD
index dc34dc317e868777e805ad8f6c20542c9b2f0475..4a2398e5f65d2316a9dde84766ce39a9ca093ac6 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-motorola-lux/APKBUILD b/device/testing/linux-motorola-lux/APKBUILD
index 0d84d19bec3bc281f6b646cef59e0c491ee72aa7..266e14532f4bc66fbfc10748c21ffbea99d297d8 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-motorola-maserati/APKBUILD b/device/testing/linux-motorola-maserati/APKBUILD
index 70eb7f9084c7b78d8855db35df8355b16254b025..5bd88ad553e204c64524385c988b71f7f86c2965 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 "$HOSTCC"
 
 	# 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..0f5b2d0d5d0756ea81d0f3c9737e109b5a46a9c1 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-motorola-peregrine/APKBUILD b/device/testing/linux-motorola-peregrine/APKBUILD
index cb39edac09e0c3e1d00ae3f105722b5e5803c7e3..48a96c2226fc5420ec3000eec0b7263d277f58c2 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-motorola-potter/APKBUILD b/device/testing/linux-motorola-potter/APKBUILD
index 2ede39732f97f204a274f4681885b2c08b83dd29..444a10be6bf8157715759705f4231d40e0c9d94d 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-motorola-shamu/APKBUILD b/device/testing/linux-motorola-shamu/APKBUILD
index e9a819a168f9cb8dbb1e547e24f78a0e7ae96d37..d8798fd33107330e5ea509521300560351f3942f 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-motorola-surnia/APKBUILD b/device/testing/linux-motorola-surnia/APKBUILD
index 0546132bbeae1032bf3e394113d8a856ce449c59..9b27434b2087e55b65cc7fac2265597c297bdd49 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-nextbit-robin/APKBUILD b/device/testing/linux-nextbit-robin/APKBUILD
index 58c4be1767667ff35ac7a8abf53ff0635604a785..47e82cb0df09e094840d422e39bab6c15b1987ec 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-nobby-230/APKBUILD b/device/testing/linux-nobby-230/APKBUILD
index 6cd6bf67404aadaa0be62bba0b43cab0edac9b9c..66c9c8d55c15cc9ed25566bbed448e7488b536bf 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-nokia-beatles/APKBUILD b/device/testing/linux-nokia-beatles/APKBUILD
index af9225c737ed72a57eb13b2dcd045669910c38ca..32547790688288fcceba432bea6d45c1796d6e9d 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-nokia-frt/APKBUILD b/device/testing/linux-nokia-frt/APKBUILD
index 8733336dc2585eb6877947a7efc9d0c16aeea3e7..1bc427e6654c688accd751b25684d26787c6c2fb 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-nokia-rm846/APKBUILD b/device/testing/linux-nokia-rm846/APKBUILD
index 54b8f60cb8e8ca87b6c2a90dc872f8304bcb0e8c..96df5a10e023a8d380a0297d2808c29c2c85f41d 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-nokia-rm885/APKBUILD b/device/testing/linux-nokia-rm885/APKBUILD
index 3ed07a8432e275c362a9ab161580984757ef3b65..c6478c48cbf915c0e00ef78c6873757a79a0d600 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-oneplus-msm8998/APKBUILD b/device/testing/linux-oneplus-msm8998/APKBUILD
index d694081b797c86cba59f25d200b3f1f91b5d8e7f..f5bcb96580a41962c1429089fbd97fa302461c4f 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-oneplus-oneplus2/APKBUILD b/device/testing/linux-oneplus-oneplus2/APKBUILD
index 22450ab3f06f7d1e46e5786f4bd7b506686835fa..f1c5dff1e92551caf5e26214af68c5e7b9609116 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-oppo-find-7a/APKBUILD b/device/testing/linux-oppo-find-7a/APKBUILD
index 76c13064d5d91b229b1405527f4570ded35c5603..6eefd1cb44a9071efb30fefac9e6616eba89c735 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-ouya-ouya/APKBUILD b/device/testing/linux-ouya-ouya/APKBUILD
index 6ca7148ba6489a1039ee60ace5f38b6260aa87ea..38f4a316a53914a27ce8e421ab6891dbfe97fe3d 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-purism-librem5/APKBUILD b/device/testing/linux-purism-librem5/APKBUILD
index 550887c448ea76764c4fe85a7d3f2e7d9b819425..80461aa7ef8832d1f4d61d3d319446cbdbeae275 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-a5y17lte/APKBUILD b/device/testing/linux-samsung-a5y17lte/APKBUILD
index 0d331b39ba94097585e258db313ebf00837def80..6f792234f60ee59c728095b002cf096992e39b86 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 "$HOSTCC"
 	prepare_modules
 }
 
diff --git a/device/testing/linux-samsung-apexq/APKBUILD b/device/testing/linux-samsung-apexq/APKBUILD
index 961de3ce69a0ccffe92967e4ca57ebc8a1af54e8..103201eed24c16adb0cc208613fd9d423c14d0bb 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-ariesve/APKBUILD b/device/testing/linux-samsung-ariesve/APKBUILD
index 4d8c8e3c3514b73cf1c65c08410455681610b2aa..fbda1c482840a07745925f293dcbdcb6a330ef08 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 "$HOSTCC"
 }
 
 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..4780aa2703c8d203c136a66f8d062fe84bfa78ff 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-expressatt/APKBUILD b/device/testing/linux-samsung-expressatt/APKBUILD
index 970352c90be33dbabe1a0aca97b695b9513700a3..50dd0a71482ee3d61debe0e7bcf35606551f9055 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-golden/APKBUILD b/device/testing/linux-samsung-golden/APKBUILD
index 94a6af64812dccd404263f4fa73fd7f6e538828e..52c3ecb277224697462e34808a95f2ec63c84d0b 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-gts210velte/APKBUILD b/device/testing/linux-samsung-gts210velte/APKBUILD
index 23dae7f03f793891a9d48228084ceea53998f7dc..a4b3e424333dce6e32b4b97fc4e199a97616424b 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-gts210vewifi/APKBUILD b/device/testing/linux-samsung-gts210vewifi/APKBUILD
index f213d5083f7c7c5c2855348041f59bf7dbf2dbcd..e78f01d640acdfd13b068d3985f69da3e25fd07b 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-hero2lte/APKBUILD b/device/testing/linux-samsung-hero2lte/APKBUILD
index e0d98bacd85bf77bf7f9ab7aec5a3d0950a9047e..5046e03a80bdb039febf4a91b8f672075613fdfd 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-herolte/APKBUILD b/device/testing/linux-samsung-herolte/APKBUILD
index 1162aaa9bf3112c788b0550f56a52d41be1f0869..0ec99dbf8a6c29911011f77373df3479b9ac23ef 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-i747m/APKBUILD b/device/testing/linux-samsung-i747m/APKBUILD
index 5b5067e92b13d904140043a39392e5056ede8e1a..6432a4d9d2b4c63edd98560f9b5ee74354af2d9f 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-i8200/APKBUILD b/device/testing/linux-samsung-i8200/APKBUILD
index ba4f098de107b21ec2e9396dea4f3addf2e95438..bb4b927176157289adb762d3767d00c6240b2257 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-i9003/APKBUILD b/device/testing/linux-samsung-i9003/APKBUILD
index 2d69a35267b8907911667d55c8b283b9a9308a02..5816ed935e5e33f50f0673cd9d76b0cb7b8bb94b 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-i9070/APKBUILD b/device/testing/linux-samsung-i9070/APKBUILD
index aaae53fe12bd830054f33b04e40553b4a0083c34..8d86311d5907afc03d4b46abf4b3c16ba5e4e18f 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 "$HOSTCC"
 
 	# 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..e630b81b938206a33e50ca951798cce14c02e977 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-i9195/APKBUILD b/device/testing/linux-samsung-i9195/APKBUILD
index e27885d69dcecf6eb950beda7c7793fdb5b83b8c..083a366873cbf4c9b4859a14ebe1e69b6d0503d9 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-j1mini3g/APKBUILD b/device/testing/linux-samsung-j1mini3g/APKBUILD
index d71ba52bd47e861698fa54114e76f8b7975bf175..49b508fb3781960ffe64f162ce15140ca4ce08a4 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-j3nxlte/APKBUILD b/device/testing/linux-samsung-j3nxlte/APKBUILD
index 65e62a3968b67de69dee8cfd599897f90179cd3f..d262151fce3447746561c9aee836bf5eda04b40e 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-jflte/APKBUILD b/device/testing/linux-samsung-jflte/APKBUILD
index 2dea667dd1638b73ca0a8a020d5f9bef8c75ac3a..b8bc3c696e9dd900474639a45e0894277499547a 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-klte/APKBUILD b/device/testing/linux-samsung-klte/APKBUILD
index b3ef3384c0c95b5e305be960205b870ccc82736f..8f2a50b626cba2339cf0a6b63af775ca7194f4e2 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-kminilte/APKBUILD b/device/testing/linux-samsung-kminilte/APKBUILD
index d7ad295e93222ec704b0d5858e7024d674dfa1be..0577f43236853eb857ce93fed7f1c0060a56ddd6 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-kylepro/APKBUILD b/device/testing/linux-samsung-kylepro/APKBUILD
index 83da0f017f7332929e8a758c74f6403fbef91e65..5dd0ea16784ee0d277be1977be9c97f43fa463cf 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-kylessopen/APKBUILD b/device/testing/linux-samsung-kylessopen/APKBUILD
index 027684257f2d81c0bf0a62a124167df5e4f61b71..624efd3f6b97ce7e6c4e92d8a66dc8ed50a779c6 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-kylevess/APKBUILD b/device/testing/linux-samsung-kylevess/APKBUILD
index 6a74e67ad3f2b12ea6d2361fd6c683dc10be8219..624932d6fe0d98aa7d90cafca38ee027b9f5bf80 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-lt01wifi/APKBUILD b/device/testing/linux-samsung-lt01wifi/APKBUILD
index 072102659a4379ed3484f3afe653fff53eff9482..6d81f2210a8ecb442e80d69fd9a8882d0b1d6a7c 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-lt023g/APKBUILD b/device/testing/linux-samsung-lt023g/APKBUILD
index 9b5e79c2c32b75ba6bdc737f5bcffac0bba7ea35..2849d61eb43588cee8ee54c3b1d81d1fc7925788 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-maguro/APKBUILD b/device/testing/linux-samsung-maguro/APKBUILD
index ac1f3b6fd977fd9ce315851efc398a908b3af9a3..d9af159db65d186da93d8b70dfa6faa0232917b9 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-manta/APKBUILD b/device/testing/linux-samsung-manta/APKBUILD
index 009639c1a427d16395fc42c802f58245fa2cba24..0bdac4681dcb080b35c2fc7b0b8f3ab9f357b6df 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-matissewifi/APKBUILD b/device/testing/linux-samsung-matissewifi/APKBUILD
index 746ba2497a7f9ca825b0212e5c6bc2c4e6fa3841..398d8edd3c7dc4e1c56a9d1ac50cc58dd6e6f5a0 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-n5110/APKBUILD b/device/testing/linux-samsung-n5110/APKBUILD
index df687004cccf5ab2c10859419be7d8b00c326c76..1c4b67c5666d319f7759bd6b8421962acc862ef7 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-nevisp/APKBUILD b/device/testing/linux-samsung-nevisp/APKBUILD
index c11e9fb29cb378ea264a76dcebc0c2a8bc77982d..326768da84b4897d5cd13d6876ea7ef3eb368850 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-royss/APKBUILD b/device/testing/linux-samsung-royss/APKBUILD
index 678cd968555e70020b59acacd9e78fbbfe248d6f..953a8e87521f2b3d54f1510365ccb734c1e53355 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-s6500d/APKBUILD b/device/testing/linux-samsung-s6500d/APKBUILD
index cac103f2ee1116452ea61649503213b79f9144b6..0003a5610ad08561954a977cc0b60e286cc2dc78 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-serranodsdd/APKBUILD b/device/testing/linux-samsung-serranodsdd/APKBUILD
index 96d124568b53e8591c0b8878410d30f64f363e82..9327ad284b660e98017f6b66fb94c3a5fdee0506 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-samsung-zanin/APKBUILD b/device/testing/linux-samsung-zanin/APKBUILD
index a524404477ba1fc914bc46d8bd1fa46862fdcadd..7f60fda9af9f447b99aea5971e74aeb2e9def643 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-semc-anzu/APKBUILD b/device/testing/linux-semc-anzu/APKBUILD
index e189993273d8d194bb63ab7829fccb718f145f24..8a2484a78e3e0d8e9fa427cdf19f0d36b8794077 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-semc-smultron/APKBUILD b/device/testing/linux-semc-smultron/APKBUILD
index 830417bce0583bf9494b7dbb8ef21ce7f038b20f..dba6401a21e64e6ddee2f52b06b4a5c055dd2b17 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 "$HOSTCC"
 }
 
 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..57ffe7eed248146758dcd847c36938cd4203d39d 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-sony-aries/APKBUILD b/device/testing/linux-sony-aries/APKBUILD
index aa17b8efea5dc9a06b863bb5ed2065f93ec78b78..829adb80f0502940054577406eaccfe2f6606de5 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-sony-coconut/APKBUILD b/device/testing/linux-sony-coconut/APKBUILD
index 382ee064b8111370c732805b124abb2100efca72..e42b3d700de89ba0ba798963d598ac4256d03f21 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-sony-honami/APKBUILD b/device/testing/linux-sony-honami/APKBUILD
index e93543bdceb9496184566e558de2a9e05bf2f7f2..5bd998391f2259ba520fb55cf680f4b10932974b 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-sony-nicki/APKBUILD b/device/testing/linux-sony-nicki/APKBUILD
index 7633a2fe5769ff2ab5b616b01b6859f068e96e8a..ef95fd3ee09804326ca382e76659dbb3f809bbd9 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-sony-scorpion/APKBUILD b/device/testing/linux-sony-scorpion/APKBUILD
index 36b6f955f26286c0b9cc31ded32e0a7c5521472d..578d2c1ca061a1c3de1c728dbecf150178d6db96 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-sony-seagull/APKBUILD b/device/testing/linux-sony-seagull/APKBUILD
index d2c7459c8957370afa6362b2068da4b78fa86945..22447e98a560a67d1f3acaf032fd5c8be6968bc5 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-sony-suzu/APKBUILD b/device/testing/linux-sony-suzu/APKBUILD
index 8bdb1dcb894d3c4a7ccb0c0c0ba4107dff28a9d1..4315035e166445d45307f2204fec347f27074817 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-sony-taoshan/APKBUILD b/device/testing/linux-sony-taoshan/APKBUILD
index 101d74f7f2b5a673ac5b109ee9fc00a94486558f..f6bc0b66a001df8863e261c31177df88308bd0d4 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-sony-tulip/APKBUILD b/device/testing/linux-sony-tulip/APKBUILD
index e5ef6ce6c4da9d6026538c1aa769365e2b98143e..d788496938dabc2b2f20abd01dc41b24c9a36e1f 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-sony-yuga/APKBUILD b/device/testing/linux-sony-yuga/APKBUILD
index 00aeb8265b2da6d2ab90591a011b6dfcc680cd39..8e7139a02a1bfb10a36a76eafeddf596312bd140 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 "$HOSTCC"
 }
 
 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..020f0ef296ca0ab250a83a800324f49016b995c8 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-wiko-ufeel/APKBUILD b/device/testing/linux-wiko-ufeel/APKBUILD
index 1b5adda2f5bb37548c42be39619ed54cc7bfdb21..f53108dd7652efd585e37a1b38e17dfbbd27a331 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-wileyfox-crackling/APKBUILD b/device/testing/linux-wileyfox-crackling/APKBUILD
index 1cead03023f3ff38a086c9d34e42a0454541aab5..305bbd635699376325f1ff17270f9f14869d6f3d 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-wingtech-wt88047/APKBUILD b/device/testing/linux-wingtech-wt88047/APKBUILD
index 69a9e62fa726c290614ed3c7e376c73bd444a127..e5374db4f986ba003f7df4422036ef64d47db47c 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-aries/APKBUILD b/device/testing/linux-xiaomi-aries/APKBUILD
index 1b0e0b399d4d907f6562c02404519b162b55727a..05a625c8b0ecc882ea2cadbbd7f7cc5fd1409208 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-armani/APKBUILD b/device/testing/linux-xiaomi-armani/APKBUILD
index d279368ecd93a4474423c77c3183d2ebdbd8a844..656357d202547946e0ad192fd87787e42a1794d7 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-cancro/APKBUILD b/device/testing/linux-xiaomi-cancro/APKBUILD
index 37fa36bc404517891d50355331cabcee898ce824..abb8f0c73ea9aa9c722804b51716a2e1dbc7cf6f 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-ido/APKBUILD b/device/testing/linux-xiaomi-ido/APKBUILD
index 011426ddc3b438e44fe98a06727647247302e9c2..c8664871c4027ba2283baa170ad734873529249b 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-kenzo/APKBUILD b/device/testing/linux-xiaomi-kenzo/APKBUILD
index e22f91a73df695d7b16981718c24fbacbf777f06..50886d918e2fc87789493180e2ba2810fb0d5e5b 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-mido/APKBUILD b/device/testing/linux-xiaomi-mido/APKBUILD
index ba6188bef1142a1d6e753be9f4d079e6e768db40..556a2d39a9e0c651de39f7152bb66df185d82acc 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-santoni/APKBUILD b/device/testing/linux-xiaomi-santoni/APKBUILD
index 2e6c1509e32a85d4dcf2a067c07d72c16d885765..cdc74de6956af47291812d3eb5dfba9e4cbe6e7e 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-tissot/APKBUILD b/device/testing/linux-xiaomi-tissot/APKBUILD
index 25ca8183c9829c5b921d6768ca413d41fc3249ca..d2752256833bcf6299791010438f06463deed2ef 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-xiaomi-whyred/APKBUILD b/device/testing/linux-xiaomi-whyred/APKBUILD
index 085a07168472a694381c1874ce963ef93fd3fe56..bbf2a45f2204b76725716e7a15e584ac708f949c 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-yu-tomato/APKBUILD b/device/testing/linux-yu-tomato/APKBUILD
index cfa0461fb52b1f2bdd87de7b124e63c315acb837..cbdfa6e5e3f31ee288b5d5a83cbbf4a3046c7926 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-zte-kis3/APKBUILD b/device/testing/linux-zte-kis3/APKBUILD
index 38d73833efbfc72399770c323aa75e1e11efa63f..e28467026bff8694736a26c29d336fde71c08f5e 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-zte-p731a20/APKBUILD b/device/testing/linux-zte-p731a20/APKBUILD
index 19e27bfebae8cfd47c3b3321fe6addc40bf0aae8..e688fc68b4626060e094a2e0c817bef30a22b41e 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 "$HOSTCC"
 }
 
 build() {
diff --git a/device/testing/linux-zuk-z2-row/APKBUILD b/device/testing/linux-zuk-z2-row/APKBUILD
index 82cfbd79d40bc04b387a1fb36dfad70a00e40e4b..19b666ef4ce4fa0dbd20f411fcc3c8e8266d6534 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 "$HOSTCC"
 }
 
 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() {