From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6566555412143800320 X-Received: by 2002:a2e:87d0:: with SMTP id v16-v6mr97213ljj.40.1528979409594; Thu, 14 Jun 2018 05:30:09 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:5059:: with SMTP id z25-v6ls785175lfj.11.gmail; Thu, 14 Jun 2018 05:30:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJl1SvqJQFBfteMKvqh21q1wbBnFj0SfUXMQULXB99J63MkCDLG05pZ9tlPrmp5bKwD0jvX X-Received: by 2002:a19:d243:: with SMTP id j64-v6mr107653lfg.41.1528979408976; Thu, 14 Jun 2018 05:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528979408; cv=none; d=google.com; s=arc-20160816; b=bOxSMb3cvWqFz1HBOSDtc3CxyhCzv61w9MZ5xyWIv4G0YyshJ3AUt1VJW0w5Vo5ENb mBh4nzzmxKTqHPkiU+6pS+atJPMUH7djLdiKTbDRYj/L5ICuBP/D43qnwhUaf9uU5b7S oFm5QPSZvYC3m+94W1P6R4zafOrCA0jAvewI1xVAO6RSWHvGftAM2CWW/NnXD+Cmk6QW 5n+rlHUE1EEufF5veRXERCha8fHcKperNaVCPCIsm2BVHUOvGTNr3dlzaBna1qWcGc8c 330AXxu2m4IDbptijF9pAjPd5TkJ2xw0ThvJObFlSTa2PVr5dFZOFdEUHGAB06YiFrVl WB0Q== 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=KsQXo9gndZqoiRmxHbpBZKcg3Tdf7l7AaO0yalFGC6Q=; b=bFmGpWLCMcJzfizUYiQIpoIHfLnNuhCI377uKZ0Oy3NB4yEwhtJprO+RKpRhix0xIo cvdnsAVFDhs1OqP3m+ol1bGJQWqo+rW57XeWBmKUY3cWuN52Iocn4TeYNBaPoQds1JHz UfNu74xfREg3nVyjPU0hFbduumzIn3bYj9Kb6SHPatyj2cKZnZTnsnQH96MxSguxjueU rjAJX8PQ68aynG9hZ1NffCM0WORgCf02u02mlpzwtyUi+z5uwGV+7HYik7UH9p14ULq8 uW7MwxNXeYXE/xdRf6L2QGykTlFRJBjfJQ1oRk0kC3fDuyGkVtxdY2hcSC332eMl4dEV qwqQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id t30-v6si180518lfd.0.2018.06.14.05.30.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 05:30:08 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id w5ECU7dg014080 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Jun 2018 14:30:07 +0200 Received: from [146.254.83.53] ([146.254.83.53]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id w5ECU7MU004815; Thu, 14 Jun 2018 14:30:07 +0200 Subject: Re: [RFC] [PATCH 0/9] Initial cross-compilation support To: Claudius Heine , Alexander Smirnov , isar-users@googlegroups.com References: <20180613130807.2461-1-asmirnov@ilbers.de> <1b45959cb29031b6d45d3243c2449656cb9380e0.camel@denx.de> From: Jan Kiszka Message-ID: <05e6e73e-2b93-afc5-79b5-f7b3730032bd@siemens.com> Date: Thu, 14 Jun 2018 14:30:05 +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: <1b45959cb29031b6d45d3243c2449656cb9380e0.camel@denx.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: QBaX9TFDVRWG On 2018-06-14 14:04, Claudius Heine wrote: > Hi, > > On Wed, 2018-06-13 at 15:07 +0200, Alexander Smirnov wrote: >> Hi all, >> >> this series introduces basic cross-compilation support for Isar. The >> implementation >> is based around new entity - buildchroot-cross, which is quite >> similar to original >> buildchroot, but has host architecture. > > Here is a crazy idea from me and Henning: > Have you tried just installing an amd64-arm cross toolchain into the > existing arm buildchroot, then switch to it from the 'native' toolchain > using a combination of PATH variable entries, symlinks and/or wrapper > scripts and let binfmt deal with calling the amd64 binaries of the > toolchain in the arm chroot environment? > > This way the arm system would think that you are compiling nativly > while in fact you are using a cross compiler that is not emulated. > > Would that work? I just heard some story from SUSE folks doing something probably similar in the past, but they had to patch binfmt to inject the native tools into the chroot. How would you ensure in your proposal that the native compiler finds its libraries? Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux