diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2005-06-01 15:49:32 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2005-06-01 15:49:32 +0000 |
commit | ce01940a7af43184dd72b72caf730342fef6a113 (patch) | |
tree | 400dee35351d3711f3ef7b394ecc1e4206f650cd /rules/dosfstools.make | |
parent | 5b5ef462aa3f1b90affe8caf07afb863db8e7f3b (diff) | |
download | ptxdist-ce01940a7af43184dd72b72caf730342fef6a113.tar.gz ptxdist-ce01940a7af43184dd72b72caf730342fef6a113.tar.xz |
added; patch by Steven Scholz
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.7-trunk@2693 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/dosfstools.make')
-rw-r--r-- | rules/dosfstools.make | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/rules/dosfstools.make b/rules/dosfstools.make new file mode 100644 index 000000000..282fe243d --- /dev/null +++ b/rules/dosfstools.make @@ -0,0 +1,148 @@ +# $Id: template 2606 2005-05-10 21:49:41Z rsc $ +# +# Copyright (C) 2005 by Steven Scholz <steven.scholz@imc-berlin.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +ifdef PTXCONF_DOSFSTOOLS +PACKAGES += dosfstools +endif + +# +# Paths and names +# +DOSFSTOOLS_VERSION = 2.11 +DOSFSTOOLS = dosfstools-$(DOSFSTOOLS_VERSION) +DOSFSTOOLS_SUFFIX = tar.gz +#DOSFSTOOLS_SRC = dosfstools_$(DOSFSTOOLS_VERSION).orig.$(DOSFSTOOLS_SUFFIX) +#DOSFSTOOLS_URL = $(PTXCONF_SETUP_DEBMIRROR)/pool/main/d/dosfstools/$(DOSFSTOOLS_SRC) +DOSFSTOOLS_SRC = $(DOSFSTOOLS).src.$(DOSFSTOOLS_SUFFIX) +DOSFSTOOLS_URL = ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/$(DOSFSTOOLS_SRC) +DOSFSTOOLS_SOURCE = $(SRCDIR)/$(DOSFSTOOLS_SRC) +DOSFSTOOLS_DIR = $(BUILDDIR)/$(DOSFSTOOLS) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +dosfstools_get: $(STATEDIR)/dosfstools.get + +dosfstools_get_deps = $(DOSFSTOOLS_SOURCE) + +$(STATEDIR)/dosfstools.get: $(dosfstools_get_deps) + @$(call targetinfo, $@) + @$(call get_patches, $(DOSFSTOOLS)) + touch $@ + +$(DOSFSTOOLS_SOURCE): + @$(call targetinfo, $@) + @$(call get, $(DOSFSTOOLS_URL)) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +dosfstools_extract: $(STATEDIR)/dosfstools.extract + +dosfstools_extract_deps = $(STATEDIR)/dosfstools.get + +$(STATEDIR)/dosfstools.extract: $(dosfstools_extract_deps) + @$(call targetinfo, $@) + @$(call clean, $(DOSFSTOOLS_DIR)) + @$(call extract, $(DOSFSTOOLS_SOURCE)) + @$(call patchin, $(DOSFSTOOLS)) + touch $@ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +dosfstools_prepare: $(STATEDIR)/dosfstools.prepare + +# +# dependencies +# +dosfstools_prepare_deps = \ + $(STATEDIR)/dosfstools.extract \ + $(STATEDIR)/virtual-xchain.install + +DOSFSTOOLS_PATH = PATH=$(CROSS_PATH) +DOSFSTOOLS_ENV = $(CROSS_ENV) + +$(STATEDIR)/dosfstools.prepare: $(dosfstools_prepare_deps) + @$(call targetinfo, $@) + touch $@ + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +dosfstools_compile: $(STATEDIR)/dosfstools.compile + +dosfstools_compile_deps = $(STATEDIR)/dosfstools.prepare + +$(STATEDIR)/dosfstools.compile: $(dosfstools_compile_deps) + @$(call targetinfo, $@) + cd $(DOSFSTOOLS_DIR) && $(DOSFSTOOLS_ENV) $(DOSFSTOOLS_PATH) \ + make CC=$(COMPILER_PREFIX)gcc + touch $@ + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +dosfstools_install: $(STATEDIR)/dosfstools.install + +$(STATEDIR)/dosfstools.install: $(STATEDIR)/dosfstools.compile + @$(call targetinfo, $@) + #cd $(DOSFSTOOLS_DIR) && $(DOSFSTOOLS_ENV) $(DOSFSTOOLS_PATH) make install + touch $@ + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +dosfstools_targetinstall: $(STATEDIR)/dosfstools.targetinstall + +dosfstools_targetinstall_deps = $(STATEDIR)/dosfstools.compile + +$(STATEDIR)/dosfstools.targetinstall: $(dosfstools_targetinstall_deps) + @$(call targetinfo, $@) + + @$(call install_init,default) + @$(call install_fixup,PACKAGE,dosfstools) + @$(call install_fixup,PRIORITY,optional) + @$(call install_fixup,VERSION,$(DOSFSTOOLS_VERSION)) + @$(call install_fixup,SECTION,base) + @$(call install_fixup,AUTHOR,"Steven Scholz <steven.scholz\@imc-berlin.de>") + @$(call install_fixup,DEPENDS,) + @$(call install_fixup,DESCRIPTION,missing) + +ifdef PTXCONF_DOSFSTOOLS_MKDOSFS + @$(call install_copy, 0, 0, 0755, $(DOSFSTOOLS_DIR)/mkdosfs/mkdosfs, /sbin/mkdosfs) +endif +ifdef PTXCONF_DOSFSTOOLS_DOSFSCK + @$(call install_copy, 0, 0, 0755, $(DOSFSTOOLS_DIR)/dosfsck/dosfsck, /sbin/dosfsck) +endif + + @$(call install_finish) + + touch $@ + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +dosfstools_clean: + rm -rf $(STATEDIR)/dosfstools.* + rm -rf $(IMAGEDIR)/dosfstools_* + rm -rf $(DOSFSTOOLS_DIR) + +# vim: syntax=make |