From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 X-Received: by 2002:aa7:d709:: with SMTP id t9mr34838815edq.266.1572967650859; Tue, 05 Nov 2019 07:27:30 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6402:88c:: with SMTP id e12ls5382043edy.2.gmail; Tue, 05 Nov 2019 07:27:30 -0800 (PST) X-Google-Smtp-Source: APXvYqwIXT3OAELkZREUZcEvrzdJUN1e6XV5kPIANd+iLB2sC3HtZ9XoEqTxl/W/jvC24qZftwLD X-Received: by 2002:a50:eacc:: with SMTP id u12mr36556324edp.290.1572967650244; Tue, 05 Nov 2019 07:27:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572967650; cv=none; d=google.com; s=arc-20160816; b=KU9PVCsyFxveOxgBJpKwze6iZyhLGd4jcArcViI8ZRvSDIK9A9MfS451qkSsv9IjRu 0WsKsLV/fHonirXAgWCkxuKktPYS5eGAp/P2qxSmlWV6R8QUl6WdBgdIJWfv0PC1m81+ fSiAK+eztnCzUZqbwdO8EPWGDeHJl12Y4U6YKMWLLBALPtzoFA2LW0CL5TZbg4a+GMzb eQbAqskNonqXDn3TErCgQort30mbX1t8rPaokroHYbr4i88qyP05q+AGo3xhzga6Lnll ZzSZJZI2L9Wffra7V1FERyMl+TIVWYNmtxWTwrt0dGsM+UsMbZ0pQb7S0xFsY1+8ux5j 1ssg== 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; bh=F88PToXVkmFtLTl/kaTRDzDhC5EgZCXeZMB+LcmWcgA=; b=QlI5JeX/mMtG69/WpuFlK1biFb0hAjZ3mB/h5psluJeR2otiy8RvQxXKQAndliFnN1 h/cKeygjo+DLHViRIL75n3BMdb8Gb/bduMGRT+dvu8wgE0NZbgcrJQ0V+7ah0Gnl7Dnz 9QhM2aUD5aU29nLaQpJEoP7w+IensW/BAn6n5QBgWmaCQzfMplU3x0y33KJvDFMrdXty 3tt35nqsQLsk/CQFIuRo3R6FWL8fhOxN/a4erkQ62NyH2jPiC0IADzKLx2Azf/0R7S3s yVMuG/cy9DBGwS95H0xfL24CkyJW7iqAHvdgbBJV2xE3Cs1iqhyING/FHW5js+X2dmat j5jQ== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id y21si1479367ejp.1.2019.11.05.07.27.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Nov 2019 07:27:30 -0800 (PST) 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 xA5FRT0S028815 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 5 Nov 2019 16:27:29 +0100 Received: from [139.25.68.37] ([139.25.68.37]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id xA5FRTEZ023859; Tue, 5 Nov 2019 16:27:29 +0100 Subject: Re: [PATCH 6/7] buildchroot-host: install qemu-static to support hybrid cross-compiles To: Cedric Hombourger , isar-users@googlegroups.com References: <1572962145-318-1-git-send-email-Cedric_Hombourger@mentor.com> <1572962258-367-1-git-send-email-Cedric_Hombourger@mentor.com> <1572962258-367-2-git-send-email-Cedric_Hombourger@mentor.com> <9247cf11-0071-6004-1635-de1cd6ccf74f@mentor.com> From: Jan Kiszka Message-ID: Date: Tue, 5 Nov 2019 16:27:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <9247cf11-0071-6004-1635-de1cd6ccf74f@mentor.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: sfRdtdp89V6U On 05.11.19 16:00, Cedric Hombourger wrote: > On 11/5/2019 3:52 PM, Jan Kiszka wrote: >> On 05.11.19 14:57, Cedric Hombourger wrote: >>> The Linux kernel has great support for cross-compiling the kernel image >>> and modules. There is however no support/mechanism for >>> cross-compiling the >>> build tools from its "scripts" directory. While HOSTCC may be set to use >>> our cross-compiler, the kernel build infrasture would then try to run >>> foreign-arch binaries such as fixdep. The easiest and least intrusive >>> way >>> to support this is to enable execution of such binaries via binfmt/qemu >>> like we do in the buildchroot-target environment. >> What's the use case? Or why didn't we hit this issue so far? > > when building with the kernel builddeb script, the linux-headers package > will include scripts/basic/fixdep compiled for amd64 even though your > target architecture is e.g. armhf > > this went unnoticed because the kernel does not use debhelper and > therefore does not benefit from the extra checks/stuff that it does > > while migrating to custom build/packaging scripts using debhelper, that > packaging mistake caused dpkg-buildpackage to fail > > so things worked before by luck and also because nobody is actually > doing on target development/builds (on non x86 machines that is). it is > however desirable to have our linux-headers package for arch x (e.g. > arm64) include arm64 binaries and not amd64 > > hope that makes more sense now See my comment on patch 7: This here is also only papering over the real issue. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux