Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit ef7fcff4 authored by Michael Bestas's avatar Michael Bestas
Browse files

envsetup: Allow skipping OOT kernel build

Useful for development purposes while rebuilding the same device
over and over or switching between different devices.

Change-Id: I7367fe66652c8c542dac1ca3a1d3786453703550
parent 88ff4982
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -931,6 +931,10 @@ function fixup_common_out_dir() {
}

function build_kernel() {
    if [[ "${SKIP_KERNEL_BUILD}" == "true" || "${SKIP_KERNEL_BUILD}" == "1" ]]; then
        echo "Skipping kernel build"
        return
    fi
    local lineage_version="lineage-$(_get_build_var_cached PRODUCT_VERSION_MAJOR).$(_get_build_var_cached PRODUCT_VERSION_MINOR)"

    local target_kernel_device="$(_get_build_var_cached TARGET_KERNEL_DEVICE)"