summaryrefslogtreecommitdiffstats
path: root/scripts/package
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-08-16 16:18:15 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2024-09-01 13:34:49 +0200
commit5b000f3cbb38c23992ee95fcd3e983ca66164eff (patch)
tree07b230958a23a71c29dd7e66a47ac5508214e44c /scripts/package
parentkbuild: pacman-pkg: move common commands to a separate function (diff)
downloadlinux-5b000f3cbb38c23992ee95fcd3e983ca66164eff.tar.xz
linux-5b000f3cbb38c23992ee95fcd3e983ca66164eff.zip
kbuild: pacman-pkg: do not override objtree
objtree is defined and exported by the top-level Makefile. I prefer not to override it. There is no need to pass the absolute path of objtree. PKGBUILD can detect it by itself. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Acked-by:  Thomas Weißschuh <linux@weissschuh.net> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Reviewed-by: Christian Heusel <christian@heusel.eu>
Diffstat (limited to 'scripts/package')
-rw-r--r--scripts/package/PKGBUILD4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/package/PKGBUILD b/scripts/package/PKGBUILD
index e2d9c2601ca9..839cd5e634d2 100644
--- a/scripts/package/PKGBUILD
+++ b/scripts/package/PKGBUILD
@@ -40,7 +40,9 @@ _prologue() {
# MAKEFLAGS from makepkg.conf override the ones inherited from kbuild.
# Bypass this override with a custom variable.
export MAKEFLAGS="${KBUILD_MAKEFLAGS}"
- cd "${objtree}"
+
+ # Kbuild works in the output directory, where this PKGBUILD is located.
+ cd "$(dirname "${BASH_SOURCE[0]}")"
}
build() {