summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/cross-gcc-first.make24
1 files changed, 14 insertions, 10 deletions
diff --git a/rules/cross-gcc-first.make b/rules/cross-gcc-first.make
index 5fc4a84..2bc438b 100644
--- a/rules/cross-gcc-first.make
+++ b/rules/cross-gcc-first.make
@@ -16,7 +16,20 @@ CROSS_PACKAGES-$(PTXCONF_CROSS_GCC_FIRST) += cross-gcc-first
#
# Paths and names
#
-CROSS_GCC_FIRST_BUILDDIR = $(CROSS_BUILDDIR)/$(CROSS_GCC)-first-build
+CROSS_GCC_FIRST_VERSION := $(call remove_quotes,$(PTXCONF_CROSS_GCC_VERSION))
+CROSS_GCC_FIRST_DL_VERSION := $(call remove_quotes,$(PTXCONF_CROSS_GCC_DL_VERSION))
+CROSS_GCC_FIRST_MD5 := $(call remove_quotes,$(PTXCONF_CROSS_GCC_MD5))
+CROSS_GCC_FIRST := gcc-$(CROSS_GCC_FIRST_DL_VERSION)
+ifeq ($(CROSS_GCC_FIRST_VERSION),$(CROSS_GCC_FIRST_DL_VERSION))
+CROSS_GCC_FIRST_SUFFIX := tar.bz2
+else
+CROSS_GCC_FIRST_SUFFIX := tar.xz
+endif
+CROSS_GCC_FIRST_SOURCE := $(SRCDIR)/$(CROSS_GCC_FIRST).$(CROSS_GCC_FIRST_SUFFIX)
+CROSS_GCC_FIRST_DIR := $(CROSS_BUILDDIR)/gcc-first-$(CROSS_GCC_FIRST_VERSION)
+CROSS_GCC_FIRST_BUILDDIR := $(CROSS_GCC_FIRST_DIR)-build
+CROSS_GCC_FIRST_URL = $(CROSS_GCC_URL)
+CROSS_GCC_FIRST_BUILD_OOT := YES
# ----------------------------------------------------------------------------
# Prepare
@@ -46,15 +59,6 @@ CROSS_GCC_FIRST_CONF_OPT = \
--disable-libatomic \
--with-system-zlib
-$(STATEDIR)/cross-gcc-first.prepare: $(STATEDIR)/cross-gcc.extract
- @$(call targetinfo)
- @$(call clean, $(CROSS_GCC_FIRST_BUILDDIR))
- mkdir -p $(CROSS_GCC_FIRST_BUILDDIR)
- cd $(CROSS_GCC_FIRST_BUILDDIR) && \
- $(CROSS_GCC_FIRST_PATH) $(CROSS_GCC_FIRST_ENV) \
- $(CROSS_GCC_DIR)/configure $(CROSS_GCC_FIRST_CONF_OPT)
- @$(call touch)
-
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------