blob: 90abbf4897ca454b0021e9759137b6e3c3cb3a4e [file] [log] [blame]
Matt Ploetzc19ce762016-09-01 18:18:56 -05001################################################################################
2#
3# ppe42-binutils
4#
5################################################################################
6
Klaus Heinrich Kiwi0b9616d2019-10-29 18:28:45 -03007PPE42_BINUTILS_VERSION ?= c615a89c5beb032cbb00bf0c3e670319b2bbd4f5
Matt Ploetzc19ce762016-09-01 18:18:56 -05008PPE42_BINUTILS_SITE ?= $(call github,open-power,ppe42-binutils,$(PPE42_BINUTILS_VERSION))
9PPE42_BINUTILS_LICENSE = GPLv3+
10
11PPE42_BINUTILS_DEPENDENCIES = host-binutils
12
Klaus Heinrich Kiwib64ca282020-05-12 14:42:44 -030013PPE42_BINUTILS_DIR = $(HOST_DIR)/$(PPE42_TOOLCHAIN_DIR)
14PPE42_BINUTILS_BIN = $(HOST_DIR)/$(PPE42_TOOLCHAIN_BIN)
Matt Ploetzc19ce762016-09-01 18:18:56 -050015
16define HOST_PPE42_BINUTILS_BUILD_CMDS
17 cd $(@D) && \
18 ./configure --prefix=$(PPE42_BINUTILS_DIR) \
19 --exec-prefix=$(PPE42_BINUTILS_BIN) \
20 --target=powerpc-eabi \
21 --enable-shared \
22 --enable-64-bit-bfd \
23 && \
Stewart Smithaa697d02017-02-17 18:49:10 +110024 $(MAKE) configure-host && \
25 $(MAKE) LDFLAGS=-all-static CFLAGS=-Wno-error
Matt Ploetzc19ce762016-09-01 18:18:56 -050026endef
27
28define HOST_PPE42_BINUTILS_INSTALL_CMDS
29 bash -c 'cd $(@D) && make install'
30endef
31
32$(eval $(host-generic-package))