From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755276AbbLaDN3 (ORCPT ); Wed, 30 Dec 2015 22:13:29 -0500 Received: from mail-pf0-f178.google.com ([209.85.192.178]:33192 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752168AbbLaDNY (ORCPT ); Wed, 30 Dec 2015 22:13:24 -0500 To: lkml , linux-api@vger.kernel.org Cc: Michael Ellerman , Mark Brown , Kevin Hilman , Shuah Khan , Tyler Baker , dvhart@infradead.org, Bamvor Zhang Jian From: Bamvor Jian Zhang Subject: [RFD] How to support KBUILD_OUTPUT for kselftest? Message-ID: <56849D4B.6010008@linaro.org> Date: Thu, 31 Dec 2015 11:13:15 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I am trying to improve cross compiling support for kselftest recently. Right now I am stuck when I want to enable KBUILD_OUTPUT(O=xxx). It exist in wiki of kselftest[1]. Hope it is not a duplicated work. It seems that only perf tools(tools/perf) support it. And I could know that the following Makefile are called when building perf: tools/Makefile tools/perf/Makefile tools/perf/Makefile.perf tools/build/Makefile.build But I could not get the idea that how to do it for kselftest. Is there any existed infrastructure I could use? I am appreciated if there is any suggestions or ideas. Thanks in advance. Regards Bamvor [1] https://kselftest.wiki.kernel.org/support_cross-compilation