From patchwork Tue Apr 9 16:45:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?6Ziu5q2j5pe6?= X-Patchwork-Id: 1082535 X-Patchwork-Delegate: petr.vorel@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xiaopeng.com Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44dtTK0WPBz9sSs for ; Wed, 10 Apr 2019 02:45:55 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id CC5543EA4BE for ; Tue, 9 Apr 2019 18:45:50 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [217.194.8.7]) by picard.linux.it (Postfix) with ESMTP id B30343EA45A for ; Tue, 9 Apr 2019 18:45:47 +0200 (CEST) Received: from mail142-1.mail.alibaba.com (mail142-1.mail.alibaba.com [198.11.142.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id DF82320032D for ; Tue, 9 Apr 2019 18:45:44 +0200 (CEST) X-Alimail-AntiSpam: AC=CONTINUE; BC=0.09711034|-1; CH=green; DM=CONTINUE|CONTINUE|true|0.0755621-0.0086988-0.915739; FP=0|0|0|0|0|-1|-1|-1; HT=e02c03267; MF=ruanzw@xiaopeng.com; NM=1; PH=DW; RN=1; RT=1; SR=0; TI=W4_5534816_DEFAULT_0AC26610_1554828036843_o7001c3640; Received: from WS-web (ruanzw@xiaopeng.com[W4_5534816_DEFAULT_0AC26610_1554828036843_o7001c3640]) by e02c03273.eu6 at Wed, 10 Apr 2019 00:45:20 +0800 Date: Wed, 10 Apr 2019 00:45:20 +0800 From: "=?UTF-8?B?6Ziu5q2j5pe6?=" To: "ltp" Message-ID: X-Mailer: [Alimail-Mailagent][W4_5534816][DEFAULT][Chrome] MIME-Version: 1.0 References: <1554782710-27144-1-git-send-email-ruanzw@xiaopeng.com> In-Reply-To: <1554782710-27144-1-git-send-email-ruanzw@xiaopeng.com> x-aliyun-mail-creator: W4_5534816_DEFAULT_tIVTW96aWxsYS81LjAgKFgxMTsgTGludXggeDg2XzY0KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBDaHJvbWUvNzMuMC4zNjgzLjg2IFNhZmFyaS81MzcuMzY=gK X-Virus-Scanned: clamav-milter 0.99.2 at in-7.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=FROM_EXCESS_BASE64, HTML_MESSAGE,SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-7.smtp.seeweb.it Subject: [LTP] =?utf-8?b?5Zue5aSN77yaW1BBVENIIHYxXSBpbmNsdWRlL21rL2Vudl9w?= =?utf-8?q?ost=2Emk=3A_enable_=5F=5FANDROID=5F=5F_definition_for_An?= =?utf-8?q?droid_build?= X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: =?utf-8?b?6Ziu5q2j5pe6?= Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Could anyone help me to review this patch? This is useful to cross-compile ltp for Android without specifying '-D__ANDROID__' in configure step. Thanks! Zhengwang ------------------------------------------------------------------ 发件人:Zhengwang Ruan 发送时间:2019年4月9日(星期二) 12:05 收件人:ltp 抄 送:Zhengwang Ruan 主 题:[PATCH v1] include/mk/env_post.mk: enable __ANDROID__ definition for Android build Enable the __ANDROID__ definition by default for Android build, otherwise we should manually enable it by configure command. Signed-off-by: Zhengwang Ruan Acked-by: Petr Vorel --- include/mk/env_post.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mk/env_post.mk b/include/mk/env_post.mk index 913bdf5..7953e0a 100644 --- a/include/mk/env_post.mk +++ b/include/mk/env_post.mk @@ -44,7 +44,7 @@ endif ifeq ($(ANDROID),1) # There are many undeclared functions, it's best not to accidentally overlook # them. -CFLAGS += -Werror-implicit-function-declaration +CFLAGS += -Werror-implicit-function-declaration -D__ANDROID__ LDFLAGS += -L$(top_builddir)/lib/android_libpthread LDFLAGS += -L$(top_builddir)/lib/android_librt