From patchwork Thu May 26 02:19:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 626502 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3rFXn90PXNz9sBG for ; Thu, 26 May 2016 12:15:57 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=j2gHUnWL; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E5149A760D; Thu, 26 May 2016 04:15:50 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FQaX4h-EEkWX; Thu, 26 May 2016 04:15:50 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 11AE0A7643; Thu, 26 May 2016 04:15:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B03DDA750E for ; Thu, 26 May 2016 04:15:39 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TreY6WYUiJ4C for ; Thu, 26 May 2016 04:15:39 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by theia.denx.de (Postfix) with ESMTPS id 39C4FA74C6 for ; Thu, 26 May 2016 04:15:35 +0200 (CEST) Received: by mail-pf0-f196.google.com with SMTP id f144so386079pfa.2 for ; Wed, 25 May 2016 19:15:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=mzWKTt8DbjmrZHHe+qq/If3XXsEMuzyQrTgSSq1TvC8=; b=j2gHUnWLBcHwec4HQ4mJoLV1yH1ByNUXrat3/byBSO5C9Nlb51DgngONYKHSZOdRSE utNTkjXEPEerI+kYQNL3igPY63i8QRBeXjQUGfjYiGuRk98mJWTcjMZbAlw/wbhsjXhO gX6v8sICoND55OIhirCPl6ZF0vPIZHRS0pkZVN0HavdYbia6tP/npUfCWd6s48mV4Jsa AQHKqIXGyC173HMZ9wyl7jkW/FosmfAM2v0ytgsb083rI5QkZe7a0L5Ykdm63y4KD5Py zoL9TpcjzeQN/gRgKJgxpotDeJkITUM0frBzt0/uZ+OvxaqF27WyGSWqDn7U7wG8D98L My1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=mzWKTt8DbjmrZHHe+qq/If3XXsEMuzyQrTgSSq1TvC8=; b=B1ToyFiy98qrVFGOiszUqWImJCYKoXFWPEFlWfDE9DZMOK4TPCq0kz2S2xJQ+0QbPi 31+Hh66scnClWUBZd4mqTA5tv+73tvn+8brifKKEbBQVN5+PG5QuzllVr6q7hk47wogY nMucMBATQBRWGIozaAkaoolWmXO+EJk6RGLsOSjIFzH0hxDwJnq5qkc7CQCtsDTP9zpD w7wIbphTnwuiyIZvgq8L1fnTTD17YG9rAA4j/9kxACTpj/Z3AZ4cGu/WI3DgYL3t1EKg CeFxemSFhsC4aak2wTMqEbi+kEjKsktWVpmSBoBqYSQAyFyUBR1dEwZ1DIL4ywbGI76H bL3g== X-Gm-Message-State: ALyK8tKIcqvazIlmM9PdiaLsL2sj9eGVKaAHe3rylBH8hHjGJp4nSxRiEOQlBtDHXS/Zwg== X-Received: by 10.98.113.1 with SMTP id m1mr10340324pfc.150.1464228934413; Wed, 25 May 2016 19:15:34 -0700 (PDT) Received: from ala-d2121-lx1.wrs.com (unknown-157-139.windriver.com. [147.11.157.139]) by smtp.gmail.com with ESMTPSA id lz5sm15716821pab.34.2016.05.25.19.15.33 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 May 2016 19:15:33 -0700 (PDT) From: Bin Meng To: Simon Glass , U-Boot Mailing List Date: Wed, 25 May 2016 19:19:08 -0700 Message-Id: <1464229153-23917-4-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1464229153-23917-1-git-send-email-bmeng.cn@gmail.com> References: <1464229153-23917-1-git-send-email-bmeng.cn@gmail.com> Subject: [U-Boot] [PATCH v2 3/8] acpi: Pass -D__ASSEMBLY__ when compiling ASL files X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" ASL files may include various U-Boot header files, but IASL compiler does not understand any C language embedded in these header files. To reuse those header files for ASL compiling, use __ASSEMBLY__ in the header files to exclude everything that is not liked by IASL. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: - Use __ASSEMBLY__ define scripts/Makefile.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 97a09a2..e720562 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -325,7 +325,7 @@ $(obj)/%.S: $(src)/%.ttf # --------------------------------------------------------------------------- quiet_cmd_acpi_c_asl= ASL $< cmd_acpi_c_asl= \ - $(CPP) -x assembler-with-cpp -P $(UBOOTINCLUDE) -o $<.tmp $<; \ + $(CPP) -x assembler-with-cpp -D__ASSEMBLY__ -P $(UBOOTINCLUDE) -o $<.tmp $<; \ iasl -p $< -tc $<.tmp $(if $(KBUILD_VERBOSE:1=), >/dev/null); \ mv $(patsubst %.asl,%.hex,$<) $@