From patchwork Wed Nov 23 14:29:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 9443521 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 42574600BA for ; Wed, 23 Nov 2016 14:31:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35B6F26CFF for ; Wed, 23 Nov 2016 14:31:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A6E726D08; Wed, 23 Nov 2016 14:31:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B09BB26CFF for ; Wed, 23 Nov 2016 14:31:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9YYe-0003XD-C5; Wed, 23 Nov 2016 14:29:56 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9YYc-0003X4-Lq for xen-devel@lists.xen.org; Wed, 23 Nov 2016 14:29:54 +0000 Received: from [85.158.139.211] by server-2.bemta-5.messagelabs.com id 7D/15-08512-2E7A5385; Wed, 23 Nov 2016 14:29:54 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrJIsWRWlGSWpSXmKPExsXitHSDve7D5aY RBpfnKVks+biYxYHR4+ju30wBjFGsmXlJ+RUJrBlP9k1nLVjPVXFiSwNTA+Nzji5GTg4JAX+J iy+uM4HYLAKqEss2rmYGsdkElCV+dvaygdgiAtoSjbvfA9VwcTALbGWUuHRyOgtIQlggTuL23 jOMIDavgL7EjL3bmEGKhAQmM0ucm3GYDSIhKHFy5hOwBmYBHYkFuz8BxTmAbGmJ5f/AjuAUCJ S4MP8n2GJRARWJKxPesoPYQgIKEh3TjzFNYOSbhWTSLCSTZiFMWsDIvIpRozi1qCy1SNfIXC+ pKDM9oyQ3MTNH19DAVC83tbg4MT01JzGpWC85P3cTIzDY6hkYGHcwXt3id4hRkoNJSZSXt8k0 QogvKT+lMiOxOCO+qDQntfgQowwHh5IE79NlQDnBotT01Iq0zBxg2MOkJTh4lER4P4CkeYsLE nOLM9MhUqcYdTne7Hr5gEmIJS8/L1VKnHc+SJEASFFGaR7cCFgMXmKUlRLmZWRgYBDiKUgtys 0sQZV/xSjOwagkzPsOZApPZl4J3KZXQEcwAR0h+c0Y5IiSRISUVAOjrEfPtcpUgVvrVYQ+9zb ZfeK+pr7HSLti2QbWCXXiLw22y8sW3JOUXSx95ELc4d9165afTNyaIZG+i/9E2q17RdN8Pqhy BbR7Nk/xWtJx+XiqrQ5fScATsxP2Zgu2zV9z+6b/gw2nw+RjJ55f5e7s0P/gzVyORRNcDr6cd vmF4IZrx9b4fQsvUmIpzkg01GIuKk4EACcHIOy8AgAA X-Env-Sender: prvs=1287b0b2d=wei.liu2@citrix.com X-Msg-Ref: server-10.tower-206.messagelabs.com!1479911391!54686037!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.0.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 35095 invoked from network); 23 Nov 2016 14:29:53 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-10.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 23 Nov 2016 14:29:53 -0000 X-IronPort-AV: E=Sophos;i="5.31,538,1473120000"; d="scan'208";a="399818939" Date: Wed, 23 Nov 2016 14:29:49 +0000 From: Wei Liu To: Andrii Anisov Message-ID: <20161123142949.GD23528@citrix.com> References: <1479903908-13579-1-git-send-email-andrii.anisov@gmail.com> <20161123131247.GY23528@citrix.com> <20161123140538.GZ23528@citrix.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Ian Jackson , Julien Grall , Shannon Zhao , Wei Liu , xen-devel@lists.xen.org Subject: Re: [Xen-devel] [PATCH v1] libxl: Make an ACPI support build for ARM64 configurable. X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP On Wed, Nov 23, 2016 at 04:12:28PM +0200, Andrii Anisov wrote: > > But before you write any code, let me try to understand the real issue > > first: you're trying to cross-build ARM tools on x86, but x86 > > iasl doesn't support ARM ACPI definition(s), right? > Well, as I stated here [1], I'm pretty far from ACPI and understanding > of what's going wrong with the compilation. But I have a strong > feeling that this option should be optional. > > [1] https://lists.xenproject.org/archives/html/xen-devel/2016-11/msg01903.html What is the exact rune you got when compiling mk_dsdt ? If everything it set up properly you should be using a cross-build gcc which should have the correct architecture? Can you try this (untested) patch? > > Sincerely, > Andrii Anisov. diff --git a/tools/libacpi/Makefile b/tools/libacpi/Makefile index ccc32c9..2b9d5b8 100644 --- a/tools/libacpi/Makefile +++ b/tools/libacpi/Makefile @@ -44,7 +44,7 @@ $(H_SRC): $(ACPI_BUILD_DIR)/%.h: %.asl iasl rm -f $(addprefix $(ACPI_BUILD_DIR)/, $*.aml $*.hex) $(MK_DSDT): mk_dsdt.c - $(HOSTCC) $(HOSTCFLAGS) $(CFLAGS_xeninclude) -D__XEN_TOOLS__ -o $@ mk_dsdt.c + $(CC) $(CFLAGS) $(CFLAGS_xeninclude) -D__XEN_TOOLS__ -o $@ mk_dsdt.c $(ACPI_BUILD_DIR)/dsdt_anycpu_qemu_xen.asl: dsdt.asl dsdt_acpi_info.asl $(MK_DSDT) # Remove last bracket