Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1636506rdd; Thu, 11 Jan 2024 05:16:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHglY4wnEoTJdKwnQZhrwzZq+P+HD+j0ItNrqW5rwwJ7nZRFP9oxckQMoJq2l8PhrV3BuvD X-Received: by 2002:a17:902:650f:b0:1d4:f32f:16bc with SMTP id b15-20020a170902650f00b001d4f32f16bcmr942847plk.123.1704979014265; Thu, 11 Jan 2024 05:16:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704979014; cv=none; d=google.com; s=arc-20160816; b=vlPqMil2ivwQu+wCzUvtX8VxOfXIqeUX1CqUzXnduWzfl+nYioRPEIzYW4hMctOAov B1CJ5c+XueCSws8K9Yc15I0CUqVdtuYTQQntKZD8PssdAWYlmjhoh9tnbk1mpXpZTFrB APBzkotw5GLm7HyDje4fK4bTowVXBFxKcHGHndq3XIUUUf9mGjr9B5P6YO8/gqUYwsfe 44Phu9Iu3sDMPi9w+ys2xKPADfTy1gTdeAJEZ4kjyDXFdZ8vJQdPwvwveep6yAcM9kb5 EoW5ILYg69/E45mdnRVkmwebi4zReMsFu1oMuyQfDmd5IN01CdfOb11Y2bfFdRYBr2Jr cKZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YCNCVeMrlWJxf5qX+E5fJGrbwnZ87NzyDtVjQyYpgQk=; fh=PDL/vpm4ihEg9HEr48sijE34s5dmcSiCE94s3ftM334=; b=kjzbXEcbZdAq2MIuMQK9i+j48l9R9mA81k/6KEKyaYfSe06CDyUKciV4ajVkEa5avo 3l4LXNjwWykzVGc4BTV6BqS62Rb5MEoszuGVxiHGPTkO9HpenbVJD3qLH5/Vtyb20Lea 6LdwkQnIO7Ng4BZIlWbQJjdZfpI/GQ4F8pgrL1Za8AvxCGaSMCcGDyQYutOKLDknPjXu 5lBT+O2YtDaIAPssoMoApQsfr/MRs25rONzUvD1yxnuSVdUISuQqdCsuNBTxUVvsYnmF HN4wcss8Vpp+GdaGkv0i5aKpBtkKK/pNTDRkvwkDsKqwQ7Uk5WPnZjBYFuzHuE2cdjL3 gBJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=UTZd9lDa; spf=pass (google.com: domain of linux-kernel+bounces-23626-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23626-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x11-20020a170902ec8b00b001d39bf446f8si1140159plg.232.2024.01.11.05.16.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 05:16:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23626-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=UTZd9lDa; spf=pass (google.com: domain of linux-kernel+bounces-23626-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23626-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9FA2FB242AC for ; Thu, 11 Jan 2024 13:14:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59184171C5; Thu, 11 Jan 2024 13:14:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="UTZd9lDa" Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E377F15EBE for ; Thu, 11 Jan 2024 13:14:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a28e31563ebso565375866b.2 for ; Thu, 11 Jan 2024 05:14:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1704978863; x=1705583663; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=YCNCVeMrlWJxf5qX+E5fJGrbwnZ87NzyDtVjQyYpgQk=; b=UTZd9lDafTlUTQtNY6vQS/PQVO9sDK+3DpFc++J83gZ+R2H515eoPglREqAYxvqTna HkMoIQI3TzyOob/RqNDNsgusv9WFsEjKaR+4jNlGzPvwInOnn2aEMBcFC3uV/PIxlneY A6xzWOHB3oqdDD+pjZrpodZs7L1TJOH4M9NZAy/L89qSESAt24znxuAC31ApRNwF51Wo OYBsc+FVsHWfx973FShGgNR0gRTL4SJ9srabe4bD9MhjAfozu16nDGyo6NwHBVC+UW2F dQODLnXuUOSUhZjelytJNSK+dtVtIeXb9GRBgxRBECReTHLf1XB56mq/j/K7d9e3eTia 1d+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704978863; x=1705583663; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YCNCVeMrlWJxf5qX+E5fJGrbwnZ87NzyDtVjQyYpgQk=; b=vYqh4vodk6bhWJOJA7Cul7kyLBGJ1+GT9BxrcWVufc9UzzAF3tp65smSB43v6pN6Af YEjWBp1TR+npghGp/AKL3MWfKJSXESiGEcPD1c5chagltGlQtO8D3lZj7pKYiNMOE+OI DmyRN4G30kwoEf6qKFhY/mGwlv4bU79va8bcaHkXnJ5XQftExaInXgKczOVfxEoiiHyg l3bUiWm+R9+eyuRQBWtRLdEP4wVFvv/7ppm6pNkHXYBMPH/NIXUIEUFCnIDXT7/6cOqv pPC3OrUO+HUiqdvPzFK5so3gMZTzAC4xXWYouWl3oxaU2l0f0LHUYYw9ZWcjHAs0xSpW kzdw== X-Gm-Message-State: AOJu0Yw3URF+m/OvXBn0TUvsdUWKJdgjTiOIafPRVV6MvAjAaba7SOm4 STrKh28a06pzfbMiKbgxJAR24P7qwPpZYA== X-Received: by 2002:a17:906:6a05:b0:a28:ac84:5d52 with SMTP id qw5-20020a1709066a0500b00a28ac845d52mr782286ejc.2.1704978863223; Thu, 11 Jan 2024 05:14:23 -0800 (PST) Received: from alley ([176.114.240.50]) by smtp.gmail.com with ESMTPSA id u3-20020a1709064ac300b00a269b4692a9sm568895ejt.84.2024.01.11.05.14.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 05:14:23 -0800 (PST) Date: Thu, 11 Jan 2024 14:14:20 +0100 From: Petr Mladek To: Marcos Paulo de Souza Cc: Shuah Khan , Jonathan Corbet , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Joe Lawrence , linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, live-patching@vger.kernel.org Subject: Re: [PATCH v5 1/3] kselftests: lib.mk: Add TEST_GEN_MODS_DIR variable Message-ID: References: <20240109-send-lp-kselftests-v5-0-364d59a69f12@suse.com> <20240109-send-lp-kselftests-v5-1-364d59a69f12@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240109-send-lp-kselftests-v5-1-364d59a69f12@suse.com> On Tue 2024-01-09 21:24:54, Marcos Paulo de Souza wrote: > Add TEST_GEN_MODS_DIR variable for kselftests. It can point to > a directory containing kernel modules that will be used by > selftest scripts. > > The modules are built as external modules for the running kernel. > As a result they are always binary compatible and the same tests > can be used for older or newer kernels. > > The build requires "kernel-devel" package to be installed. > For example, in the upstream sources, the rpm devel package > is produced by "make rpm-pkg" > > The modules can be built independently by > > make -C tools/testing/selftests/livepatch/ > > or they will be automatically built before running the tests via > > make -C tools/testing/selftests/livepatch/ run_tests > > Note that they are _not_ built when running the standalone > tests by calling, for example, ./test-state.sh. > > Along with TEST_GEN_MODS_DIR, it was necessary to create a new install > rule. INSTALL_MODS_RULE is needed because INSTALL_SINGLE_RULE would > copy the entire TEST_GEN_MODS_DIR directory to the destination, even > the files created by Kbuild to compile the modules. The new install > rule copies only the .ko files, as we would expect the gen_tar to work. > > Reviewed-by: Joe Lawrence > Signed-off-by: Marcos Paulo de Souza I am not export on kbuild. But it looks reasonable and works for me. Reviewed-by: Petr Mladek Best Regards, Petr