From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6579174846558633984 X-Received: by 2002:a2e:760e:: with SMTP id r14-v6mr149128ljc.37.1531842100485; Tue, 17 Jul 2018 08:41:40 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:e552:: with SMTP id c79-v6ls155012lfh.11.gmail; Tue, 17 Jul 2018 08:41:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcSiqbQfDJek9Q9aN4HSPwzFlzfJPvQL0RslfyqL6rdL99rzzaop8YWnOSAAbVMDxY7k/l/ X-Received: by 2002:a19:c717:: with SMTP id x23-v6mr113906lff.36.1531842100057; Tue, 17 Jul 2018 08:41:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531842100; cv=none; d=google.com; s=arc-20160816; b=qzz65C1NHv3Wl9YH7UYRlp3i7KwpeodcMCcjqaJsp32tCIfCBBzXMOOmMZPHUecx7I iO1x2X/AaDkG5BLUOMXRBSdtojWq2VZ20rBaX+JqcS5y0evEiCFU2PlubU01tcxqGHAM QYytEfxjpEl1xBfST+1uYXCjy988SBQjNeu/hZerpGeTHSoQ2kCTtn1E+8UrfuJa6nNC NFbbRgYcXbYbiUP1bgNmKQ4RylwO1g2eLDUbPs7avDHd2mwZMfeBzMmDNPZzEcgxySZ6 kbYK7W93XuQHbgCkkeE54ndPY57113rKD+B7ORcrqT9cwCRZswb7ncsVL1fVFWzMWC9o yKJw== 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:from:references:to:subject :arc-authentication-results; bh=SQVEIycwPyfxec2YluGzYOQniL8GwY9f452gRy+aCzQ=; b=j6YAxXxvuQ6Y8czDsB9gpAZiPoSk1n2bytZI91tEgNfqqRTy/jURhKdCsoywRc+REH /zhjjDRPZPhDUv165b0urUeu+dOAWr9tmsVHBFDs+iaaJrly9oL4+aMLyg6K6FGUfPI7 A77w8QDM67hqeNugg229VgRT4+YMgZXQHdNR6e4t49LiKQyOHsCoAhMz71DBj21AjJLv lrplf6GvzJVzyn3gWGo5RvhefQ/743hCPsbHEU0AtLFGApyeNhqO9Fk2q8QP/NMEVJaz t3tyifuKtSm5lO/Xy9tgvqjHJua0FA1owou8itssQsFJ6KQq486LJSUvSYQRAycGoUec ykRA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id n13-v6si36696ljc.4.2018.07.17.08.41.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 08:41:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w6HFfaDU025057 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 17 Jul 2018 17:41:38 +0200 Subject: Re: [PATCH v3 0/7] Isar cross-compilation support To: Jan Kiszka , isar-users@googlegroups.com References: <20180717131811.14239-1-asmirnov@ilbers.de> <5c45490f-9dce-b43a-14b3-8347931c40ef@siemens.com> From: Alexander Smirnov Message-ID: <507beff8-3503-22a9-c3f6-0a01f3f7a132@ilbers.de> Date: Tue, 17 Jul 2018 18:41:31 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <5c45490f-9dce-b43a-14b3-8347931c40ef@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: KBt+pgF7//7i On 07/17/2018 04:38 PM, Jan Kiszka wrote: > On 2018-07-17 15:18, Alexander Smirnov wrote: >> Hi everybody, >> >> sorry for the delay, this is the third version of cross-compilation >> support for Isar. >> > > Thanks for the update! > >> Supported targets for cross-compilation: >> - stretch armhf >> - stretch amd64 >> >> Artifacts could be cross-compiled: >> - dpkg.bbclass users >> - dpkg-raw.bbclass users >> - kernel >> >> Known issues: >> - if target and host architectures are the same, there is no need >> to use host buildchroot. >> - kernel module doesn't support cross-compilation. Default linux-headers >> package depends from target gcc binaries. So attempt to install, for >> example linux-headers-armmp, tries to install gcc:armhf, what rises >> conflict with the host tools. > > Could you imagine overriding such specialties with extra rules, even if > package specific? Not having kernel module in the cross compilation > chain main cause troubles (or does it work fine to cross-build the > kernel and then natively build the modules?). What I'd like to try: 1. Add ARM defconfig for linux-cip 2. Try to build example module for linux-cip for armhf Regarding overriding default Debian kernel, ATM I don't see any possibilities. Just as an exercise - I tried to install linux-headers-armmp: $ sudo dpkg --add-architecture armhf $ sudo apt-get update $ sudo apt-get install linux-headers-armmp No chances here, this package pulls lots of armhf binaries that conflict with the host ones. The only way I see now is to manually fetch and unpack this package. But it's an ugly hack IMHO :-( Regarding hybrid mode (apps and kernel are compiled cross, modules are compiled natively) - this works. You could check this by trying cross-build for qemuarm-stretch, for example. Alex > >> >> To enable cross-compilation, the variable ISAR_CROSS_COMPILE should be set >> to "1" in local.conf file. > > I will retry that series soon, on my standard testcase jailhouse-images. > It's growing and urgently needs an accelerator :). > > Jan >