Pathing for diffconfig in prepare (#605)

* Pathing for diffconfig in prepare

* Pathing for diffconfig in prepare Arch specific
This commit is contained in:
Jason
2022-09-28 07:32:08 -05:00
committed by GitHub
parent ae19c0057e
commit 063aa59334

View File

@@ -1762,8 +1762,13 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\r
if [ -z "$_diffconfig_name" ]; then
echo 'No file name given, not generating config fragment.'
else (
prev_pwd="${PWD:-$(pwd)}"
cd "$_where"
if [ "$_distro" = "Arch" ] || [ "$_ispkgbuild" = "true" ]; then
prev_pwd="${PWD:-$(pwd)}/linux-src-git"
cd "$_where" || exit
else
prev_pwd="${PWD:-$(pwd)}"
cd "$_where" || exit
fi
"${prev_pwd}/scripts/diffconfig" -m "${prev_pwd}/.config.orig" "${prev_pwd}/.config" > "$_diffconfig_name"
) fi
fi