blob: 3a9c125750083a706b0ad4d0d334243b176efcd8 [file] [log] [blame]
Matt Ploetzc19ce762016-09-01 18:18:56 -05001################################################################################
2#
3# ppe42-binutils
4#
5################################################################################
6
7PPE42_BINUTILS_VERSION ?= 5b161fc30519a965f16e7e73c3410a388140cba1
8PPE42_BINUTILS_SITE ?= $(call github,open-power,ppe42-binutils,$(PPE42_BINUTILS_VERSION))
9PPE42_BINUTILS_LICENSE = GPLv3+
10
11PPE42_BINUTILS_DEPENDENCIES = host-binutils
12
13PPE42_BINUTILS_DIR = $(STAGING_DIR)/ppe42-binutils
14PPE42_BINUTILS_BIN = $(STAGING_DIR)/ppe42-binutils/linux
15
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 && \
24 make configure-host && \
25 make LDFLAGS=-all-static CFLAGS=-Wno-error=unused-value
26endef
27
28define HOST_PPE42_BINUTILS_INSTALL_CMDS
29 bash -c 'cd $(@D) && make install'
30endef
31
32$(eval $(host-generic-package))