title: Bitbake Add Third Party GitHub Repo
body: <p>I am attempting to add a new layer to my bitbake build. There is a GitHub repo that provides code that can read a CAN frame and parse it using a DBC file. I am having trouble getting bitbake to approve of this. The repo is <a href="https://github.com/xR3b0rn/dbcppp" rel="nofollow noreferrer">here</a> and it relies on <a href="https://github.com/xR3b0rn/dbcppp/tree/master/third-party" rel="nofollow noreferrer">three submodules</a>.</p>
  <p>My bb file so far contains:</p>
  <pre><code>LICENSE = &quot;MIT&quot;
  LIC_FILES_CHKSUM = &quot;file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302&quot;
  
  SRCREV_FORMAT = &quot;linux&quot;
  SRC_URI = &quot;git://github.com/xR3b0rn/dbcppp.git;protocol=https;branch=master \
          gitsm://github.com/jarro2783/cxxopts.git;protocol=https;branch=master \
          gitsm://github.com/GNOME/libxml2.git;protocol=https;branch=master \
          gitsm://github.com/xR3b0rn/libxmlmm.git;protocol=https;branch=master \          
          &quot;
          
  PV = &quot;1.0+git${SRCPV}&quot;
  SRCREV = &quot;${AUTOREV}&quot;
  
  S = &quot;${WORKDIR}/git&quot;
  </code></pre>
  <p>When adding the third gitsm line <code>gitsm://github.com/xR3b0rn/libxmlmm.git;protocol=https;branch=master \</code> I start getting errors.</p>
  <pre><code>ERROR: dbcppp-1.0+gitAUTOINC+linux-r0 do_configure: oe_runmake failed
  ERROR: dbcppp-1.0+gitAUTOINC+linux-r0 do_configure: Execution of '/home/michael/Documents/MAIN_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dbcppp/1.0+gitAUTOINC+linux-r0/temp/run.do_configure.39779' failed with exit code 1
  ERROR: Logfile of failure stored in: /home/michael/Documents/MAIN_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dbcppp/1.0+gitAUTOINC+linux-r0/temp/log.do_configure.39779
  Log data follows:
  | DEBUG: Executing python function extend_recipe_sysroot
  | NOTE: Direct dependencies are ['/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_10.2.bb:do_populate_sysroot', 'virtual:native:/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', '/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-devtools/quilt/quilt-native_0.66.bb:do_populate_sysroot', '/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-devtools/gcc/gcc-cross_10.2.bb:do_populate_sysroot', 'virtual:native:/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', '/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-core/glibc/glibc_2.33.bb:do_populate_sysroot']
  | NOTE: Installed into sysroot: []
  | NOTE: Skipping as already exists in sysroot: ['gcc-runtime', 'pseudo-native', 'quilt-native', 'gcc-cross-arm', 'patch-native', 'glibc', 'linux-libc-headers', 'libgcc', 'xz-native', 'libmpc-native', 'autoconf-native', 'automake-native', 'mpfr-native', 'binutils-cross-arm', 'zlib-native', 'gmp-native', 'libtool-native', 'flex-native', 'texinfo-dummy-native', 'gnu-config-native', 'attr-native', 'gettext-minimal-native', 'm4-native']
  | DEBUG: Python function extend_recipe_sysroot finished
  | DEBUG: Executing shell function do_configure
  | NOTE: make clean
  | Makefile:4: *** config.mk not built. Run configure script..  Stop.
  | ERROR: oe_runmake failed
  | WARNING: exit code 1 from a shell command.
  | ERROR: Execution of '/home/michael/Documents/MAIN_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dbcppp/1.0+gitAUTOINC+linux-r0/temp/run.do_configure.39779' failed with exit code 1
  ERROR: Task (/home/michael/Documents/MAIN_Application/MAIN_layers/meta-MAINapplication/recipes-core/dbcppp/dbcppp_0.0.bb:do_configure) failed with exit code '1'
  </code></pre>
  <p>This is an <code>oe_runmake</code> error. This confuses me as I have not attempted to add a <code>do_install</code> or <code>do_install_append</code> step.</p>
  <p>Note that my goal is to build this code and include it as a library for my application to use.</p>
  <p>Edit 1: I updated the bb file (below). The resulting error leads to me to believe that I have to build this, set some rules for oe_runmake to follow.</p>
  <pre><code>LICENSE = &quot;MIT&quot;
  LIC_FILES_CHKSUM = &quot;file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302&quot;
  
  SRCREV_FORMAT = &quot;xR3b0rn&quot;
  SRC_URI = &quot;git://github.com/xR3b0rn/dbcppp.git;protocol=https;branch=master \
          gitsm://github.com/jarro2783/cxxopts.git;protocol=https;branch=master \
          gitsm://github.com/GNOME/libxml2.git;protocol=https;branch=master \
          gitsm://github.com/xR3b0rn/libxmlmm.git;protocol=https;branch=master \          
          &quot;
          
  PV = &quot;0.0+gitr${SRCPV}&quot;
  SRCREV = &quot;${AUTOREV}&quot;
  SRCREV_xR3b0rn = &quot;${AUTOREV}&quot;
  
  S = &quot;${WORKDIR}/git&quot;
  </code></pre>
  <p>Edit 2: Using the solution from ensc I am able to build, but I get an odd error.</p>
  <pre><code>ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-src went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
  ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-dbg went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
  ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-staticdev went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
  ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-dev went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
  ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-doc went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
  ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-locale went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
  ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
  </code></pre>