diff options
author | Willy Tu <wltu@google.com> | 2021-02-10 03:29:27 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2021-06-23 22:20:25 +0300 |
commit | 439c59b425cf403355571875b3fa714782dcf15b (patch) | |
tree | 172f346d59f60306491752ed6a42c0a08ba286ec /meta-phosphor/conf/distro | |
parent | 4ad716c1407b626754888cee8a1c63a67edd6526 (diff) | |
download | openbmc-439c59b425cf403355571875b3fa714782dcf15b.tar.xz |
meta-phosphor: os-release: Set weak default to DISTRO_VERSION
Improved practice to use DISTRO_VERSION instead of the undocumented
VERSION_ID.
DISTRO_VERSION is documented in yocto
https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html
and specified in this section about creating your own distribution.
https://docs.yoctoproject.org/dev-manual/common-tasks.html#creating-your-own-distribution
VERSION_ID is undocumented and will more likely be changed compared
to the documented DISTRO_VERSION.
The VERSION_ID is set to DISTRO_VERSION in poky/.../os-release.bb
Use weak default to DISTRO_VERSION instead of overriding VERSION_ID.
This allows other layers to override in *.bbappend or *.conf.
Tested:
```
root@romulus:~# cat /etc/os-release
ID=openbmc-openpower
NAME="Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)"
VERSION="2.11.0-dev"
VERSION_ID=2.11.0-dev-165-g20885c497
PRETTY_NAME="Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro) 2.11.0-dev"
BUILD_ID="2.11.0-dev"
OPENBMC_TARGET_MACHINE="romulus"
```
Signed-off-by: Willy Tu <wltu@google.com>
Change-Id: I25b5a165b764e6562fa8008c9d2a75a82fb09139
Diffstat (limited to 'meta-phosphor/conf/distro')
-rw-r--r-- | meta-phosphor/conf/distro/include/phosphor-base.inc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/meta-phosphor/conf/distro/include/phosphor-base.inc b/meta-phosphor/conf/distro/include/phosphor-base.inc index 1d8cc4a27..e42c8c20d 100644 --- a/meta-phosphor/conf/distro/include/phosphor-base.inc +++ b/meta-phosphor/conf/distro/include/phosphor-base.inc @@ -69,7 +69,6 @@ require conf/distro/include/no-static-libs.inc require conf/distro/include/yocto-uninative.inc DISTRO_NAME = "Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)" -DISTRO_VERSION = "0.1.0" TARGET_VENDOR="-openbmc" VIRTUAL-RUNTIME_keymaps = "" |