Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1655280pxm; Sat, 26 Feb 2022 22:46:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJy92c1KhpAgt+iTFUNBWMdS7MBCM00O/1xiZSeW5WEdpcbhxrRtYBIBB7jWUvmXRc/Zy4RO X-Received: by 2002:a05:6402:90a:b0:408:4f50:c566 with SMTP id g10-20020a056402090a00b004084f50c566mr13954934edz.41.1645944374957; Sat, 26 Feb 2022 22:46:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645944374; cv=none; d=google.com; s=arc-20160816; b=Po464fjEjIngnJAccl+N7KqbjQg4mg5qxtw5jcLr5SXP/d/6xZkZLsZzfWGG3ZwMzT GW4zPal8PR+ky86+SRH5LHwWHGcJqM7kLwJPa81sMqAxnGbronbh7Y5i2uW6rMA0w6NH 2bBxdZ2CEfnBfPg+9MaHbIGqfnvF2WBUMdY+YiSvJtxYxVSbfNp92GVcmvUDrJcaM2FY VNB79k8+1ryk9EQtYvW6i1w7iGXr549WSF5s8bmdv6YOMF4H8Gv+89woaUoN9IIqC110 TfPNjvOnkQuG0YEag9uDdqhM88LQW8QyZr1tbOvxjBhBmAHdXf2tSM9II9562ff+jsSx SgHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TgVfnSnXEcGoaDv3DM9kOZpMqyYLQA90eGzp4dL0JZs=; b=z6VAxXErY3sxIZdOLxcy1DBHhwAqO3fwTCGtZxjKAPfJhapmNOj3eHe5AA1xtY+An/ d5Zy5oG34O9WFLFZqNmX8wG27Fjy2UtBsWUa9FjULiO1xS8WxzlxlSiIjKtOhvPrHIsQ up1s8lRRa29K0kJTmF+EGdEAsy+on28XmZTKOuKfCyO35+F5JZQgI8qjwrlRFkzrPuKA fvdFMpMXk4TerEPZloI9m2q5EI8GH+sCSNdik7rGdFok4ufKI/mZGsCNZPuWRpoptXON qdETS00324RLJ6VSeuF8Blq4I8WQPolUZKP+3lcvrJgfcM7ocKeMkOjZoolMymccGzZE 7PQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=xlKJWjDo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di12-20020a170906730c00b006d041960f06si4320021ejc.461.2022.02.26.22.45.52; Sat, 26 Feb 2022 22:46:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=xlKJWjDo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230009AbiB0FyY (ORCPT + 99 others); Sun, 27 Feb 2022 00:54:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbiB0FyW (ORCPT ); Sun, 27 Feb 2022 00:54:22 -0500 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8ECD10D5 for ; Sat, 26 Feb 2022 21:53:46 -0800 (PST) Received: by mail-pf1-x42c.google.com with SMTP id x18so8238960pfh.5 for ; Sat, 26 Feb 2022 21:53:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TgVfnSnXEcGoaDv3DM9kOZpMqyYLQA90eGzp4dL0JZs=; b=xlKJWjDoLItSB7uebqRIRgwMwUpLQQOwXuhT42MOPQetqYKz/r7jt+jDjrhmys+NIL bxQxutaG+4uSijCSwlTS7oSEYwAtfng3w3oj5UlsfifTCjW0gJHUPtLd3V5p76rIfygr JORzsALKtqbjIvDsXYe9V8iqZND4/COSCaIE4UO0IuXNV8rhSstCSPx2HlGPXojTdl1u P/+jy/GFhqtpdv/55b3cu3aw7Aslf8cytdFa6vnF7uGPT+o8wrNLJ7RDiggWufEIEIFC j0EWNsuONnYZwoquElZ2efYf7Twk4bRILvC9euEdM4ljA2xKlft33Jfr/BeiLsX44eW8 Mf5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TgVfnSnXEcGoaDv3DM9kOZpMqyYLQA90eGzp4dL0JZs=; b=bSVJRY4RtPIF1KGAMjaJSeUf/nmqQILyqWSKGeVIFhI1Ldse8SrKvhfRL0LPPgjoFz oPlXML0LKqu/xfsnN59lYQLMdO4CwUykmyt6pXhVehzGzNqZgny16VIE6f7zuN/ZrTt4 1V5FolSI4aWWQLKRX4aUUqBUCjcoDtVv8tXAEE72TuHNK7yORJ9KMpoQ2hGvkUykh0a5 Pof2jAn2uSxqjkbuKwYd6Gpzl3of6J/Gguy2J47AtMQbqfQdSKRFwyZYucf+znsFPCcU 4XwvC6zo5Svu+ixkwDDJG9SSKMVkaE6drrRxYIB15UR2YGDh7YOvuW5V2fiWTvQ1BBt+ j+aw== X-Gm-Message-State: AOAM533fa3NGm89CW73y7ry9SSNjiGIMPi8nh4rTquB8gxKY/SnBegtH AILEikQIdbg21WAi8i64ZxmwMQ== X-Received: by 2002:aa7:9902:0:b0:4e1:375c:99f6 with SMTP id z2-20020aa79902000000b004e1375c99f6mr15482327pff.44.1645941226266; Sat, 26 Feb 2022 21:53:46 -0800 (PST) Received: from localhost.localdomain ([2409:8a28:e6f:a720:d522:416f:1b2a:d253]) by smtp.gmail.com with ESMTPSA id j9-20020a056a00234900b004f3b1c23497sm8547647pfj.101.2022.02.26.21.53.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 21:53:45 -0800 (PST) From: Chengming Zhou To: akpm@linux-foundation.org, shuah@kernel.org Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Chengming Zhou Subject: [PATCH 1/2] kselftest/vm: override TARGETS from arguments Date: Sun, 27 Feb 2022 13:53:29 +0800 Message-Id: <20220227055330.43087-1-zhouchengming@bytedance.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FROM_FMBLA_NEWDOM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We can specify which testcases to build using TARGETS argument, for example: make -C tools/testing/selftests TARGETS=vm, cause the ordinary assignment of TARGETS in Makefile will be ignored. So we need to use override directive to change that. Signed-off-by: Chengming Zhou --- tools/testing/selftests/vm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile index 1607322a112c..0b330a5b1840 100644 --- a/tools/testing/selftests/vm/Makefile +++ b/tools/testing/selftests/vm/Makefile @@ -53,7 +53,7 @@ CAN_BUILD_I386 := $(shell ./../x86/check_cc.sh $(CC) ../x86/trivial_32bit_progra CAN_BUILD_X86_64 := $(shell ./../x86/check_cc.sh $(CC) ../x86/trivial_64bit_program.c) CAN_BUILD_WITH_NOPIE := $(shell ./../x86/check_cc.sh $(CC) ../x86/trivial_program.c -no-pie) -TARGETS := protection_keys +override TARGETS := protection_keys BINARIES_32 := $(TARGETS:%=%_32) BINARIES_64 := $(TARGETS:%=%_64) -- 2.20.1