diff mbox series

[v2] syslinux: clean old object and dependency files before do_install

Message ID 20250929025644.2085080-1-haixiao.yan.cn@windriver.com
State New
Headers show
Series [v2] syslinux: clean old object and dependency files before do_install | expand

Commit Message

Yan, Haixiao (CN) Sept. 29, 2025, 2:56 a.m. UTC
From: Haixiao Yan <haixiao.yan.cn@windriver.com>

Remove all previous .o and .d files from OBJ directories before
running do_install. This prevents stale build artifacts from
interfering with the installation of new binaries and modules,
especially after GCC upgrades that can invalidate existing dependency
files, such as:

make[4]: *** No rule to make target
'/build/tmp-glibc/work/corei7-64-wrs-linux/syslinux/6.04-pre2-r1/recipe-sysroot-native/
usr/lib/x86_64-wrs-linux/gcc/x86_64-wrs-linux/12.4.0/include/stdarg.h',
needed by 'zlib/adler32.o'.  Stop.

Signed-off-by: Haixiao Yan <haixiao.yan.cn@windriver.com>
---
 meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb | 5 -----
 1 file changed, 5 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb b/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb
index 449a75ebf8ab..59f1e936eff9 100644
--- a/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb
+++ b/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb
@@ -96,11 +96,6 @@  do_install() {
 #
 # Tasks for target which ship the precompiled bootloader and installer
 #
-do_configure:class-target() {
-	# No need to do anything as we're mostly shipping the precompiled binaries
-	:
-}
-
 do_compile:class-target() {
 	# No need to do anything as we're mostly shipping the precompiled binaries
 	: