Skip to content

install_workflow: Exit when trying to flash v1.1.1 on 13th gen and above #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PLangowski
Copy link
Contributor

No description provided.

…n and above

This copies the changes from Dasharo/meta-dts#108 to the
install workflow

Signed-off-by: Pawel Langowski <[email protected]>
@PLangowski PLangowski marked this pull request as draft March 6, 2025 11:06
Comment on lines +924 to +927
( "$BOARD_MODEL" == "PRO Z690-A WIFI DDR4(MS-7D25)" || \
"$BOARD_MODEL" == "PRO Z690-A DDR4(MS-7D25)" || \
"$BOARD_MODEL" == "PRO Z690-A (MS-7D25)" || \
"$BOARD_MODEL" == "PRO Z690-A WIFI (MS-7D25)" ) ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe replace with "$SYSTEM_MODEL" = "MS-7D25"?

Comment on lines +921 to +922
# TODO: It is not a good practice to do some target specific work in the code
# of a scallable product, this should be handled in a more scallable way:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe

do_nothing() {
    :
}

min_intel_cpu_gen() {
    local min_gen=$1
    local workflow=$2
    if [ "$(get_intel_gen)" -lt "$min_gen" ]; then
        return 1;
    else
        return 0;
    fi
}

# use: '$PRE_DEPLOY_CHECK <deploy_workflow>'
PRE_DEPLOY_CHECK=do_nothing
(...)
case "$SYSTEM_MODEL" in
        "MS-7D25")
            PRE_DEPLOY_CHECK="min_intel_cpu_gen 11"
            (...)

(...)
install() {
    $PRE_DEPLOY_CHECK install
}

That way we could create different checks for different platforms if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants