Commit 8b38b5de authored by Adam Wujek's avatar Adam Wujek 💬

buildroot: use nm compiled in buildroot

Remove binaries/usr/lib/libbfd-2.21.1.so and /usr/bin/nm from the repo.
Instead use the compiled versions in buildroot.

Patch the installation rule to install only "nm", when
PACKAGE_BINUTILS_TARGET is not used(!).
libbfd-2.21.1.so is installed by default by the installation rule of
PACKAGE_BINUTILS.

Binary nm was added in the commit:
d2a486cc rootfs_override: add /usr/bin/nm and its libbfd
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 2de2701d
......@@ -525,7 +525,8 @@ BR2_PACKAGE_STRACE=y
#
# Development tools
#
# BR2_PACKAGE_BINUTILS is not set
BR2_PACKAGE_BINUTILS=y
# BR2_PACKAGE_BINUTILS_TARGET is not set
# BR2_PACKAGE_BSDIFF is not set
# BR2_PACKAGE_CHECK is not set
BR2_PACKAGE_CMAKE_ARCH_SUPPORTS=y
......
From 3b3cc3f24f3d86403abd3160e1285f6bc23e9d9d Mon Sep 17 00:00:00 2001
From: Adam Wujek <adam.wujek@cern.ch>
Date: Fri, 13 May 2016 16:55:34 +0200
Subject: [PATCH] package/binutils: install nm on the target
We don't need other binaries from the binutils package for wr-switch.
Library needed by nm (libbfd-2.24.so) is installed when BR2_PACKAGE_BINUTILS is
selected.
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
---
package/binutils/binutils.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk
index ca39f0b..7ea35fe 100644
--- a/package/binutils/binutils.mk
+++ b/package/binutils/binutils.mk
@@ -101,6 +101,8 @@ ifneq ($(BR2_PACKAGE_BINUTILS_TARGET),y)
define BINUTILS_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/bfd DESTDIR=$(TARGET_DIR) install
$(MAKE) -C $(@D)/libiberty DESTDIR=$(STAGING_DIR) install
+# also install nm
+ $(INSTALL) -m 755 $(@D)/binutils/nm-new $(TARGET_DIR)/usr/bin/nm
endef
endif
--
1.9.1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment