Subject: Re: [xenomai-images][PATCH 1/1] kernel/linux: Add git commit sha to build References: <20191014132840.27249-2-Quirin.Gylstorff@siemens.com> From: Jan Kiszka Message-ID: <2170bc62-c812-3820-46bf-84d6390ec873@siemens.com> Date: Mon, 14 Oct 2019 16:20:01 +0200 MIME-Version: 1.0 In-Reply-To: <20191014132840.27249-2-Quirin.Gylstorff@siemens.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Q. Gylstorff" , xenomai@xenomai.org On 14.10.19 15:28, Q. Gylstorff wrote: > From: Quirin Gylstorff > > For debugging purposes print the commit sha used by the build. > > Signed-off-by: Quirin Gylstorff > --- > recipes-kernel/linux/linux-xenomai.inc | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/recipes-kernel/linux/linux-xenomai.inc b/recipes-kernel/linux/linux-xenomai.inc > index d93e614..bdf51f7 100644 > --- a/recipes-kernel/linux/linux-xenomai.inc > +++ b/recipes-kernel/linux/linux-xenomai.inc > @@ -18,6 +18,7 @@ SRC_URI += "file://${KERNEL_DEFCONFIG}" > DEPENDS += "xenomai-kernel-source" > KBUILD_DEPENDS += "xenomai-kernel-source" > > +LINUX_COMMIT="${@bb.fetch2.get_srcrev(d).strip('AUTOINC+')}" > dpkg_runbuild_prepend() { > case ${DISTRO_ARCH} in > armhf) > @@ -33,6 +34,9 @@ dpkg_runbuild_prepend() { > bberror "Unsupported architecture ${DISTRO_ARCH}" > exit 1 > esac > + bbplain $(printf "linux-xenomai-%s: Building revision %.20s\n" \ > + ${PV} ${LINUX_COMMIT}) > + > > sudo chroot --userspec=$( id -u ):$( id -g ) ${BUILDCHROOT_DIR} \ > /usr/src/xenomai-kernel-source/scripts/prepare-kernel.sh \ > Applied nevertheless, just with tab-fixes - we already report the revision for xenomai packages unconditionally. Thjnks Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux