From 214675e10ac080c7465a4c985362b9d42c2a20f5 Mon Sep 17 00:00:00 2001 From: Alexandre Bard Date: Tue, 1 Dec 2020 13:24:11 +0100 Subject: [PATCH] base-files: don't rely on DISTRO_VERSION The distro string can be retrieved at runtime from /lib/os-release with this \S escaping. It avoids rebuilding base-file everytime the distro version changes. Which helps to reducing the overall build time, since base-file is an important dependency. BugzID: 69247 --- recipes-core/base-files/base-files_%.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-core/base-files/base-files_%.bbappend b/recipes-core/base-files/base-files_%.bbappend index f14b2fe..29bf06d 100644 --- a/recipes-core/base-files/base-files_%.bbappend +++ b/recipes-core/base-files/base-files_%.bbappend @@ -1,6 +1,6 @@ BASEFILESISSUEINSTALL = "do_install_basefilesissue" -DISTROVERSION-ISSUE = "${DISTRO_NAME} ${DISTRO_VERSION} \n" +DISTROVERSION-ISSUE = "\S{PRETTY_NAME}\n" DISTROVERSION-ISSUE_append= "kernel \\\r\n" DISTROVERSION-ISSUE_append = "\\\n @ \\\l\n"