From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6579174846558633984 X-Received: by 2002:aa7:c4d0:: with SMTP id p16-v6mr4995602edr.10.1532420518002; Tue, 24 Jul 2018 01:21:58 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aa7:d7c9:: with SMTP id e9-v6ls1081693eds.7.gmail; Tue, 24 Jul 2018 01:21:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdESkfwx5db8dY+/cigbSGlaRxhSo3Tr23mK+b305jh644/42VVcLMM3er6My/mDvJnT86x X-Received: by 2002:aa7:c914:: with SMTP id b20-v6mr849503edt.3.1532420517487; Tue, 24 Jul 2018 01:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532420517; cv=none; d=google.com; s=arc-20160816; b=jnD9C+gs+uJUeEyYvJhaG05bCoin6g8xifmcT/G9smOsh0MVcFBT4tI/J3rx+TVr/l 02BGeZqY6aUERcCY7m0PWieqjlWx0gGe49Ma5uyw0KuS1x8WJTEshtA8pKT4Ivl6jP+j td9WKrPEj+KW+oJLohrShtE3CTBWPQKSeg/qPNMmKaoowRrmPTMGHg9MgKWGC5DUUlVd S1h/iugflKbkz8VKYhWe4BMo/vqNe19lqhFq77tMFMvGstNxJbWp4s6t76Qgz7p9zG4l XuwTPtMugQdEW6Kdrf+UcP5moNWi/E1lGG4/70L7P7/lrRa6i4uhzYSThMbwQpVVfQD/ nDhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:references:to:from:subject :arc-authentication-results; bh=tNaUaTub18gGwe1dceJxDiR5SWeI0VvJNRp5Fn2gQ1s=; b=P7fBiEbcG6DcBEn/7Sehp4aoXIIyy59z5MyVnM2cEPWq0GpgS7o2uoSa9X4uy+pIyR 3FTf9Tn2VO4TTdZoVZnLcR7qP7zEYXaAB+MPfXLfVnu8m8W5d3J7InAqpJ/AV65vac5D xpr6YyB3GX75vvXrPlVTkh0hCs2iw2OTVkbqUNvrrp8gSCDn9DzGkeuxs7p1W5KNkmx/ SBcWZfK9VoAIlYVDfEGzQv8X8K8HlcDipCdIH/CAHj2nB7j42+5qWXGtnQJJXdikAweW R7/7BC51yYs1+Uh5t4t6beBaTIuR+8/ATjn5A6p200Z8m6AOvBr9a3IXSiwvy/M1bBP6 Jc9w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id a26-v6si490507edn.2.2018.07.24.01.21.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Jul 2018 01:21:57 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id w6O8LuiU015567 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Jul 2018 10:21:56 +0200 Received: from [139.25.35.33] ([139.25.35.33]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id w6O8LtvC027657; Tue, 24 Jul 2018 10:21:56 +0200 Subject: Re: [PATCH v3 0/7] Isar cross-compilation support From: Jan Kiszka To: Alexander Smirnov , isar-users@googlegroups.com References: <20180717131811.14239-1-asmirnov@ilbers.de> <5c45490f-9dce-b43a-14b3-8347931c40ef@siemens.com> <507beff8-3503-22a9-c3f6-0a01f3f7a132@ilbers.de> <1ed1ad84-acaf-1aa9-0ac7-f2f1353670ab@siemens.com> <164aa001af8.27ac.034a6b0541ed39b7fb4e17f4ac219eaa@ilbers.de> <09de613b-ba4c-21fb-d675-421c27b9bab6@ilbers.de> <610e26c8-4af8-6a96-7ed5-76470fb4298e@siemens.com> <2ce080a3-ab36-6a00-c8cb-80ff2d39b7f3@siemens.com> <877fdc7a-c6c7-5192-0113-ce4b9a0f5b68@ilbers.de> <9670ec25-f1af-daac-53c3-f92c0db3f573@ilbers.de> <0d9010d4-df48-c87c-8b36-2365229d7566@siemens.com> Message-ID: <5055af06-438a-0a25-b5e3-2851f4d82c4e@siemens.com> Date: Tue, 24 Jul 2018 10:21:55 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <0d9010d4-df48-c87c-8b36-2365229d7566@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: 3yumy+X6qvS9 On 2018-07-22 23:54, [ext] Jan Kiszka wrote: > Hi Alex, > > On 2018-07-22 22:32, Alexander Smirnov wrote: >> Hi Jan, >> >> On 07/22/2018 11:15 PM, Alexander Smirnov wrote: >>> >>> >>> On 07/20/2018 08:56 AM, Jan Kiszka wrote: >>>> Hi Alex, >>>> >>>> On 2018-07-19 22:59, Alexander Smirnov wrote: >>>>> Hi Jan, >>>>> >>>>> [...] >>>>> >>>>>>> Just an observation, you use here buster but I didn't test it. >>>>>> >>>>>> Yes, but only for the pre-built u-boot package, and only for the >>>>>> Orange >>>>>> Pi. See conf/multiconfig/preferences.orangepi-zero.conf. >>>>> >>>>> I've found several issue with v3 regarding kernel and modules >>>>> cross-compilation. I've fixed them and pushed asmirnov/devel branch. >>>>> >>>>> Now I'm able to cross-build orangepi kernel and example-module for >>>>> it, huh! :-) >>>> >>>> That's good news, and I can confirm that at least the linux-headers >>>> packages looks good now. It's also clear now that there can be no >>>> mixed-mode when building kernel modules because this package with its >>>> host tools is generated for the build host, not the target arch. >>>> >>>> However, I'm still stuck on the Python dependency problems. I bet you >>>> can also reproduce them by declaring the hello package to >>>> build-depend on "python". Same for "python-pip". >>>> >> >> I've found an interesting notes here: >> >> https://wiki.debian.org/DebianBootstrap/TODO#Remove_blockers_for_:any_and_:native_introduction >> >> >> adding native qualifier for python solves the issue for me (i.e. >> python:native). > > Yes, already wanted to report (but got distracted by Jailhouse bugs) > that I found the same hint in > > https://groups.google.com/forum/#!topic/linux.debian.devel.mentors/OuuorAmGgWc > > Adding :native to python solved the build issue for non-root-initramfs > in jailhouse-image. But I have harder nuts in that repo. :) > > The jailhouse package has build dependencies on python-mako, a package > mentioned above as cross-incompatible, and also python-pip. Those can be > installed by adding :native as well, but dpgk-buildpackage will then > fail on validating the build dependencies. That can be skipped, though: > > diff --git a/meta/recipes-devtools/buildchroot/files/build.sh b/meta/recipes-devtools/buildchroot/files/build.sh > index 40ba410..aba2042 100644 > --- a/meta/recipes-devtools/buildchroot/files/build.sh > +++ b/meta/recipes-devtools/buildchroot/files/build.sh > @@ -61,4 +61,4 @@ for i in configure aclocal.m4 Makefile.am Makefile.in; do > done > > # Build the package > -dpkg-buildpackage -a$target_arch > +dpkg-buildpackage -a$target_arch --no-check-builddeps > > With that change and by adding arm64 support, I was now able to build > *all* jailhouse-image targets cross! > >> >> Do you think current status contains enough functionality for the first >> implementation, so I could format clean patches and add the documentation? > > Yes, definitely, with that workaround and arm64 support, please. Maybe > you have an idea how to limit the --no-check-builddeps to cross-builds. It looks like that we cannot leave that out if we want to support :native unconditionally in control files, even for native builds. Jan