mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-19 00:21:50 +01:00
Each of 'make {menu,n,g,x}config' uses (needs) pkg-config to make sure
that other required files are present and to determine build flags
settings, but none of these check that pkg-config itself is present.
Add a check for all 4 of these targets and update
Documentation/process/changes.rst to mention 'pkg-config'.
Fixes kernel bugzilla #77511:
https://bugzilla.kernel.org/show_bug.cgi?id=77511
Signed-off-by: Randy Dunlap <[email protected]>
Cc: Bjørn Forsman <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
9 lines
200 B
Bash
9 lines
200 B
Bash
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# Check for pkg-config presence
|
|
|
|
if [ -z $(command -v pkg-config) ]; then
|
|
echo "'make *config' requires 'pkg-config'. Please install it." 1>&2
|
|
exit 1
|
|
fi
|