Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753491AbdC1AUJ convert rfc822-to-8bit (ORCPT ); Mon, 27 Mar 2017 20:20:09 -0400 Received: from ozlabs.org ([103.22.144.67]:34867 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752773AbdC1AUI (ORCPT ); Mon, 27 Mar 2017 20:20:08 -0400 From: Michael Ellerman To: Darren Hart , Linux Kernel Mailing List Cc: linux-kselftest@vger.kernel.org, bamvor.zhangjian@huawei.com, Shuah Khan , stable@vger.kernel.org Subject: Re: [PATCH] selftests/futex: Fix build error with OUTPUT variable In-Reply-To: <20170324161854.GA6958@fury> References: <20170324161854.GA6958@fury> User-Agent: Notmuch/0.21 (https://notmuchmail.org) Date: Tue, 28 Mar 2017 11:19:25 +1100 Message-ID: <87efxi8d82.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1193 Lines: 32 Darren Hart writes: > The use of $$OUTPUT in the target shell commands resulted in an empty > string followed by an absolute path for which mkdir failed: > > $ make -C tools/testing/selftests/futex > make: Entering directory '/home/dvhart/source/linux/linux-pdx86/tools/testing/selftests/futex' > Makefile:36: warning: overriding recipe for target 'clean' > ../lib.mk:55: warning: ignoring old recipe for target 'clean' > for DIR in functional; do \ > BUILD_TARGET=$OUTPUT/$DIR; \ > mkdir $BUILD_TARGET -p; \ > make OUTPUT=$BUILD_TARGET -C $DIR all;\ > done > mkdir: cannot create directory ‘/functional’: Permission denied > > Replace $$OUTPUT with $(OUTPUT) when referring to the Makefile OUTPUT > variable. The above make command now completes successfully. > > Fixes: a8ba798bc8ec ("selftests: enable O and KBUILD_OUTPUT") > Signed-off-by: Darren Hart (VMware) > Cc: linux-kselftest@vger.kernel.org > Cc: bamvor.zhangjian@huawei.com > Cc: Shuah Khan > Cc: # 4.10.x- The OUTPUT support only went into v4.11-rc1, so I don't see why you need a stable tag? Change looks good though. cheers