Skip to content

Resolving fatal error when building using newer poky versions#240

Open
MUytd wants to merge 1 commit intokraj:masterfrom
nedap:mika/remove_not_needed_autorev
Open

Resolving fatal error when building using newer poky versions#240
MUytd wants to merge 1 commit intokraj:masterfrom
nedap:mika/remove_not_needed_autorev

Conversation

@MUytd
Copy link
Copy Markdown

@MUytd MUytd commented Jun 7, 2023

Problem:
With newer versions of Poky when building the kernel it results in the error
ERROR:/meta-altera/recipes-kernel/linux/linux-altera-lts_5.10.bb: AUTOREV/SRCPV set too late for the fetcher to work properly, please set the variables earlier in parsing. Erroring instead of later obtuse build failures.
This error is introduced in this commit.

Solution
This PR removes the usage of the autorev, as in all cases the srcrev is set before sourcing the linux-altera.inc file. This allows the kernel to be build again without any errors from bitbake.

LINUX_VERSION ?= "4.0"

SRCREV ?= "${AUTOREV}"
SRCREV_machine ?= "${AUTOREV}"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

it needs to be set to something concrete, removing is not the solution.

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