From fef10fd5ed45f695b05a799f8a14877fd999f16a Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Sun, 26 May 2019 15:12:37 +0200 Subject: [PATCH] menuconfig: support mtk kernel directory style (!1790) (Some?) Mediatek kernels don't have the kernel in the top-level directory but in a subdirectory called 'kernel' next to a folder 'mediatek' containing most device-specific code. Adjust the menuconfig code to be able to work with that. --- pmb/build/menuconfig.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pmb/build/menuconfig.py b/pmb/build/menuconfig.py index 976a7dfb..547236b5 100644 --- a/pmb/build/menuconfig.py +++ b/pmb/build/menuconfig.py @@ -81,6 +81,9 @@ def get_outputdir(args, pkgname): output_return=True).rstrip() if os.path.exists(chroot + ret + "/.config"): return ret + # Some Mediatek kernels use a 'kernel' subdirectory + if os.path.exists(chroot + ret + "/kernel/.config"): + return os.path.join(ret, "kernel") # Not found raise RuntimeError("Could not find the kernel config. Consider making a"