treewide: use /usr/bin/env where appropriate
Some Unix systems (GuixSD, NixOS) do not install programs like Bash and Python to /usr/bin, and /usr/bin/env has to be used to locate these instead. Change-Id: I7546bcb881c532adc984577ecb0ee2ec4f2efe00 Signed-off-by: Yegor Timoshenko <yegortimoshenko@riseup.net> Reviewed-on: https://review.coreboot.org/28953 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
15316e2321
commit
c2e4941367
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2007-2010 by coresystems GmbH
|
# Copyright (C) 2007-2010 by coresystems GmbH
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#!/usr/bin/perl -w
|
#!/usr/bin/env perl
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
|
||||||
my $NAME = $0;
|
my $NAME = $0;
|
||||||
my $VERSION = '0.01';
|
my $VERSION = '0.01';
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#!/usr/bin/perl -w
|
#!/usr/bin/env perl
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
|
||||||
my $NAME = $0;
|
my $NAME = $0;
|
||||||
my $VERSION = '0.01';
|
my $VERSION = '0.01';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# This is an example that generates data files that are understood by the
|
# This is an example that generates data files that are understood by the
|
||||||
# k8-interpret-extended-memory-settings.pl script. Adjust the pci ids for your
|
# k8-interpret-extended-memory-settings.pl script. Adjust the pci ids for your
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/perl -w
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
my $NAME = $0;
|
my $NAME = $0;
|
||||||
my $VERSION = '0.01';
|
my $VERSION = '0.01';
|
||||||
|
@ -11,6 +11,7 @@ my $URL = "https://coreboot.org";
|
||||||
my $DEBUG = 0;
|
my $DEBUG = 0;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
|
||||||
# Run the bkdg for k8 through pdftotext first (from the poppler package)
|
# Run the bkdg for k8 through pdftotext first (from the poppler package)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# This script is used to set up a ubuntu-based live image to be used
|
# This script is used to set up a ubuntu-based live image to be used
|
||||||
# with coreboot's board_status script. It modifies the system so that
|
# with coreboot's board_status script. It modifies the system so that
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
##
|
##
|
||||||
## This file is part of the coreboot project.
|
## This file is part of the coreboot project.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
# devicetree_convert Tool to convert a DTB to a static C file
|
# devicetree_convert Tool to convert a DTB to a static C file
|
||||||
# Copyright (C) 2018 Facebook Inc.
|
# Copyright (C) 2018 Facebook Inc.
|
||||||
|
|
|
@ -6,7 +6,7 @@ CONFIG_FMD_GENPARSER ?= n
|
||||||
HOSTCC ?= $(CC)
|
HOSTCC ?= $(CC)
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
BINDIR ?= $(PREFIX)/bin
|
BINDIR ?= $(PREFIX)/bin
|
||||||
INSTALL ?= /usr/bin/install
|
INSTALL ?= /usr/bin/env install
|
||||||
OBJCOPY ?= objcopy
|
OBJCOPY ?= objcopy
|
||||||
|
|
||||||
VBOOT_SOURCE ?= $(top)/3rdparty/vboot
|
VBOOT_SOURCE ?= $(top)/3rdparty/vboot
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
PROGRAM = cbmem
|
PROGRAM = cbmem
|
||||||
ROOT = ../../src
|
ROOT = ../../src
|
||||||
CC ?= $(CROSS_COMPILE)gcc
|
CC ?= $(CROSS_COMPILE)gcc
|
||||||
INSTALL ?= /usr/bin/install
|
INSTALL ?= /usr/bin/env install
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
CFLAGS ?= -O2
|
CFLAGS ?= -O2
|
||||||
CFLAGS += -Wall -Werror
|
CFLAGS += -Wall -Werror
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# This file is part of the coreboot project.
|
# This file is part of the coreboot project.
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# This file is part of the coreboot project.
|
# This file is part of the coreboot project.
|
||||||
#
|
#
|
||||||
|
@ -14,6 +14,8 @@
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
IMAGE=$1
|
IMAGE=$1
|
||||||
|
|
||||||
if [ ! -r "$IMAGE" ]; then
|
if [ ! -r "$IMAGE" ]; then
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -O2 -Wall -W
|
CFLAGS = -O2 -Wall -W
|
||||||
PROGRAM = ectool
|
PROGRAM = ectool
|
||||||
INSTALL = /usr/bin/install
|
INSTALL = /usr/bin/env install
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
OS_ARCH = $(shell uname)
|
OS_ARCH = $(shell uname)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#Parse a log and get back the function names and line numbers
|
#Parse a log and get back the function names and line numbers
|
||||||
#Provide a log file as first argument
|
#Provide a log file as first argument
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
##
|
##
|
||||||
## This file is part of the coreboot project.
|
## This file is part of the coreboot project.
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
PROGRAM = ifdtool
|
PROGRAM = ifdtool
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
INSTALL = /usr/bin/install
|
INSTALL = /usr/bin/env install
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
CFLAGS = -O2 -g -Wall -W -Werror -I../../src/commonlib/include
|
CFLAGS = -O2 -g -Wall -W -Werror -I../../src/commonlib/include
|
||||||
LDFLAGS =
|
LDFLAGS =
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
PROGRAM = intelmetool
|
PROGRAM = intelmetool
|
||||||
|
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
INSTALL ?= /usr/bin/install
|
INSTALL ?= /usr/bin/env install
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
CFLAGS ?= -O0 -g -Wall -W -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function
|
CFLAGS ?= -O0 -g -Wall -W -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function
|
||||||
LDFLAGS += -lpci -lz
|
LDFLAGS += -lpci -lz
|
||||||
|
|
|
@ -20,7 +20,7 @@ PROGRAM = inteltool
|
||||||
top ?= $(abspath ../..)
|
top ?= $(abspath ../..)
|
||||||
|
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
INSTALL ?= /usr/bin/install
|
INSTALL ?= /usr/bin/env install
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
CFLAGS ?= -O2 -g -Wall -W
|
CFLAGS ?= -O2 -g -Wall -W
|
||||||
LDFLAGS += -lpci -lz
|
LDFLAGS += -lpci -lz
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
#============================================================================
|
#============================================================================
|
||||||
#
|
#
|
||||||
#/** @file createxbl.py
|
#/** @file createxbl.py
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
#
|
#
|
||||||
# MBN TOOLS
|
# MBN TOOLS
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
PROGRAM = k8resdump
|
PROGRAM = k8resdump
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
INSTALL = /usr/bin/install
|
INSTALL = /usr/bin/env install
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
#CFLAGS = -O2 -g -Wall -Werror
|
#CFLAGS = -O2 -g -Wall -Werror
|
||||||
CFLAGS = -Os -Wall -Werror
|
CFLAGS = -Os -Wall -Werror
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# miniconfig - utility to minimize your coreboot config files
|
# miniconfig - utility to minimize your coreboot config files
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# test to make sure the lint tests fail
|
# test to make sure the lint tests fail
|
||||||
SPACE=' '
|
SPACE=' '
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
# Copyright (C) 2018 Intel Corporation.
|
# Copyright (C) 2018 Intel Corporation.
|
||||||
# written by Naresh G Solanki<naresh.solanki@intel.com> and
|
# written by Naresh G Solanki<naresh.solanki@intel.com> and
|
||||||
# Maulik V Vaghela <maulik.v.vaghela@intel.com>
|
# Maulik V Vaghela <maulik.v.vaghela@intel.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
#
|
#
|
||||||
# This file is part of the coreboot project.
|
# This file is part of the coreboot project.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
# me_cleaner - Tool for partial deblobbing of Intel ME/TXE firmware images
|
# me_cleaner - Tool for partial deblobbing of Intel ME/TXE firmware images
|
||||||
# Copyright (C) 2016-2018 Nicola Corna <nicola@corna.info>
|
# Copyright (C) 2016-2018 Nicola Corna <nicola@corna.info>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#
|
#
|
||||||
# This file is part of the coreboot project.
|
# This file is part of the coreboot project.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#
|
#
|
||||||
# This file is part of the coreboot project.
|
# This file is part of the coreboot project.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#
|
#
|
||||||
# This file is part of the coreboot project.
|
# This file is part of the coreboot project.
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
PROGRAM = nvramtool
|
PROGRAM = nvramtool
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
INSTALL = /usr/bin/install
|
INSTALL = /usr/bin/env install
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
CFLAGS = -O2 -g -Wall -W -I. -DCMOS_HAL=1
|
CFLAGS = -O2 -g -Wall -W -I. -DCMOS_HAL=1
|
||||||
#CFLAGS = -Os -Wall
|
#CFLAGS = -Os -Wall
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -O2 -Wall -W -Werror
|
CFLAGS = -O2 -Wall -W -Werror
|
||||||
PROGRAM = pmh7tool
|
PROGRAM = pmh7tool
|
||||||
INSTALL = /usr/bin/install
|
INSTALL = /usr/bin/env install
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
|
||||||
all: $(PROGRAM)
|
all: $(PROGRAM)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# ${VERSION_NAME}: new version name
|
# ${VERSION_NAME}: new version name
|
||||||
# ${COMMIT_ID}: commit id (if not master)
|
# ${COMMIT_ID}: commit id (if not master)
|
||||||
# ${USERNAME}: username (if not default to https)
|
# ${USERNAME}: username (if not default to https)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# This file is part of the coreboot project.
|
# This file is part of the coreboot project.
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
# This file is part of the coreboot project.
|
# This file is part of the coreboot project.
|
||||||
#
|
#
|
||||||
# Copyright (C) 2018 Jonathan Neuschäfer
|
# Copyright (C) 2018 Jonathan Neuschäfer
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# SPDX-License-Identifier: GPL-2.0
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
# Manipulate options in a .config file from the command line
|
# Manipulate options in a .config file from the command line
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright 2015 Google Inc.
|
# Copyright 2015 Google Inc.
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Copyright 2016 Google Inc.
|
# Copyright 2016 Google Inc.
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/perl -w
|
#!/usr/bin/env perl
|
||||||
# (c) 2007, Joe Perches <joe@perches.com>
|
# (c) 2007, Joe Perches <joe@perches.com>
|
||||||
# created from checkpatch.pl
|
# created from checkpatch.pl
|
||||||
#
|
#
|
||||||
|
@ -11,6 +11,7 @@
|
||||||
# Licensed under the terms of the GNU GPL License version 2
|
# Licensed under the terms of the GNU GPL License version 2
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
|
||||||
my $P = $0;
|
my $P = $0;
|
||||||
my $V = '0.26';
|
my $V = '0.26';
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/perl -w
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
|
||||||
my %map;
|
my %map;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
files=`git diff --cached --name-only | grep '\.[ch]$'`
|
files=`git diff --cached --name-only | grep '\.[ch]$'`
|
||||||
if [ -z "$files" ]; then
|
if [ -z "$files" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# This file is part of the coreboot project.
|
# This file is part of the coreboot project.
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# This file is part of the coreboot project.
|
# This file is part of the coreboot project.
|
||||||
#
|
#
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
PROGRAM = superiotool
|
PROGRAM = superiotool
|
||||||
|
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
INSTALL ?= /usr/bin/install
|
INSTALL ?= /usr/bin/env install
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
|
|
||||||
# Set the superiotool version string to the output of 'git describe'.
|
# Set the superiotool version string to the output of 'git describe'.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Creates `./util/README.md` and `./Documentation/Util.md` of description files
|
# Creates `./util/README.md` and `./Documentation/Util.md` of description files
|
||||||
# in `./util` subdirectories
|
# in `./util` subdirectories
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
PROGRAM = viatool
|
PROGRAM = viatool
|
||||||
|
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
INSTALL ?= /usr/bin/install
|
INSTALL ?= /usr/bin/env install
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
CFLAGS ?= -O2 -g -Wall -W -I$(CURDIR)
|
CFLAGS ?= -O2 -g -Wall -W -I$(CURDIR)
|
||||||
LDFLAGS += -lpci -lz
|
LDFLAGS += -lpci -lz
|
||||||
|
|
Loading…
Reference in New Issue