package/linux-tools: rtla: Pass TARGET_LD to the make arguments
In Linux v6.8, the rtla Makefile was rewritten :
01474dc706ca ("tools/rtla: Use tools/build makefiles to build rtla")
The new Makefile uses default linker values, so the host linker being used to
produce the final rtla binary.
This results in the following error :
ld: [...] trace.o: error adding symbols: file in wrong format
Add LD=$(TARGET_LD) to the RTLA_MAKE_OPTS to fix rtla cross-compilation.
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
(cherry picked from commit f28f34e200)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
78e4c8ebf4
commit
f6f69ba11b
@@ -9,6 +9,7 @@ LINUX_TOOLS += rtla
|
||||
RTLA_DEPENDENCIES = host-pkgconf libtracefs
|
||||
RTLA_MAKE_OPTS = $(LINUX_MAKE_FLAGS) \
|
||||
CC=$(TARGET_CC) \
|
||||
LD=$(TARGET_LD) \
|
||||
EXTRA_CFLAGS="-D_GNU_SOURCE" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
PKG_CONFIG_PATH=$(STAGING_DIR)/usr/lib/pkgconfig
|
||||
|
||||
Reference in New Issue
Block a user