diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2013-06-08 22:00:39 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2013-12-19 15:55:29 +0100 |
commit | 823f6446dd8009296e690e22529a9edffc72c61f (patch) | |
tree | b78131351cb4cd08538ad1b90e55de89d7fc26c5 /rules/glibc-first.make | |
parent | f69a713a63f9765cf9ce9d94c6ef7f9cc2931f28 (diff) | |
download | OSELAS.Toolchain-823f6446dd8009296e690e22529a9edffc72c61f.tar.gz OSELAS.Toolchain-823f6446dd8009296e690e22529a9edffc72c61f.tar.xz |
glibc: cleanup rules
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/glibc-first.make')
-rw-r--r-- | rules/glibc-first.make | 69 |
1 files changed, 13 insertions, 56 deletions
diff --git a/rules/glibc-first.make b/rules/glibc-first.make index 1a6523a..1d994e0 100644 --- a/rules/glibc-first.make +++ b/rules/glibc-first.make @@ -1,8 +1,8 @@ # -*-makefile-*- -# $Id: template 6655 2007-01-02 12:55:21Z rsc $ # # Copyright (C) 2006 by Robert Schwebel # 2007, 2008 by Marc Kleine-Budde +# 2013 by Michael Olbrich <m.olbrich@pengutronix.de> # # See CREDITS for details about who has contributed to this project. # @@ -21,22 +21,6 @@ PACKAGES-$(PTXCONF_GLIBC_FIRST) += glibc-first GLIBC_FIRST_BUILDDIR = $(BUILDDIR)/$(GLIBC)-first-build # ---------------------------------------------------------------------------- -# Get -# ---------------------------------------------------------------------------- - -$(STATEDIR)/glibc-first.get: $(STATEDIR)/glibc.get - @$(call targetinfo) - @$(call touch) - -# ---------------------------------------------------------------------------- -# Extract -# ---------------------------------------------------------------------------- - -$(STATEDIR)/glibc-first.extract: $(STATEDIR)/glibc.extract - @$(call targetinfo) - @$(call touch) - -# ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- @@ -57,57 +41,30 @@ GLIBC_FIRST_ENV := \ \ ac_cv_sizeof_long_double=$(PTXCONF_SIZEOF_LONG_DOUBLE) -GLIBC_FIRST_MAKEVARS := AUTOCONF=no - -GLIBC_FIRST_AUTOCONF = \ +GLIBC_FIRST_CONF_TOOL := autoconf +GLIBC_FIRST_CONF_OPT = \ $(GLIBC_AUTOCONF_COMMON) \ $(PTXCONF_GLIBC_CONFIG_EXTRA_CROSS) \ --disable-debug \ --disable-profile \ -$(STATEDIR)/glibc-first.prepare: +$(STATEDIR)/glibc-first.prepare: $(STATEDIR)/glibc.extract @$(call targetinfo) @$(call clean, $(GLIBC_FIRST_BUILDDIR)) mkdir -p $(GLIBC_FIRST_BUILDDIR) cd $(GLIBC_FIRST_BUILDDIR) && \ $(GLIBC_FIRST_ENV) $(GLIBC_FIRST_PATH) \ - $(GLIBC_DIR)/configure $(GLIBC_FIRST_AUTOCONF) - @$(call touch) - -# ---------------------------------------------------------------------------- -# Compile -# ---------------------------------------------------------------------------- - -$(STATEDIR)/glibc-first.compile: - @$(call targetinfo) - cd $(GLIBC_FIRST_BUILDDIR) && $(GLIBC_FIRST_PATH) $(MAKE) $(PARALLELMFLAGS) lib - @$(call touch) - -# ---------------------------------------------------------------------------- -# Install -# ---------------------------------------------------------------------------- - -$(STATEDIR)/glibc-first.install: - @$(call targetinfo) - cd $(GLIBC_FIRST_BUILDDIR) && \ - $(GLIBC_FIRST_PATH) $(MAKE) $(GLIBC_FIRST_MAKEVARS) \ - install_root=$(SYSROOT) install-lib-all install-headers + $(GLIBC_DIR)/configure $(GLIBC_FIRST_CONF_OPT) @$(call touch) -# ---------------------------------------------------------------------------- -# Target-Install -# ---------------------------------------------------------------------------- - -$(STATEDIR)/glibc-first.targetinstall: - @$(call targetinfo) - @$(call touch) - -# ---------------------------------------------------------------------------- -# Clean -# ---------------------------------------------------------------------------- +GLIBC_FIRST_MAKE_OPT := \ + AUTOCONF=no \ + lib -glibc-first_clean: - rm -rf $(STATEDIR)/glibc-first.* - rm -rf $(GLIBC_FIRST_BUILDDIR) +GLIBC_FIRST_INSTALL_OPT := \ + AUTOCONF=no \ + install_root=$(SYSROOT) \ + install-lib-all \ + install-headers # vim: syntax=make |