mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
committed by
Christian Helmuth
parent
6b3c79f674
commit
8903179537
@@ -1 +1 @@
|
|||||||
42eff4ba260ed74d0c144e58498e186e98b2046b
|
3edd0cb727069ae91777496a581e7dc7628ec4a8
|
||||||
|
|||||||
@@ -7,3 +7,18 @@ SHA(binutils) := b46cc90ebaba7ffcf6c6d996d60738881b14e50d
|
|||||||
SIG(binutils) := ${URL(binutils)}.sig
|
SIG(binutils) := ${URL(binutils)}.sig
|
||||||
KEY(binutils) := GNU
|
KEY(binutils) := GNU
|
||||||
DIR(binutils) := src/noux-pkg/binutils
|
DIR(binutils) := src/noux-pkg/binutils
|
||||||
|
|
||||||
|
PATCHES := $(addprefix ${DIR(binutils)}/patches/, \
|
||||||
|
$(shell cat $(REP_DIR)/${DIR(binutils)}/patches/series))
|
||||||
|
PATCH_OPT := -p1 -d ${DIR(binutils)}
|
||||||
|
|
||||||
|
AUTOCONF := autoconf2.64
|
||||||
|
|
||||||
|
$(call check_tool,$(AUTOCONF))
|
||||||
|
|
||||||
|
default: _patch
|
||||||
|
@#
|
||||||
|
@# Re-generate configure scripts
|
||||||
|
@#
|
||||||
|
$(VERBOSE)cd ${DIR(binutils)}/bfd; $(AUTOCONF)
|
||||||
|
$(VERBOSE)touch $@
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
6f36711bdcf68dc66357563c8429cd29d8e92003
|
252baf48de6641bad2af9ea82c716a4e50c1e74d
|
||||||
|
|||||||
@@ -8,12 +8,9 @@ SIG(gcc) := ${URL(gcc)}.sig
|
|||||||
KEY(gcc) := GNU
|
KEY(gcc) := GNU
|
||||||
DIR(gcc) := src/noux-pkg/gcc
|
DIR(gcc) := src/noux-pkg/gcc
|
||||||
|
|
||||||
GENODE_DIR := $(REP_DIR)/../..
|
PATCHES := $(addprefix ${DIR(gcc)}/patches/, \
|
||||||
PATCHES_DIR := $(GENODE_DIR)/tool/patches/gcc-$(VERSION)
|
$(shell cat $(REP_DIR)/${DIR(gcc)}/patches/series))
|
||||||
PATCHES := $(addprefix $(PATCHES_DIR)/,$(shell cat $(PATCHES_DIR)/series)) \
|
PATCH_OPT := -p1 -d ${DIR(gcc)}
|
||||||
$(REP_DIR)/src/noux-pkg/gcc/build.patch \
|
|
||||||
$(REP_DIR)/src/noux-pkg/gcc/arm.patch
|
|
||||||
PATCH_OPT := -p1 -d ${DIR(gcc)}
|
|
||||||
|
|
||||||
AUTOCONF := autoconf2.64
|
AUTOCONF := autoconf2.64
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
4d172e5273a79dd9b3da41eff846f945719e4ee3
|
b3ce3adb094fd871ca90e7d6b51912bd8140d8d0
|
||||||
|
|||||||
@@ -8,12 +8,6 @@ SIG(gdb) := ${URL(gdb)}.sig
|
|||||||
KEY(gdb) := GNU
|
KEY(gdb) := GNU
|
||||||
DIR(gdb) := src/noux-pkg/gdb
|
DIR(gdb) := src/noux-pkg/gdb
|
||||||
|
|
||||||
GENODE_DIR := $(REP_DIR)/../..
|
PATCHES := $(addprefix ${DIR(gdb)}/patches/, \
|
||||||
PATCHES_DIR := $(GENODE_DIR)/tool/patches/gdb-$(VERSION)
|
$(shell cat $(REP_DIR)/${DIR(gdb)}/patches/series))
|
||||||
PATCHES := $(addprefix $(PATCHES_DIR)/,$(shell cat $(PATCHES_DIR)/series)) \
|
PATCH_OPT := -p1 -d ${DIR(gdb)}
|
||||||
$(REP_DIR)/src/app/gdb_monitor/siginfo.patch \
|
|
||||||
$(REP_DIR)/src/app/gdb_monitor/gdbserver_genode.patch \
|
|
||||||
$(REP_DIR)/src/noux-pkg/gdb/build.patch \
|
|
||||||
$(REP_DIR)/src/app/gdb_monitor/gdbserver_x86_64.patch
|
|
||||||
|
|
||||||
PATCH_OPT := -p1 -d ${DIR(gdb)}
|
|
||||||
|
|||||||
@@ -11,3 +11,5 @@ libgcc_s.patch
|
|||||||
go_libbacktrace.patch
|
go_libbacktrace.patch
|
||||||
target_libbacktrace.patch
|
target_libbacktrace.patch
|
||||||
gnu_inline_mismatch.patch
|
gnu_inline_mismatch.patch
|
||||||
|
noux_build.patch
|
||||||
|
arm.patch
|
||||||
7
repos/ports/src/noux-pkg/gdb/patches/series
Normal file
7
repos/ports/src/noux-pkg/gdb/patches/series
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
siginfo.patch
|
||||||
|
shared_library.patch
|
||||||
|
arm_single_step.patch
|
||||||
|
x86_64.patch
|
||||||
|
noux_build.patch
|
||||||
|
gdbserver_genode.patch
|
||||||
|
gdbserver_x86_64.patch
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
shared_library.patch
|
|
||||||
arm_single_step.patch
|
|
||||||
x86_64.patch
|
|
||||||
140
tool/tool_chain
140
tool/tool_chain
@@ -43,40 +43,13 @@ MAKE_OPT ?= -j4
|
|||||||
|
|
||||||
GENODE_DIR ?= $(realpath $(dir $(firstword $(MAKEFILE_LIST)))/..)
|
GENODE_DIR ?= $(realpath $(dir $(firstword $(MAKEFILE_LIST)))/..)
|
||||||
|
|
||||||
#
|
|
||||||
# Download locations
|
|
||||||
#
|
|
||||||
|
|
||||||
DOWNLOAD_MIRROR ?= ftp://ftp.fu-berlin.de
|
|
||||||
GCC_DOWNLOAD_URL = $(DOWNLOAD_MIRROR)/gnu/gcc
|
|
||||||
BINUTILS_DOWNLOAD_URL = $(DOWNLOAD_MIRROR)/gnu/binutils
|
|
||||||
GDB_DOWNLOAD_URL = $(DOWNLOAD_MIRROR)/gnu/gdb
|
|
||||||
GMP_DOWNLOAD_URL = $(DOWNLOAD_MIRROR)/gnu/gmp
|
|
||||||
MPFR_DOWNLOAD_URL = $(DOWNLOAD_MIRROR)/gnu/mpfr
|
|
||||||
MPC_DOWNLOAD_URL ?= http://www.multiprecision.org/mpc/download
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Tool versions and install location
|
# Tool versions and install location
|
||||||
#
|
#
|
||||||
|
|
||||||
GCC_VERSION = 4.9.2
|
GCC_VERSION = 4.9.2
|
||||||
BINUTILS_VERSION = 2.25
|
BINUTILS_VERSION = 2.25
|
||||||
GDB_VERSION = 7.3.1
|
|
||||||
GMP_VERSION = 5.0.2
|
|
||||||
MPFR_VERSION = 3.1.0
|
|
||||||
MPC_VERSION = 0.9
|
|
||||||
INSTALL_LOCATION = /usr/local/genode-gcc
|
INSTALL_LOCATION = /usr/local/genode-gcc
|
||||||
DOWNLOAD_DIR = download
|
|
||||||
CONTRIB_DIR = contrib
|
|
||||||
SIGVERIFIER = $(GENODE_DIR)/tool/download_sigver
|
|
||||||
|
|
||||||
BINUTILS_DOWNLOAD_TBZ2 = binutils-$(BINUTILS_VERSION).tar.bz2
|
|
||||||
|
|
||||||
# download file name differs from dir name found within the archive
|
|
||||||
ifeq ($(BINUTILS_VERSION),2.21.1)
|
|
||||||
BINUTILS_DOWNLOAD_TBZ2 = binutils-$(BINUTILS_VERSION)a.tar.bz2
|
|
||||||
endif
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Utilities
|
# Utilities
|
||||||
@@ -293,71 +266,40 @@ endif
|
|||||||
|
|
||||||
build_all: $(GCC_INSTALLED_BINARIES) $(GDB_INSTALLED_BINARIES)
|
build_all: $(GCC_INSTALLED_BINARIES) $(GDB_INSTALLED_BINARIES)
|
||||||
|
|
||||||
$(DOWNLOAD_DIR):
|
GMP_CONTRIB_DIR = $(shell $(GENODE_DIR)/tool/ports/current gmp)/src/lib/gmp
|
||||||
$(VERBOSE)mkdir -p $@
|
|
||||||
|
|
||||||
$(DOWNLOAD_DIR)/$(BINUTILS_DOWNLOAD_TBZ2): $(DOWNLOAD_DIR)
|
$(GMP_CONTRIB_DIR)/configure:
|
||||||
$(ECHO) "$(BRIGHT_COL)downloading binutils...$(DEFAULT_COL)"
|
$(ECHO) "$(BRIGHT_COL)preparing gmp...$(DEFAULT_COL)"
|
||||||
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(BINUTILS_DOWNLOAD_URL)/$(BINUTILS_DOWNLOAD_TBZ2) && touch $@
|
$(VERBOSE)$(GENODE_DIR)/tool/ports/prepare_port gmp
|
||||||
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(BINUTILS_DOWNLOAD_URL)/$(BINUTILS_DOWNLOAD_TBZ2).sig && touch $@
|
|
||||||
$(VERBOSE)$(SIGVERIFIER) $(DOWNLOAD_DIR)/$(BINUTILS_DOWNLOAD_TBZ2) $(DOWNLOAD_DIR)/$(BINUTILS_DOWNLOAD_TBZ2).sig GNU
|
|
||||||
|
|
||||||
$(DOWNLOAD_DIR)/gcc-$(GCC_VERSION).tar.bz2: $(DOWNLOAD_DIR)
|
MPFR_CONTRIB_DIR = $(shell $(GENODE_DIR)/tool/ports/current mpfr)/src/lib/mpfr
|
||||||
$(ECHO) "$(BRIGHT_COL)downloading gcc...$(DEFAULT_COL)"
|
|
||||||
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(GCC_DOWNLOAD_URL)/gcc-$(GCC_VERSION)/gcc-$(GCC_VERSION).tar.bz2 && touch $@
|
|
||||||
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(GCC_DOWNLOAD_URL)/gcc-$(GCC_VERSION)/gcc-$(GCC_VERSION).tar.bz2.sig && touch $@
|
|
||||||
$(VERBOSE)$(SIGVERIFIER) $(DOWNLOAD_DIR)/gcc-$(GCC_VERSION).tar.bz2 $(DOWNLOAD_DIR)/gcc-$(GCC_VERSION).tar.bz2.sig GNU
|
|
||||||
|
|
||||||
$(DOWNLOAD_DIR)/gmp-$(GMP_VERSION).tar.bz2: $(DOWNLOAD_DIR)
|
$(MPFR_CONTRIB_DIR)/configure:
|
||||||
$(ECHO) "$(BRIGHT_COL)downloading gmp...$(DEFAULT_COL)"
|
$(ECHO) "$(BRIGHT_COL)preparing mpfr...$(DEFAULT_COL)"
|
||||||
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(GMP_DOWNLOAD_URL)/gmp-$(GMP_VERSION).tar.bz2 && touch $@
|
$(VERBOSE)$(GENODE_DIR)/tool/ports/prepare_port mpfr
|
||||||
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(GMP_DOWNLOAD_URL)/gmp-$(GMP_VERSION).tar.bz2.sig && touch $@
|
|
||||||
$(VERBOSE)$(SIGVERIFIER) $(DOWNLOAD_DIR)/gmp-$(GMP_VERSION).tar.bz2 $(DOWNLOAD_DIR)/gmp-$(GMP_VERSION).tar.bz2.sig GNU
|
|
||||||
|
|
||||||
$(DOWNLOAD_DIR)/mpfr-$(MPFR_VERSION).tar.bz2: $(DOWNLOAD_DIR)
|
MPC_CONTRIB_DIR = $(shell $(GENODE_DIR)/tool/ports/current mpc)/src/lib/mpc
|
||||||
$(ECHO) "$(BRIGHT_COL)downloading mpfr...$(DEFAULT_COL)"
|
|
||||||
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(MPFR_DOWNLOAD_URL)/mpfr-$(MPFR_VERSION).tar.bz2 && touch $@
|
|
||||||
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(MPFR_DOWNLOAD_URL)/mpfr-$(MPFR_VERSION).tar.bz2.sig && touch $@
|
|
||||||
$(VERBOSE)$(SIGVERIFIER) $(DOWNLOAD_DIR)/mpfr-$(MPFR_VERSION).tar.bz2 $(DOWNLOAD_DIR)/mpfr-$(MPFR_VERSION).tar.bz2.sig
|
|
||||||
|
|
||||||
$(DOWNLOAD_DIR)/mpc-$(MPC_VERSION).tar.gz: $(DOWNLOAD_DIR)
|
$(MPC_CONTRIB_DIR)/configure:
|
||||||
$(ECHO) "$(BRIGHT_COL)downloading mpc...$(DEFAULT_COL)"
|
$(ECHO) "$(BRIGHT_COL)preparing mpc...$(DEFAULT_COL)"
|
||||||
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(MPC_DOWNLOAD_URL)/mpc-$(MPC_VERSION).tar.gz && touch $@
|
$(VERBOSE)$(GENODE_DIR)/tool/ports/prepare_port mpc
|
||||||
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(MPC_DOWNLOAD_URL)/mpc-$(MPC_VERSION).tar.gz.asc && touch $@
|
|
||||||
# GPG key from http://www.multiprecision.org/index.php?prog=mpc&page=download
|
|
||||||
$(VERBOSE)$(SIGVERIFIER) $(DOWNLOAD_DIR)/mpc-$(MPC_VERSION).tar.gz $(DOWNLOAD_DIR)/mpc-$(MPC_VERSION).tar.gz.asc AD17A21EF8AED8F1CC02DBD9F7D5C9BF765C61E3
|
|
||||||
|
|
||||||
$(CONTRIB_DIR)/gmp-$(GMP_VERSION)/configure: $(DOWNLOAD_DIR)/gmp-$(GMP_VERSION).tar.bz2
|
GCC_CONTRIB_DIR = $(shell $(GENODE_DIR)/tool/ports/current gcc)/src/noux-pkg/gcc
|
||||||
$(ECHO) "$(BRIGHT_COL)unpacking gmp...$(DEFAULT_COL)"
|
|
||||||
$(VERBOSE)tar xfj $< -C $(CONTRIB_DIR)
|
|
||||||
|
|
||||||
$(CONTRIB_DIR)/mpfr-$(MPFR_VERSION)/configure: $(DOWNLOAD_DIR)/mpfr-$(MPFR_VERSION).tar.bz2
|
$(GCC_CONTRIB_DIR)/configure:
|
||||||
$(ECHO) "$(BRIGHT_COL)unpacking mpfr...$(DEFAULT_COL)"
|
$(ECHO) "$(BRIGHT_COL)preparing gcc...$(DEFAULT_COL)"
|
||||||
$(VERBOSE)tar xfj $< -C $(CONTRIB_DIR)
|
$(VERBOSE)$(GENODE_DIR)/tool/ports/prepare_port gcc
|
||||||
|
|
||||||
$(CONTRIB_DIR)/mpc-$(MPC_VERSION)/configure: $(DOWNLOAD_DIR)/mpc-$(MPC_VERSION).tar.gz
|
BINUTILS_CONTRIB_DIR = $(shell $(GENODE_DIR)/tool/ports/current binutils)/src/noux-pkg/binutils
|
||||||
$(ECHO) "$(BRIGHT_COL)unpacking mpc...$(DEFAULT_COL)"
|
|
||||||
$(VERBOSE)tar xfz $< -C $(CONTRIB_DIR)
|
|
||||||
|
|
||||||
$(CONTRIB_DIR)/gcc-$(GCC_VERSION): $(addprefix $(DOWNLOAD_DIR)/,gcc-$(GCC_VERSION).tar.bz2)
|
$(BINUTILS_CONTRIB_DIR)/configure:
|
||||||
$(ECHO) "$(BRIGHT_COL)unpacking gcc...$(DEFAULT_COL)"
|
$(ECHO) "$(BRIGHT_COL)preparing binutils...$(DEFAULT_COL)"
|
||||||
$(VERBOSE)mkdir -p $(CONTRIB_DIR)
|
$(VERBOSE)$(GENODE_DIR)/tool/ports/prepare_port binutils
|
||||||
$(VERBOSE)for i in $^ ; do tar xfj $$i -C $(CONTRIB_DIR) ;done
|
|
||||||
$(VERBOSE)touch $@
|
|
||||||
|
|
||||||
include $(GENODE_DIR)/tool/tool_chain_gcc_patches.inc
|
build/$(PLATFORM)/binutils/Makefile: $(BINUTILS_CONTRIB_DIR)/configure
|
||||||
|
|
||||||
$(CONTRIB_DIR)/binutils-$(BINUTILS_VERSION): $(addprefix $(DOWNLOAD_DIR)/,$(BINUTILS_DOWNLOAD_TBZ2))
|
|
||||||
$(ECHO) "$(BRIGHT_COL)unpacking binutils...$(DEFAULT_COL)"
|
|
||||||
$(VERBOSE)mkdir -p $(CONTRIB_DIR)
|
|
||||||
$(VERBOSE)tar xfj $^ -C $(CONTRIB_DIR) && touch $@
|
|
||||||
|
|
||||||
include $(GENODE_DIR)/tool/tool_chain_binutils_patches.inc
|
|
||||||
|
|
||||||
build/$(PLATFORM)/binutils/Makefile: $(CONTRIB_DIR)/binutils-$(BINUTILS_VERSION)/configure
|
|
||||||
$(ECHO) "$(BRIGHT_COL)configuring binutils...$(DEFAULT_COL)"
|
$(ECHO) "$(BRIGHT_COL)configuring binutils...$(DEFAULT_COL)"
|
||||||
$(VERBOSE)mkdir -p $(dir $@)
|
$(VERBOSE)mkdir -p $(dir $@)
|
||||||
$(VERBOSE)cd $(dir $@); $(shell pwd)/$(CONTRIB_DIR)/binutils-$(BINUTILS_VERSION)/configure $(BINUTILS_CONFIG)
|
$(VERBOSE)cd $(dir $@); $(BINUTILS_CONTRIB_DIR)/configure $(BINUTILS_CONFIG)
|
||||||
|
|
||||||
$(BINUTILS_BINARIES): build/$(PLATFORM)/binutils/Makefile
|
$(BINUTILS_BINARIES): build/$(PLATFORM)/binutils/Makefile
|
||||||
$(ECHO) "$(BRIGHT_COL)builing binutils...$(DEFAULT_COL)"
|
$(ECHO) "$(BRIGHT_COL)builing binutils...$(DEFAULT_COL)"
|
||||||
@@ -386,24 +328,24 @@ $(LOCAL_LIB_INSTALL_LOCATION)/lib/lib%.a:
|
|||||||
$(ECHO) "$(BRIGHT_COL)building lib$*...$(DEFAULT_COL)"
|
$(ECHO) "$(BRIGHT_COL)building lib$*...$(DEFAULT_COL)"
|
||||||
$(VERBOSE)make -C build/$* all install
|
$(VERBOSE)make -C build/$* all install
|
||||||
|
|
||||||
build/gmp/Makefile: $(CONTRIB_DIR)/gmp-$(GMP_VERSION)/configure
|
build/gmp/Makefile: $(GMP_CONTRIB_DIR)/configure
|
||||||
|
|
||||||
build/gmp/Makefile:
|
build/gmp/Makefile:
|
||||||
$(ECHO) "$(BRIGHT_COL)configuring libgmp...$(DEFAULT_COL)"
|
$(ECHO) "$(BRIGHT_COL)configuring libgmp...$(DEFAULT_COL)"
|
||||||
$(VERBOSE)mkdir -p $(dir $@)
|
$(VERBOSE)mkdir -p $(dir $@)
|
||||||
$(VERBOSE)cd $(dir $@); \
|
$(VERBOSE)cd $(dir $@); \
|
||||||
$(shell pwd)/$(CONTRIB_DIR)/gmp-$(GMP_VERSION)/configure $(GMP_CONFIG)
|
$(GMP_CONTRIB_DIR)/configure $(GMP_CONFIG)
|
||||||
|
|
||||||
build/mpfr/Makefile: $(CONTRIB_DIR)/mpfr-$(MPFR_VERSION)/configure \
|
build/mpfr/Makefile: $(MPFR_CONTRIB_DIR)/configure \
|
||||||
$(LOCAL_LIB_INSTALL_LOCATION)/lib/libgmp.a
|
$(LOCAL_LIB_INSTALL_LOCATION)/lib/libgmp.a
|
||||||
|
|
||||||
build/mpfr/Makefile:
|
build/mpfr/Makefile:
|
||||||
$(ECHO) "$(BRIGHT_COL)configuring libmpfr...$(DEFAULT_COL)"
|
$(ECHO) "$(BRIGHT_COL)configuring libmpfr...$(DEFAULT_COL)"
|
||||||
$(VERBOSE)mkdir -p $(dir $@)
|
$(VERBOSE)mkdir -p $(dir $@)
|
||||||
$(VERBOSE)cd $(dir $@); \
|
$(VERBOSE)cd $(dir $@); \
|
||||||
$(shell pwd)/$(CONTRIB_DIR)/mpfr-$(MPFR_VERSION)/configure $(MPFR_CONFIG)
|
$(MPFR_CONTRIB_DIR)/configure $(MPFR_CONFIG)
|
||||||
|
|
||||||
build/mpc/Makefile: $(CONTRIB_DIR)/mpc-$(MPC_VERSION)/configure \
|
build/mpc/Makefile: $(MPC_CONTRIB_DIR)/configure \
|
||||||
$(LOCAL_LIB_INSTALL_LOCATION)/lib/libgmp.a \
|
$(LOCAL_LIB_INSTALL_LOCATION)/lib/libgmp.a \
|
||||||
$(LOCAL_LIB_INSTALL_LOCATION)/lib/libmpfr.a
|
$(LOCAL_LIB_INSTALL_LOCATION)/lib/libmpfr.a
|
||||||
|
|
||||||
@@ -411,9 +353,9 @@ build/mpc/Makefile:
|
|||||||
$(ECHO) "$(BRIGHT_COL)configuring libmpc...$(DEFAULT_COL)"
|
$(ECHO) "$(BRIGHT_COL)configuring libmpc...$(DEFAULT_COL)"
|
||||||
$(VERBOSE)mkdir -p $(dir $@)
|
$(VERBOSE)mkdir -p $(dir $@)
|
||||||
$(VERBOSE)cd $(dir $@); \
|
$(VERBOSE)cd $(dir $@); \
|
||||||
$(shell pwd)/$(CONTRIB_DIR)/mpc-$(MPC_VERSION)/configure $(MPC_CONFIG)
|
$(MPC_CONTRIB_DIR)/configure $(MPC_CONFIG)
|
||||||
|
|
||||||
build/$(PLATFORM)/gcc/Makefile: $(CONTRIB_DIR)/gcc-$(GCC_VERSION)/configure \
|
build/$(PLATFORM)/gcc/Makefile: $(GCC_CONTRIB_DIR)/configure \
|
||||||
$(BINUTILS_INSTALLED_BINARIES) \
|
$(BINUTILS_INSTALLED_BINARIES) \
|
||||||
$(LOCAL_LIB_INSTALL_LOCATION)/lib/libgmp.a \
|
$(LOCAL_LIB_INSTALL_LOCATION)/lib/libgmp.a \
|
||||||
$(LOCAL_LIB_INSTALL_LOCATION)/lib/libmpfr.a \
|
$(LOCAL_LIB_INSTALL_LOCATION)/lib/libmpfr.a \
|
||||||
@@ -425,7 +367,7 @@ build/$(PLATFORM)/gcc/Makefile:
|
|||||||
$(VERBOSE)cd $(dir $@); \
|
$(VERBOSE)cd $(dir $@); \
|
||||||
host_configargs="$(HOST_CONFIG_ARGS)" \
|
host_configargs="$(HOST_CONFIG_ARGS)" \
|
||||||
target_configargs="$(TARGET_CONFIG_ARGS)" \
|
target_configargs="$(TARGET_CONFIG_ARGS)" \
|
||||||
$(shell pwd)/$(CONTRIB_DIR)/gcc-$(GCC_VERSION)/configure $(GCC_CONFIG)
|
$(GCC_CONTRIB_DIR)/configure $(GCC_CONFIG)
|
||||||
|
|
||||||
$(GCC_BINARIES): build/$(PLATFORM)/gcc/Makefile \
|
$(GCC_BINARIES): build/$(PLATFORM)/gcc/Makefile \
|
||||||
$(LIBC)
|
$(LIBC)
|
||||||
@@ -438,24 +380,17 @@ $(GCC_INSTALLED_BINARIES): $(GCC_BINARIES)
|
|||||||
$(ECHO) "$(BRIGHT_COL)installing gcc...$(DEFAULT_COL)"
|
$(ECHO) "$(BRIGHT_COL)installing gcc...$(DEFAULT_COL)"
|
||||||
$(VERBOSE)$(MAKE) -C build/$(PLATFORM)/gcc $(GCC_INSTALL_RULE)
|
$(VERBOSE)$(MAKE) -C build/$(PLATFORM)/gcc $(GCC_INSTALL_RULE)
|
||||||
|
|
||||||
$(DOWNLOAD_DIR)/gdb-$(GDB_VERSION).tar.bz2: $(DOWNLOAD_DIR)
|
GDB_CONTRIB_DIR = $(shell $(GENODE_DIR)/tool/ports/current gdb)/src/noux-pkg/gdb
|
||||||
$(ECHO) "$(BRIGHT_COL)downloading gdb...$(DEFAULT_COL)"
|
|
||||||
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(GDB_DOWNLOAD_URL)/gdb-$(GDB_VERSION).tar.bz2 && touch $@
|
|
||||||
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(GDB_DOWNLOAD_URL)/gdb-$(GDB_VERSION).tar.bz2.sig && touch $@
|
|
||||||
$(VERBOSE)$(SIGVERIFIER) $(DOWNLOAD_DIR)/gdb-$(GDB_VERSION).tar.bz2 $(DOWNLOAD_DIR)/gdb-$(GDB_VERSION).tar.bz2.sig GNU
|
|
||||||
|
|
||||||
$(CONTRIB_DIR)/gdb-$(GDB_VERSION): $(DOWNLOAD_DIR)/gdb-$(GDB_VERSION).tar.bz2
|
$(GDB_CONTRIB_DIR)/configure:
|
||||||
$(ECHO) "$(BRIGHT_COL)unpacking gdb...$(DEFAULT_COL)"
|
$(ECHO) "$(BRIGHT_COL)preparing gdb...$(DEFAULT_COL)"
|
||||||
$(VERBOSE)mkdir -p $(CONTRIB_DIR)
|
$(VERBOSE)$(GENODE_DIR)/tool/ports/prepare_port gdb
|
||||||
$(VERBOSE)tar xfj $^ -C $(CONTRIB_DIR) && touch $@
|
|
||||||
|
|
||||||
include $(GENODE_DIR)/tool/tool_chain_gdb_patches.inc
|
build/$(PLATFORM)/gdb/Makefile: $(GDB_CONTRIB_DIR)/configure
|
||||||
|
|
||||||
build/$(PLATFORM)/gdb/Makefile: $(CONTRIB_DIR)/gdb-$(GDB_VERSION)/configure
|
|
||||||
$(ECHO) "$(BRIGHT_COL)configuring gdb...$(DEFAULT_COL)"
|
$(ECHO) "$(BRIGHT_COL)configuring gdb...$(DEFAULT_COL)"
|
||||||
$(VERBOSE)mkdir -p $(dir $@)
|
$(VERBOSE)mkdir -p $(dir $@)
|
||||||
$(VERBOSE)cd $(dir $@); \
|
$(VERBOSE)cd $(dir $@); \
|
||||||
$(shell pwd)/$(CONTRIB_DIR)/gdb-$(GDB_VERSION)/configure $(GDB_CONFIG)
|
$(GDB_CONTRIB_DIR)/configure $(GDB_CONFIG)
|
||||||
|
|
||||||
$(GDB_BINARIES): build/$(PLATFORM)/gdb/Makefile
|
$(GDB_BINARIES): build/$(PLATFORM)/gdb/Makefile
|
||||||
$(ECHO) "$(BRIGHT_COL)builing gdb...$(DEFAULT_COL)"
|
$(ECHO) "$(BRIGHT_COL)builing gdb...$(DEFAULT_COL)"
|
||||||
@@ -470,12 +405,9 @@ $(GDB_INSTALLED_BINARIES): $(GDB_BINARIES)
|
|||||||
#
|
#
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(addprefix $(CONTRIB_DIR)/,binutils-$(BINUTILS_VERSION) gcc-$(GCC_VERSION))
|
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
|
||||||
cleanall: clean
|
cleanall: clean
|
||||||
rm -rf $(DOWNLOAD_DIR)/$(BINUTILS_DOWNLOAD_TBZ2)
|
|
||||||
rm -rf $(DOWNLOAD_DIR)/gcc-$(GCC_VERSION).tar.bz2
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Install rules
|
# Install rules
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
BINUTILS_PATCHES_DIR = $(GENODE_DIR)/tool/patches/binutils-$(BINUTILS_VERSION)
|
|
||||||
BINUTILS_PATCHES = $(shell cat $(BINUTILS_PATCHES_DIR)/series)
|
|
||||||
|
|
||||||
$(CONTRIB_DIR)/binutils-$(BINUTILS_VERSION)/configure:: $(CONTRIB_DIR)/binutils-$(BINUTILS_VERSION)
|
|
||||||
$(ECHO) "$(BRIGHT_COL)patching binutils build system...$(DEFAULT_COL)"
|
|
||||||
$(VERBOSE)for p in $(BINUTILS_PATCHES); do \
|
|
||||||
patch -d $(CONTRIB_DIR)/binutils-$(BINUTILS_VERSION) -p1 -i $(BINUTILS_PATCHES_DIR)/$$p; done;
|
|
||||||
@#
|
|
||||||
@# Re-generate configure scripts
|
|
||||||
@#
|
|
||||||
$(VERBOSE)cd $(CONTRIB_DIR)/binutils-$(BINUTILS_VERSION)/bfd; $(AUTOCONF)
|
|
||||||
$(VERBOSE)touch $@
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
GCC_PATCHES_DIR = $(GENODE_DIR)/tool/patches/gcc-$(GCC_VERSION)
|
|
||||||
GCC_PATCHES = $(shell cat $(GCC_PATCHES_DIR)/series)
|
|
||||||
|
|
||||||
$(CONTRIB_DIR)/gcc-$(GCC_VERSION)/configure:: $(CONTRIB_DIR)/gcc-$(GCC_VERSION)
|
|
||||||
$(ECHO) "$(BRIGHT_COL)patching gcc build system...$(DEFAULT_COL)"
|
|
||||||
$(VERBOSE)for p in $(GCC_PATCHES); do \
|
|
||||||
patch -d $(CONTRIB_DIR)/gcc-$(GCC_VERSION) -p1 -i $(GCC_PATCHES_DIR)/$$p; done;
|
|
||||||
@#
|
|
||||||
@# Re-generate configure scripts
|
|
||||||
@#
|
|
||||||
$(VERBOSE)cd $(CONTRIB_DIR)/gcc-$(GCC_VERSION); autogen Makefile.def
|
|
||||||
$(VERBOSE)cd $(CONTRIB_DIR)/gcc-$(GCC_VERSION)/libgcc; $(AUTOCONF)
|
|
||||||
$(VERBOSE)cd $(CONTRIB_DIR)/gcc-$(GCC_VERSION)/libstdc++-v3; $(AUTOCONF)
|
|
||||||
$(VERBOSE)cd $(CONTRIB_DIR)/gcc-$(GCC_VERSION)/gcc; $(AUTOCONF)
|
|
||||||
$(VERBOSE)cd $(CONTRIB_DIR)/gcc-$(GCC_VERSION); $(AUTOCONF)
|
|
||||||
$(VERBOSE)touch $@
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
GDB_PATCHES_DIR = $(GENODE_DIR)/tool/patches/gdb-$(GDB_VERSION)
|
|
||||||
GDB_PATCHES = $(shell cat $(GDB_PATCHES_DIR)/series)
|
|
||||||
|
|
||||||
$(CONTRIB_DIR)/gdb-$(GDB_VERSION)/configure:: $(CONTRIB_DIR)/gdb-$(GDB_VERSION)
|
|
||||||
$(ECHO) "$(BRIGHT_COL)patching gdb...$(DEFAULT_COL)"
|
|
||||||
$(VERBOSE)for p in $(GDB_PATCHES); do \
|
|
||||||
patch -d $(CONTRIB_DIR)/gdb-$(GDB_VERSION) -p1 -i $(GDB_PATCHES_DIR)/$$p; done;
|
|
||||||
$(VERBOSE)touch $@
|
|
||||||
Reference in New Issue
Block a user