Message ID | 20240202195645.3224648-1-shamrocklee@posteo.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-50507-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp679337dyc; Fri, 2 Feb 2024 12:21:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEmmW3GM1rUeVhrvl0dMrMGqhvQb9cYlZUKoYxgEDI7sfdr3rCoYg4VIrDd1cIoSAaEs20k X-Received: by 2002:a05:6a00:be6:b0:6dd:82b0:1bed with SMTP id x38-20020a056a000be600b006dd82b01bedmr3151101pfu.11.1706905306436; Fri, 02 Feb 2024 12:21:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706905306; cv=pass; d=google.com; s=arc-20160816; b=nN79/Plz4sAkwZWmXfVLSOflwXp157l0FaZwWo8FmvF+ZNgnHFajiU4KNjb4BhxVMH 3l1tdzvGsj6rOCFuJARikboAeB68dV15hCmanzLdzcA4cTIEDdaVHE6IO5M8FuTlWaon zx6nanfPiiv4rqCbXnNeomh5PJEotuhQ6uFVMJnNREwS8ZedLCJyhIfUJpniKbt5ocZ5 1PvToTZ0SiC2y2hCZtZQG67P8aerbHP2T4cqNNCfiMKCGqx0WliBUY9JH+8G1AyFDzlN PqLgumVBPdEX5xFWLWnovvjczMCGd3kdHeprw9Im6Im25dVCmdgcZQbUIKrc40aHLQFH uG0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=8L33DBBndo3NokgAYjpkdsaWW74PWfcxGD0pnplvp7U=; fh=7E2+WcHrAXsf+3ZIgeuaiWUl+QhMJ46XCKITuwpeylU=; b=pnB3HSPJ7SYObtcFLVZ/DRZg8xGm93hYwCpDX51vek5SeLIpRYjGhcErFPJXtqpHdx M1A85QnhYqfNI3mLHjJax9WpGX7BERznLUAtP1FJR0wG5Heo3NDS6uoxltSwW8N5lqXO I+Lzsshn0UPfErQmLdUfLdGjMrxhfb9f0FYNnn9S7Z+kttoyXmkM0xoUBE3Aa4VoXOhI LgLPwFXMb/T2ukvh2ead6igUf3eZsmxkgmxemQCT2FCaFH3RjAKvasm48PYAo+Ls3GcL R6dPWQ2IJ1QRFK3NyfMkIRCm+2yy0PK3BAoIRlZkH7gTXmqT9dr8UM3SYMRyzv4NJ3qN PBuw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=hDqww7k1; arc=pass (i=1 spf=pass spfdomain=posteo.net dkim=pass dkdomain=posteo.net dmarc=pass fromdomain=posteo.net); spf=pass (google.com: domain of linux-kernel+bounces-50507-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50507-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net X-Forwarded-Encrypted: i=1; AJvYcCWhxTJp5FqJCZ0lHGABRM3bSj+6H51cDjzJoKnvuZisTQZUuYpT7Z1hVgH8WLZHRoLvrCzXPS5ZeMs1LLOb/SUhXG2teQ== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h37-20020a632125000000b005c65d0dd9a0si2048986pgh.503.2024.02.02.12.21.46 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 12:21:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50507-ouuuleilei=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=@posteo.net header.s=2017 header.b=hDqww7k1; arc=pass (i=1 spf=pass spfdomain=posteo.net dkim=pass dkdomain=posteo.net dmarc=pass fromdomain=posteo.net); spf=pass (google.com: domain of linux-kernel+bounces-50507-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50507-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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 51C26B27A67 for <ouuuleilei@gmail.com>; Fri, 2 Feb 2024 19:58:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 088FD81720; Fri, 2 Feb 2024 19:58:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=posteo.net header.i=@posteo.net header.b="hDqww7k1" Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCEEE15E5A3 for <linux-kernel@vger.kernel.org>; Fri, 2 Feb 2024 19:58:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.67.36.66 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706903889; cv=none; b=rzoiBW2GHh6nMxxGORnLRu7jfrd78e2PgPxQue8vDqho4Wj5bg4Dse0SiliaGs1eaXfiJDecwLDGBlbmKwrpUePv+KSTm05ncpoRIknQUrsXeTEzR96u3qu8+DT60OFrBpZUXuo5iOlmtiQa4qjj+dKLYAV89KYXfrF3zdjIfr4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706903889; c=relaxed/simple; bh=ZjzdVNfrMUY9UbVAc1VBiqKQvpy3NY8jNomBSoF8YQg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=O4snPKcRS0VMXBujyVXSCeIM0OT/PFz8tKeTxEXAuWxmkLisk4w21UCzIIMHg+wqGYs6+uhkHn3iFq4XKbpf6bQWA/ENXn/D7/+0i14CjnnioapdgAEZdkxMG8ovoSi/cH+53yF3Nm/+CISw6290kCvwFzLjOMFYGTeGFzxmsEY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=posteo.net; spf=pass smtp.mailfrom=posteo.net; dkim=pass (2048-bit key) header.d=posteo.net header.i=@posteo.net header.b=hDqww7k1; arc=none smtp.client-ip=185.67.36.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=posteo.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=posteo.net Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 37FC0240103 for <linux-kernel@vger.kernel.org>; Fri, 2 Feb 2024 20:57:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706903879; bh=ZjzdVNfrMUY9UbVAc1VBiqKQvpy3NY8jNomBSoF8YQg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=hDqww7k1xSH3YS9NyU1U28mv8gyk1ry5awu7xlodsYIIk4O2fLsbBE9+M1IFr/WQM EUCeqAHXHalRpQx4KBL+zKeqTy2FsguPk6FfbeycHb8qTOfZ1PolxAbmmodMGoF189 3CGyLU/yOj5WNm/1fw9MAg3AOZUfuo3wnXWRIotznjP91oZFPA7TdKrvbi2WzVt9X9 vsWYrR7ys9VbaeQd+aK+P9LvRFC/EOoZ7sDSxdiCTUtOyzbu8batzONrJK4N+6DNPP cSmpXl6FyfNcrapy2G0aQk1q3TkmznRJIJssQsrV9bkLaYtbZyYqpGzN8bBKHYQbDL NqKkz9q4IxgMw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TRRQW0V8Zz9rxG; Fri, 2 Feb 2024 20:57:54 +0100 (CET) From: Yueh-Shun Li <shamrocklee@posteo.net> To: Richard Weinberger <richard@nod.at>, Anton Ivanov <anton.ivanov@cambridgegreys.com>, Johannes Berg <johannes@sipsolutions.net> Cc: Yueh-Shun Li <shamrocklee@posteo.net>, linux-um@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] um: Makefile: use bash from the environment Date: Fri, 2 Feb 2024 19:56:33 +0000 Message-ID: <20240202195645.3224648-1-shamrocklee@posteo.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789819938474611729 X-GMAIL-MSGID: 1789819938474611729 |
Series |
um: Makefile: use bash from the environment
|
|
Commit Message
Yueh-Shun Li
Feb. 2, 2024, 7:56 p.m. UTC
Set Makefile SHELL to bash instead of /bin/bash for better portability.
Some systems do not install binaries to /bin, and therefore do not
provide /bin/bash. OS distributions such as NixOS and Guix System
intentionally avoid implementing the Filesystem Hierarchy Standard (FHS).
The recipies inside arch/um/Makefile don't require top-level Bash to
build, and setting "SHELL" to "bash" makes Make pick the Bash executable
from the environment[2], hence this patch.
Signed-off-by: Yueh-Shun Li <shamrocklee@posteo.net>
---
arch/um/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/um/Makefile b/arch/um/Makefile index 82f05f250634..904e2b990963 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile @@ -20,7 +20,7 @@ endif ARCH_DIR := arch/um # We require bash because the vmlinux link and loader script cpp use bash # features. -SHELL := /bin/bash +SHELL := bash MODE_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared/skas