From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6581862148598661120 X-Received: by 2002:a2e:93cf:: with SMTP id p15-v6mr1212653ljh.39.1532521356081; Wed, 25 Jul 2018 05:22:36 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:7605:: with SMTP id r5-v6ls1567424ljc.13.gmail; Wed, 25 Jul 2018 05:22:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcjkWS3aC2gCUdgmk8nmz+8FB+lQa6kazkDDmwy0atd6Oo1KMW+hUU+sg6quNtSPT23FQM0 X-Received: by 2002:a2e:9ac3:: with SMTP id p3-v6mr1223375ljj.17.1532521355601; Wed, 25 Jul 2018 05:22:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532521355; cv=none; d=google.com; s=arc-20160816; b=RZsfOrFmjRjlbY4ETYml+GwLkgsnxILnwZ5Z6MemWRicEmYKABJsAV7dnnYSetMnrZ R8+OsIjERiekAs9IHUqQ6x8H9DCqeluKQgc6M13QKkWFIf0hKuVJhqF2wZ9C/grvZHZz lJGJBRSVFle76skPuLeciWseGmo/0cNCwUPibqlo0tn4dayKwtuwZhjJ0grXWIeNu6WE ZwiVa75+jnS0ISne01m4GObPoys6JmKR8XG3W5//FxmHUiZQs2ydbmxYASRGKhzLT+a2 UPeGmdRSI6ofRfMp9091kF0IsKvGAt5VPSLTlKUi92Dxp9KjEu2oYgKiBBsI5HLAef5f c83A== 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:cc:to:subject :arc-authentication-results; bh=hnVBEsx2BqCAp/rHtSCqxaLW52S03Cv0mTJQRb6MRUQ=; b=09iLg6C1i0aO5SnjHvbHt8Km699GnRTfRpTY4v+pNR2rcRQbxMGqa8PsmjZHN1uPOe 4yTr2tDJFPTXtW6I/hUUitNvhRgrym4gKHTDQMraYrCr3rQPpBCiBkm+hF7gXId3jHNv JE7R5uhWwMXRyx7kKj28olMGADYV7dlz6xjUaFPHbNCodx9H2373Xb1k1KO26/U+2ksf zWLJwS/pPieYT3YFqqAfmbsGfcCYVKEmiqOnzfpNuQ3cfAu0Fqyk7tQHtJUnbGdaDtGM ySCf+a/pNeU2dT5Ffj9k8jBWsR38Nl1ydDAyzjofWMvhFCnLKpxIKEF2QyaUZYtXnlxS sQ9A== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@web.de designates 212.227.15.4 as permitted sender) smtp.mailfrom=jan.kiszka@web.de Return-Path: Received: from mout.web.de (mout.web.de. [212.227.15.4]) by gmr-mx.google.com with ESMTPS id a7-v6si473773ljj.1.2018.07.25.05.22.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 05:22:35 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@web.de designates 212.227.15.4 as permitted sender) client-ip=212.227.15.4; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@web.de designates 212.227.15.4 as permitted sender) smtp.mailfrom=jan.kiszka@web.de Received: from [192.168.1.10] ([95.157.57.47]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MEZPl-1fkkb53F4T-00FlI5; Wed, 25 Jul 2018 14:22:34 +0200 Subject: Re: [PATCH v4 04/10] cross-compilation: Introduce variable switch To: "[ext] Henning Schild" , Alexander Smirnov Cc: isar-users@googlegroups.com References: <20180724190618.19155-1-asmirnov@ilbers.de> <20180724190618.19155-5-asmirnov@ilbers.de> <20180725102535.01011a40@md1pvb1c.ad001.siemens.net> From: Jan Kiszka Message-ID: <31cda3ca-b7f1-5aa3-8e85-f9834b55b3df@web.de> Date: Wed, 25 Jul 2018 14:22:34 +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: <20180725102535.01011a40@md1pvb1c.ad001.siemens.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:RCLXmSOIxCEfWo81C8M5BlGNNXtkRu4FK243Xi6kJfuJhd4NSDs ZzKqIoyN8JGPcX5bVjnRh/yd18hX3W9qAC/+AECMy7HmCj4XP5DAQx7N6C4/mdgQurbeV08 kokcfHPPc0GS7cN7h59h5PWRNZYrCcC66wCx7yMf/mt+yR+cQ1JO7rZOk5/NRiYrHSiEAoP JinQkXNMEgsyCZMkj2wZg== X-UI-Out-Filterresults: notjunk:1;V01:K0:jHCgtMYamhI=:6y7XL67WieZQFSXk7vCIH8 jpu1YemC65xzuEhGCKAFomfr61wcdDr1kfo2d3fIrAQmOYw2XFQMN0Sv7tr+Md8YrcFk4BtbK tSA9wsylOSpbu4PQCIvakSf/JhX52E4ZDIvV2v4n34wvwNLfORW6D/0HOZp1ioFQjMfLUbZNy bYp6VayvLQ1Y4pY8IQ5xVxH2GW8yG3tUwNJM9hIst1ruQOAxO/m5+3nLZ7fBYT7/u2ZLqfb/K 1XbbpEz3aInYuQU2WGl6jcWrfd4lNrLSBzJcXAaS3nihhjlyttl9xhag4yrmeN4n/jfC+yTZ9 MDmDn519018Oy3bzXzY7BvY9sd4Xfzx4rX1uBNfMfjbitFZKHjcZFUETDsyF54uzpyQXPrHgm CKCHDmgNrR00PfImVhgk2cj5ZR8OWCAFn1O3bhywtY2Rb6Z47oI18fQK08a8XyHNvGeZmpQlq DS/aDgi+9igbq1xZ9zqUyTpMWYqQ5FsRq63aWe48zkTrvegYnAI8A7SpBWcJAcsLvc8SHD+S9 Mhu8waqUSQ7vxa3zryXCXh588ofJIcJBqjDqfx1M1g93jIIEjSLPRTv3Fx6n0uuiQCRTZ6RSi p0JDnaFsSUt3fWl+j/+iwoKFrqGK4ZR5nY4XvPxLjv2Cde7BOSLvXdMUUQAeLMQIdtYytGY7W hn5wHFx5+4EWBTB6ztggiCtgvUFzKWoLX9NashmVewWeAunASVlcL/Nc6tP8HGUGyOm4HYs50 7tg9K3JFTa50sAzVym6ANPfIyPXJjOF+ppVxc0FeZAodvrkHzNAYCQoT8l8o7wKvD950Zhrfc X4ju0v9 X-TUID: E6fYfP6zGTXU On 2018-07-25 10:25, [ext] Henning Schild wrote: > The way i understand the whole thing is that there are two meanings of > ISAR_CROSS_COMPILE. On the image-level it enables the feature for > every package. Some packages, the ones that do not support it, disable > it for their build. > > Would it be a good idea to come up with a different name for the two? > > image: > ISAR_CROSS_COMPILE_IMAGE > package: > ISAR_CROSS_COMPILE_RECIPE ?= ISAR_CROSS_COMPILE_IMAGE > ISAR_CROSS_COMPILE has no direct relationship with images. It is a Variable that controls per package-generating recipe if cross compilation should be used. You can set it globally, via local.conf, multiconfig settings or per target etc. Then those recipes who know that they are not compatible (unfulfilled build deps, build issues) should opt-out by overwriting the variable in the recipe file. The problem comes from combinations: If recipe has a build-dependency on another recipe, generally only both can opt-out. But as we cannot foresee the combinations the user will choose when defining a target (which includes images), that user need to resolve any potential problems - e.g. by bbappend'ing ISAR_CROSS_COMPILE=0 to a recipe that services as build-dependency to a cross-incompatible recipe. Jan