diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2008-03-17 17:28:06 +0000 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2008-03-17 17:28:06 +0000 |
commit | 0585541bb7bb58ba0eb20f88bca42171d3c9557a (patch) | |
tree | c98b9f702c2c49ac22c59663b1149c29e4dd1e81 /rules/ltp-kernel.make | |
parent | de80098f2ef0eba1d47b29c85dd981a4c9d72c4f (diff) | |
download | ptxdist-0585541bb7bb58ba0eb20f88bca42171d3c9557a.tar.gz ptxdist-0585541bb7bb58ba0eb20f88bca42171d3c9557a.tar.xz |
* first step to a more modular ltp
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7852 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/ltp-kernel.make')
-rw-r--r-- | rules/ltp-kernel.make | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/rules/ltp-kernel.make b/rules/ltp-kernel.make new file mode 100644 index 000000000..8043ac628 --- /dev/null +++ b/rules/ltp-kernel.make @@ -0,0 +1,116 @@ +# -*-makefile-*- +# $Id: template-make 7759 2008-02-12 21:05:07Z mkl $ +# +# Copyright (C) 2008 by +# +# 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_LTP_KERNEL) += ltp-kernel + +# +# Paths and names +# +LTP_KERNEL_VERSION = $(LTP_VERSION) +LTP_KERNEL = ltp-kernel-$(LTP_VERSION) +LTP_KERNEL_PKGDIR = $(PKGDIR)/$(LTP_KERNEL) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +ltp-kernel_get: $(STATEDIR)/ltp-kernel.get + +$(STATEDIR)/ltp-kernel.get: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +ltp-kernel_extract: $(STATEDIR)/ltp-kernel.extract + +$(STATEDIR)/ltp-kernel.extract: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +ltp-kernel_prepare: $(STATEDIR)/ltp-kernel.prepare + +$(STATEDIR)/ltp-kernel.prepare: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +ltp-kernel_compile: $(STATEDIR)/ltp-kernel.compile + +$(STATEDIR)/ltp-kernel.compile: + @$(call targetinfo, $@) + @cd $(LTP_DIR)/testcases/kernel; $(LTP_ENV) make $(PARALLELMFLAGS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +ltp-kernel_install: $(STATEDIR)/ltp-kernel.install + +$(STATEDIR)/ltp-kernel.install: + @$(call targetinfo, $@) + @mkdir -p $(LTP_KERNEL_PKGDIR)/bin + @ln -sf $(LTP_KERNEL_PKGDIR)/bin $(LTP_DIR)/testcases/bin + @cd $(LTP_DIR)/testcases/kernel; $(LTP_ENV) make $(PARALLELMFLAGS) install + @rm $(LTP_DIR)/testcases/bin + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +ltp-kernel_targetinstall: $(STATEDIR)/ltp-kernel.targetinstall + +$(STATEDIR)/ltp-kernel.targetinstall: + @$(call targetinfo, $@) + + @$(call install_init, ltp-kernel) + @$(call install_fixup, ltp-kernel,PACKAGE,ltp-kernel) + @$(call install_fixup, ltp-kernel,PRIORITY,optional) + @$(call install_fixup, ltp-kernel,VERSION,$(LTP_VERSION)) + @$(call install_fixup, ltp-kernel,SECTION,base) + @$(call install_fixup, ltp-kernel,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup, ltp-kernel,DEPENDS,) + @$(call install_fixup, ltp-kernel,DESCRIPTION,missing) + + @for file in `find $(LTP_KERNEL_PKGDIR)/bin -type f`; do \ + PER=`stat -c "%a" $$file` \ + $(call install_copy, ltp-kernel, 0, 0, $$PER, $$file, $(LTP_BIN_DIR)/$$file); \ + done + + + @$(call install_finish, ltp-kernel) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +ltp-kernel_clean: + rm -rf $(STATEDIR)/ltp-kernel.* + rm -rf $(IMAGEDIR)/ltp-kernel_* + rm -rf $(LTP_KERNEL_DIR) + +# vim: syntax=make |