host-tools plugin: install prefixed binutils and strip binaries

pull/1480/head
Tony Theodore 8 years ago
parent bb7f5c57f5
commit ef80a64393

@ -15,12 +15,24 @@ define $(PKG)_UPDATE
echo $(binutils_VERSION)
endef
$(PKG)_PROGS := addr2line ar as c++filt dlltool dllwrap elfedit gprof \
ld.bfd ld nm objcopy objdump ranlib readelf size strings \
strip windmc windres
define $(PKG)_BUILD
$(subst --disable-werror,\
--disable-werror \
--prefix='$(PREFIX)/$(TARGET)' \
--program-prefix='$(TARGET)-' \
--host='$(TARGET)',\
$(binutils_BUILD))
$(subst install, install-strip,\
$(binutils_BUILD)))
# install unprefixed versions also
for p in $($(PKG)_PROGS); do \
cp "$(PREFIX)/$(TARGET)/bin/$(TARGET)-$$p.exe" \
"$(PREFIX)/$(TARGET)/bin/$$p.exe" ; \
done
# tools seem to be duplicates of '$(PREFIX)/$(TARGET)'
rm -rf '$(PREFIX)/$(TARGET)/$(TARGET)'

@ -40,7 +40,7 @@ define $(PKG)_BUILD
$($(PKG)_CONFIGURE_OPTS)
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
$(MAKE) -C '$(BUILD_DIR)' -j 1 install-strip
# shared libgcc isn't installed to version-specific locations
# so install correctly to simplify cleanup (see gcc.mk)

Loading…
Cancel
Save