From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39769C7EE29 for ; Fri, 9 Jun 2023 22:30:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229744AbjFIWaJ (ORCPT ); Fri, 9 Jun 2023 18:30:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbjFIWaI (ORCPT ); Fri, 9 Jun 2023 18:30:08 -0400 X-Greylist: delayed 409 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 09 Jun 2023 15:30:07 PDT Received: from out-61.mta0.migadu.com (out-61.mta0.migadu.com [IPv6:2001:41d0:1004:224b::3d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 665C3359D for ; Fri, 9 Jun 2023 15:30:07 -0700 (PDT) Date: Fri, 9 Jun 2023 18:23:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1686349396; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=pPCFu9nGwTDXVjZG93B97pSmz0rNeRzc9U/0whIt6jY=; b=hmBYHByfP4PsW2IvBN53vWJv8FytDqn2P1nfl6um7UXRewREHbziHkajaHVo++OaDPX27x eF9bceiPzOCrvRqzrdNTXQfta2lIehUIV5aEDnrNvWbeyWT8s+G7+qBxJFPQTO58yeEOzV 4Kaa3ApNAAUTLgWGWCHHIwkAAh4in0w= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Masahiro Yamada , Nick Desaulniers , Nathan Chancellor Cc: linux-kbuild@vger.kernel.org Subject: Specifying CFLAGS for a directory on the command line Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Hello kbuild maintainers & list, Years ago I used to be able to specify additional CFLAGS for a specific subdirectory on the command line, which I used for enabling gcov profiling without editing the subdirectory makefile, like so: make GCOV_PROFILE_fs_bcachefs=y But this stopped working ages ago, I believe in the 3.x era. Does anyone know if there's a more modern way to do this? Cheers, Kent