Florian Berndl
Florian Berndl

Reputation: 1474

How to override DISTRO_VERSION?

I'm populating an sdk using the command bitbake <image> -c populate_sdk and the resulting *.sh installer file has an version number which is the same as the DISTRO_VERSION. (yocto poky)

I tried to override the DISTRO_VERSION in build/conf/local.conf, but it does not override the existing DISTRO_VERSION, I do not understand why

Upvotes: 2

Views: 2346

Answers (2)

Lincoln Uehara
Lincoln Uehara

Reputation: 1

A little late, but how about creating a variable on local.conf:

MY_INSTALLER_VER = "XX.XX.XX"

And attribute it at your_customized_distro.conf:

DISTRO_VERSION = "${MY_INSTALLER_VER}"

I've tried on warrior release and it worked.

Upvotes: 0

Nayfe
Nayfe

Reputation: 2300

To change SDK version, you need to use SDK_VERSION variable defined in poky as:

SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${DATE}','snapshot')}"

Upvotes: 1

Related Questions