Skip to content
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

Resolving fatal error when building using newer poky versions #240

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MUytd
Copy link

@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.

@@ -12,8 +12,6 @@ LINUX_VERSION_PREFIX ?= "socfpga-"
LINUX_VERSION_SUFFIX ?= ""
LINUX_VERSION ?= "4.0"

SRCREV ?= "${AUTOREV}"
SRCREV_machine ?= "${AUTOREV}"
Copy link
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