diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2009-06-10 17:59:33 +0000 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2009-06-10 17:59:33 +0000 |
commit | 47cb5afdd1ee771c9c6beac811340af3d0456f26 (patch) | |
tree | 1712df070175cdf86b7b1e332c79585a2ce8a1ec /rules/mtd-oopslog.make | |
parent | a99f39833beb8f01737b2e2c9736dec26f69b770 (diff) | |
download | ptxdist-47cb5afdd1ee771c9c6beac811340af3d0456f26.tar.gz ptxdist-47cb5afdd1ee771c9c6beac811340af3d0456f26.tar.xz |
* rules: add mtd-oopslog
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10730 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/mtd-oopslog.make')
-rw-r--r-- | rules/mtd-oopslog.make | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/rules/mtd-oopslog.make b/rules/mtd-oopslog.make new file mode 100644 index 000000000..1e5dcee5a --- /dev/null +++ b/rules/mtd-oopslog.make @@ -0,0 +1,103 @@ +# -*-makefile-*- +# $Id: template-make 9053 2008-11-03 10:58:48Z wsa $ +# +# Copyright (C) 2009 by Wolfram Sang +# +# 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 +# +PACKAGES-$(PTXCONF_MTD_OOPSLOG) += mtd-oopslog + +# +# Paths and names +# +MTD_OOPSLOG_VERSION := 2007 +MTD_OOPSLOG := mtd-oopslog-$(MTD_OOPSLOG_VERSION) +MTD_OOPSLOG_URL := http://folks.o-hand.com/richard/oopslog.c +MTD_OOPSLOG_SOURCE := $(SRCDIR)/oopslog.c +MTD_OOPSLOG_DIR := $(BUILDDIR)/$(MTD_OOPSLOG) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(MTD_OOPSLOG_SOURCE): + @$(call targetinfo) + @$(call get, MTD_OOPSLOG) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +$(STATEDIR)/mtd-oopslog.extract: + @$(call targetinfo) + mkdir -p $(MTD_OOPSLOG_DIR) + cp $(MTD_OOPSLOG_SOURCE) $(MTD_OOPSLOG_DIR) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +MTD_OOPSLOG_PATH := PATH=$(CROSS_PATH) +MTD_OOPSLOG_ENV := $(CROSS_ENV) + +$(STATEDIR)/mtd-oopslog.prepare: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +$(STATEDIR)/mtd-oopslog.compile: + @$(call targetinfo) + @cd $(MTD_OOPSLOG_DIR) && $(MTD_OOPSLOG_PATH) $(MTD_OOPSLOG_ENV) $(MAKE) oopslog + @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/mtd-oopslog.install: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/mtd-oopslog.targetinstall: + @$(call targetinfo) + + @$(call install_init, mtd-oopslog) + @$(call install_fixup, mtd-oopslog,PACKAGE,mtd-oopslog) + @$(call install_fixup, mtd-oopslog,PRIORITY,optional) + @$(call install_fixup, mtd-oopslog,VERSION,$(MTD_OOPSLOG_VERSION)) + @$(call install_fixup, mtd-oopslog,SECTION,base) + @$(call install_fixup, mtd-oopslog,AUTHOR,"Wolfram Sang") + @$(call install_fixup, mtd-oopslog,DEPENDS,) + @$(call install_fixup, mtd-oopslog,DESCRIPTION,missing) + + @$(call install_copy, mtd-oopslog, 0, 0, 0755, $(MTD_OOPSLOG_DIR)/oopslog, /bin/oopslog) + + @$(call install_finish, mtd-oopslog) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +mtd-oopslog_clean: + rm -rf $(STATEDIR)/mtd-oopslog.* + rm -rf $(PKGDIR)/mtd-oopslog_* + rm -rf $(MTD_OOPSLOG_DIR) + +# vim: syntax=make |