This looks unneeded while bootstrapping is done in the same way
in debian/rules file before the build.

Signed-off-by: Uladzimir Bely <[email protected]>
---
 recipes-xenomai/xenomai/xenomai.inc | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/recipes-xenomai/xenomai/xenomai.inc 
b/recipes-xenomai/xenomai/xenomai.inc
index fe84883..b8ec5bd 100644
--- a/recipes-xenomai/xenomai/xenomai.inc
+++ b/recipes-xenomai/xenomai/xenomai.inc
@@ -13,15 +13,6 @@ inherit dpkg
 
 PROVIDES += "xenomai-kernel-source xenomai-runtime xenomai-runtime-dbgsym 
libxenomai1 libxenomai-dev libxenomai1-dbgsym"
 
-# use bitbake get_srcrev to get the current commit id
-def get_commit(d):
-    try:
-        return bb.fetch2.get_srcrev(d).strip('AUTOINC+')
-    except bb.fetch2.FetchError:
-        return ""
-
-COMMIT="${@get_commit(d)}"
-
 do_prepare_build() {
     # Xenomai currently does not maintain its changelog, plus we want the
     # actual package version in there.
@@ -31,11 +22,3 @@ do_prepare_build() {
     # package version more freely.
     rm -f ${S}/debian/source/format
 }
-
-dpkg_runbuild_prepend() {
-    bbplain $(printf "xenomai-%s: Building revision %.20s\n" \
-                     ${PV} ${COMMIT})
-
-    sudo chroot --userspec=$( id -u ):$( id -g ) ${BUILDCHROOT_DIR} \
-        sh -c "cd ${PP}/${PPS}; scripts/bootstrap"
-}
-- 
2.20.1


Reply via email to