[elbe-devel] [PATCH 2/2] elbepack: elbeproject: Move host sysroot path generation.

Kory Maincent kory.maincent at bootlin.com
Mon Jun 15 15:04:34 CEST 2020


The local repository was not added to the apt of the host syroot because of the
path of the host sysroot. The following condition was wrong.
elbepack/rfs.py: 122:         if os.path.exists(self.path + '/../repo/pool'):

The patch moves the host path creation into the builddir, then copies the
host chroot into the sdk.

Signed-off-by: Kory Maincent <kory.maincent at bootlin.com>
---
 elbepack/elbeproject.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index 3bf0f17..4c35b5f 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -390,10 +390,14 @@ class ElbeProject (object):
         do("mkdir -p %s" % sdktargetpath)
         do("tar xJf %s/sysroot.tar.xz -C %s" %
            (self.builddir, sdktargetpath))
+
         # build host sysroot including cross compiler
-        hostsysrootpath = os.path.join(self.sdkpath, 'sysroots', 'host')
+        hostsysrootpath = os.path.join(self.builddir, 'host')
 
         self.build_host_sysroot(host_pkglist, hostsysrootpath)
+        sdkhostpath = os.path.join(self.sdkpath, "sysroots", "host")
+        do("mkdir -p %s" % sdkhostpath)
+        do("cp -a %s/. %s" % (hostsysrootpath, sdkhostpath))
 
         n = gen_sdk_scripts(triplet,
                             elfcode,
-- 
2.17.1




More information about the elbe-devel mailing list