summaryrefslogtreecommitdiffstats
path: root/plugins/examples/host-toolchain/binutils-host.mk
blob: bed45eaccd97924ac372393c9cab7798281072b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# This file is part of MXE.
# See index.html for further information.

PKG             := binutils-host
$(PKG)_IGNORE    = $(binutils_IGNORE)
$(PKG)_VERSION   = $(binutils_VERSION)
$(PKG)_CHECKSUM  = $(binutils_CHECKSUM)
$(PKG)_SUBDIR    = $(binutils_SUBDIR)
$(PKG)_FILE      = $(binutils_FILE)
$(PKG)_URL       = $(binutils_URL)
$(PKG)_URL_2     = $(binutils_URL_2)
$(PKG)_DEPS     := gcc

define $(PKG)_UPDATE
    echo $(binutils_VERSION)
endef

define $(PKG)_BUILD
    $(subst --disable-werror,\
            --disable-werror \
            --prefix='$(PREFIX)/$(TARGET)' \
            --host='$(TARGET)',\
    $(binutils_BUILD))

    # tools seem to be duplicates of '$(PREFIX)/$(TARGET)'
    rm -rf '$(PREFIX)/$(TARGET)/$(TARGET)'
endef