reboot-mode: put the build artifacts in ${B}
PATCH 1/1 reboot-mode: put the build artifacts in ${B}
From: Bartosz Golaszewski <[email protected]>
We should output the compiled executables into ${B} and install them from it as well. Currently we put the build objects in the source directory. While at it: don't assume we're already in the source directory and instead prepend the source file with ${S}.
--- meta-oe/recipes-support/reboot-mode/reboot-mode_git.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-support/reboot-mode/reboot-mode_git.bb +2 -2
@@ -10,9 +10,9 @@ SRCREV = "84831b20512abd9033414ca5f5a023f333525335" S = "${WORKDIR}/git" do_compile() { - ${CC} ${CFLAGS} ${LDFLAGS} reboot-mode.c -o reboot-mode + ${CC} ${CFLAGS} ${LDFLAGS} ${S}/reboot-mode.c -o ${B}/reboot-mode } do_install() { - install -D -m 0755 ${S}/reboot-mode ${D}${bindir}/reboot-mode + install -D -m 0755 ${B}/reboot-mode ${D}${bindir}/reboot-mode }
Signature · 1 line
2.37.2
Quoted 7 lines · Bartosz Golaszewski via lists.openembedded.org
From: Bartosz Golaszewski <[email protected]>
We should output the compiled executables into ${B} and install them from it as well. Currently we put the build objects in the source directory. While at it: don't assume we're already in the source directory and instead prepend the source file with ${S}.
By default B=${S}, so this hasn’t changed anything.
Ross
Quoted 5 lines · Ross Burton
Quoted 3 lines · Bartosz Golaszewski via lists.openembedded.org
From: Bartosz Golaszewski <[email protected]>
Quoted 8 lines
Quoted 4 lines
We should output the compiled executables into ${B} and install them from it as well. Currently we put the build objects in the source directory. While at it: don't assume we're already in the source directory and instead prepend the source file with ${S}.
By default B=${S}, so this hasn’t changed anything.
Ross
I'd say it's still more semantically correct, no?
Bart
Quoted 12 lines · Bartosz Golaszewski
Quoted 10 lines · Ross Burton
Quoted 7 lines · Bartosz Golaszewski via lists.openembedded.org
From: Bartosz Golaszewski <[email protected]>
We should output the compiled executables into ${B} and install them from it as well. Currently we put the build objects in the source directory. While at it: don't assume we're already in the source directory and instead prepend the source file with ${S}.
Quoted 5 lines
Quoted 3 lines
By default B=${S}, so this hasn’t changed anything.
Ross
I'd say it's still more semantically correct, no?
Personally, I prefer to use S/B only in the case where they’re actually different directories and the latter has been wiped clean on every build.
Ross