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 | |
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
-rw-r--r-- | rules/ltp-ballista.in | 2 | ||||
-rw-r--r-- | rules/ltp-ballista.make | 116 | ||||
-rw-r--r-- | rules/ltp-commands.in | 7 | ||||
-rw-r--r-- | rules/ltp-commands.make | 116 | ||||
-rw-r--r-- | rules/ltp-dots.in | 7 | ||||
-rw-r--r-- | rules/ltp-dots.make | 116 | ||||
-rw-r--r-- | rules/ltp-hpi.in | 7 | ||||
-rw-r--r-- | rules/ltp-hpi.make | 116 | ||||
-rw-r--r-- | rules/ltp-kdump.in | 8 | ||||
-rw-r--r-- | rules/ltp-kdump.make | 116 | ||||
-rw-r--r-- | rules/ltp-kernel.in | 2 | ||||
-rw-r--r-- | rules/ltp-kernel.make | 116 | ||||
-rw-r--r-- | rules/ltp-misc.in | 58 | ||||
-rw-r--r-- | rules/ltp-misc.make | 116 | ||||
-rw-r--r-- | rules/ltp-network.in | 6 | ||||
-rw-r--r-- | rules/ltp-network.make | 116 | ||||
-rw-r--r-- | rules/ltp-posix.in | 6 | ||||
-rw-r--r-- | rules/ltp-posix.make | 116 | ||||
-rw-r--r-- | rules/ltp-pounder21.in | 7 | ||||
-rw-r--r-- | rules/ltp-pounder21.make | 116 | ||||
-rw-r--r-- | rules/ltp-realtime.in | 6 | ||||
-rw-r--r-- | rules/ltp-realtime.make | 116 | ||||
-rw-r--r-- | rules/ltp-template.make | 116 | ||||
-rw-r--r-- | rules/ltp.in | 11 | ||||
-rw-r--r-- | rules/ltp.make | 17 |
25 files changed, 1486 insertions, 50 deletions
diff --git a/rules/ltp-ballista.in b/rules/ltp-ballista.in index 44214a7ce..21d509534 100644 --- a/rules/ltp-ballista.in +++ b/rules/ltp-ballista.in @@ -4,7 +4,7 @@ menuconfig LTP_BALLISTA bool prompt "ballista [BROKEN] " depends on BROKEN - depends on LTP + select LTP help The ballista test suite is designed to provide numerous combinations of erroneous input parameters to system calls. diff --git a/rules/ltp-ballista.make b/rules/ltp-ballista.make new file mode 100644 index 000000000..f527a5760 --- /dev/null +++ b/rules/ltp-ballista.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_BALLISTA) += ltp-ballista + +# +# Paths and names +# +LTP_BALLISTA_VERSION = $(LTP_VERSION) +LTP_BALLISTA = ltp-ballista-$(LTP_VERSION) +LTP_BALLISTA_PKGDIR = $(PKGDIR)/$(LTP_BALLISTA) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +ltp-ballista_get: $(STATEDIR)/ltp-ballista.get + +$(STATEDIR)/ltp-ballista.get: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +ltp-ballista_extract: $(STATEDIR)/ltp-ballista.extract + +$(STATEDIR)/ltp-ballista.extract: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +ltp-ballista_prepare: $(STATEDIR)/ltp-ballista.prepare + +$(STATEDIR)/ltp-ballista.prepare: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +ltp-ballista_compile: $(STATEDIR)/ltp-ballista.compile + +$(STATEDIR)/ltp-ballista.compile: + @$(call targetinfo, $@) + @cd $(LTP_DIR)/testcases/ballista; $(LTP_ENV) make $(PARALLELMFLAGS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +ltp-ballista_install: $(STATEDIR)/ltp-ballista.install + +$(STATEDIR)/ltp-ballista.install: + @$(call targetinfo, $@) + @mkdir -p $(LTP_BALLISTA_PKGDIR)/bin + @ln -sf $(LTP_BALLISTA_PKGDIR)/bin $(LTP_DIR)/testcases/bin + @cd $(LTP_DIR)/testcases/ballista; $(LTP_ENV) make $(PARALLELMFLAGS) install + @rm $(LTP_DIR)/testcases/bin + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +ltp-ballista_targetinstall: $(STATEDIR)/ltp-ballista.targetinstall + +$(STATEDIR)/ltp-ballista.targetinstall: + @$(call targetinfo, $@) + + @$(call install_init, ltp-ballista) + @$(call install_fixup, ltp-ballista,PACKAGE,ltp-ballista) + @$(call install_fixup, ltp-ballista,PRIORITY,optional) + @$(call install_fixup, ltp-ballista,VERSION,$(LTP_VERSION)) + @$(call install_fixup, ltp-ballista,SECTION,base) + @$(call install_fixup, ltp-ballista,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup, ltp-ballista,DEPENDS,) + @$(call install_fixup, ltp-ballista,DESCRIPTION,missing) + + @for file in `find $(LTP_BALLISTA_PKGDIR)/bin -type f`; do \ + PER=`stat -c "%a" $$file` \ + $(call install_copy, ltp-ballista, 0, 0, $$PER, $$file, $(LTP_BIN_DIR)/$$file); \ + done + + + @$(call install_finish, ltp-ballista) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +ltp-ballista_clean: + rm -rf $(STATEDIR)/ltp-ballista.* + rm -rf $(IMAGEDIR)/ltp-ballista_* + rm -rf $(LTP_BALLISTA_DIR) + +# vim: syntax=make diff --git a/rules/ltp-commands.in b/rules/ltp-commands.in index 8c03265f6..2d539e539 100644 --- a/rules/ltp-commands.in +++ b/rules/ltp-commands.in @@ -1,8 +1,7 @@ -menuconfig LTP_COMMANDS +config LTP_COMMANDS bool - prompt "Commands [BROKEN] " - depends on LTP - depends on BROKEN + prompt "Commands " + select LTP help Test user land commands. diff --git a/rules/ltp-commands.make b/rules/ltp-commands.make new file mode 100644 index 000000000..3a111680c --- /dev/null +++ b/rules/ltp-commands.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_COMMANDS) += ltp-commands + +# +# Paths and names +# +LTP_COMMANDS_VERSION = $(LTP_VERSION) +LTP_COMMANDS = ltp-commands-$(LTP_VERSION) +LTP_COMMANDS_PKGDIR = $(PKGDIR)/$(LTP_COMMANDS) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +ltp-commands_get: $(STATEDIR)/ltp-commands.get + +$(STATEDIR)/ltp-commands.get: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +ltp-commands_extract: $(STATEDIR)/ltp-commands.extract + +$(STATEDIR)/ltp-commands.extract: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +ltp-commands_prepare: $(STATEDIR)/ltp-commands.prepare + +$(STATEDIR)/ltp-commands.prepare: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +ltp-commands_compile: $(STATEDIR)/ltp-commands.compile + +$(STATEDIR)/ltp-commands.compile: + @$(call targetinfo, $@) + @cd $(LTP_DIR)/testcases/commands; $(LTP_ENV) make $(PARALLELMFLAGS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +ltp-commands_install: $(STATEDIR)/ltp-commands.install + +$(STATEDIR)/ltp-commands.install: + @$(call targetinfo, $@) + @mkdir -p $(LTP_COMMANDS_PKGDIR)/bin + @ln -sf $(LTP_COMMANDS_PKGDIR)/bin $(LTP_DIR)/testcases/bin + @cd $(LTP_DIR)/testcases/commands; $(LTP_ENV) make $(PARALLELMFLAGS) install + @rm $(LTP_DIR)/testcases/bin + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +ltp-commands_targetinstall: $(STATEDIR)/ltp-commands.targetinstall + +$(STATEDIR)/ltp-commands.targetinstall: + @$(call targetinfo, $@) + + @$(call install_init, ltp-commands) + @$(call install_fixup, ltp-commands,PACKAGE,ltp-commands) + @$(call install_fixup, ltp-commands,PRIORITY,optional) + @$(call install_fixup, ltp-commands,VERSION,$(LTP_VERSION)) + @$(call install_fixup, ltp-commands,SECTION,base) + @$(call install_fixup, ltp-commands,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup, ltp-commands,DEPENDS,) + @$(call install_fixup, ltp-commands,DESCRIPTION,missing) + + @for file in `find $(LTP_COMMANDS_PKGDIR)/bin -type f`; do \ + PER=`stat -c "%a" $$file` \ + $(call install_copy, ltp-commands, 0, 0, $$PER, $$file, $(LTP_BIN_DIR)/$$file); \ + done + + + @$(call install_finish, ltp-commands) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +ltp-commands_clean: + rm -rf $(STATEDIR)/ltp-commands.* + rm -rf $(IMAGEDIR)/ltp-commands_* + rm -rf $(LTP_COMMANDS_DIR) + +# vim: syntax=make diff --git a/rules/ltp-dots.in b/rules/ltp-dots.in new file mode 100644 index 000000000..0ae8f8d45 --- /dev/null +++ b/rules/ltp-dots.in @@ -0,0 +1,7 @@ + +menuconfig LTP_DOTS + bool + prompt "Dots " + select LTP + depends on BROKEN + diff --git a/rules/ltp-dots.make b/rules/ltp-dots.make new file mode 100644 index 000000000..f20139643 --- /dev/null +++ b/rules/ltp-dots.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_DOTS) += ltp-dots + +# +# Paths and names +# +LTP_DOTS_VERSION = $(LTP_VERSION) +LTP_DOTS = ltp-dots-$(LTP_VERSION) +LTP_DOTS_PKGDIR = $(PKGDIR)/$(LTP_DOTS) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +ltp-dots_get: $(STATEDIR)/ltp-dots.get + +$(STATEDIR)/ltp-dots.get: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +ltp-dots_extract: $(STATEDIR)/ltp-dots.extract + +$(STATEDIR)/ltp-dots.extract: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +ltp-dots_prepare: $(STATEDIR)/ltp-dots.prepare + +$(STATEDIR)/ltp-dots.prepare: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +ltp-dots_compile: $(STATEDIR)/ltp-dots.compile + +$(STATEDIR)/ltp-dots.compile: + @$(call targetinfo, $@) + @cd $(LTP_DIR)/testcases/DOTS; $(LTP_ENV) make $(PARALLELMFLAGS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +ltp-dots_install: $(STATEDIR)/ltp-dots.install + +$(STATEDIR)/ltp-dots.install: + @$(call targetinfo, $@) + @mkdir -p $(LTP_DOTS_PKGDIR)/bin + @ln -sf $(LTP_DOTS_PKGDIR)/bin $(LTP_DIR)/testcases/bin + @cd $(LTP_DIR)/testcases/DOTS; $(LTP_ENV) make $(PARALLELMFLAGS) install + @rm $(LTP_DIR)/testcases/bin + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +ltp-dots_targetinstall: $(STATEDIR)/ltp-dots.targetinstall + +$(STATEDIR)/ltp-dots.targetinstall: + @$(call targetinfo, $@) + + @$(call install_init, ltp-dots) + @$(call install_fixup, ltp-dots,PACKAGE,ltp-dots) + @$(call install_fixup, ltp-dots,PRIORITY,optional) + @$(call install_fixup, ltp-dots,VERSION,$(LTP_VERSION)) + @$(call install_fixup, ltp-dots,SECTION,base) + @$(call install_fixup, ltp-dots,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup, ltp-dots,DEPENDS,) + @$(call install_fixup, ltp-dots,DESCRIPTION,missing) + + @for file in `find $(LTP_DOTS_PKGDIR)/bin -type f`; do \ + PER=`stat -c "%a" $$file` \ + $(call install_copy, ltp-dots, 0, 0, $$PER, $$file, $(LTP_BIN_DIR)/$$file); \ + done + + + @$(call install_finish, ltp-dots) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +ltp-dots_clean: + rm -rf $(STATEDIR)/ltp-dots.* + rm -rf $(IMAGEDIR)/ltp-dots_* + rm -rf $(LTP_DOTS_DIR) + +# vim: syntax=make diff --git a/rules/ltp-hpi.in b/rules/ltp-hpi.in new file mode 100644 index 000000000..8d4191d6c --- /dev/null +++ b/rules/ltp-hpi.in @@ -0,0 +1,7 @@ + +menuconfig LTP_HPI + bool + prompt "open_hpi_testsuite " + select LTP + depends on BROKEN + diff --git a/rules/ltp-hpi.make b/rules/ltp-hpi.make new file mode 100644 index 000000000..9ffcb1bff --- /dev/null +++ b/rules/ltp-hpi.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_HPI) += ltp-hpi + +# +# Paths and names +# +LTP_HPI_VERSION = $(LTP_VERSION) +LTP_HPI = ltp-hpi-$(LTP_VERSION) +LTP_HPI_PKGDIR = $(PKGDIR)/$(LTP_HPI) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +ltp-hpi_get: $(STATEDIR)/ltp-hpi.get + +$(STATEDIR)/ltp-hpi.get: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +ltp-hpi_extract: $(STATEDIR)/ltp-hpi.extract + +$(STATEDIR)/ltp-hpi.extract: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +ltp-hpi_prepare: $(STATEDIR)/ltp-hpi.prepare + +$(STATEDIR)/ltp-hpi.prepare: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +ltp-hpi_compile: $(STATEDIR)/ltp-hpi.compile + +$(STATEDIR)/ltp-hpi.compile: + @$(call targetinfo, $@) + @cd $(LTP_DIR)/testcases/open_hpi_testsuite; $(LTP_ENV) make $(PARALLELMFLAGS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +ltp-hpi_install: $(STATEDIR)/ltp-hpi.install + +$(STATEDIR)/ltp-hpi.install: + @$(call targetinfo, $@) + @mkdir -p $(LTP_HPI_PKGDIR)/bin + @ln -sf $(LTP_HPI_PKGDIR)/bin $(LTP_DIR)/testcases/bin + @cd $(LTP_DIR)/testcases/open_hpi_testsuite; $(LTP_ENV) make $(PARALLELMFLAGS) install + @rm $(LTP_DIR)/testcases/bin + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +ltp-hpi_targetinstall: $(STATEDIR)/ltp-hpi.targetinstall + +$(STATEDIR)/ltp-hpi.targetinstall: + @$(call targetinfo, $@) + + @$(call install_init, ltp-hpi) + @$(call install_fixup, ltp-hpi,PACKAGE,ltp-hpi) + @$(call install_fixup, ltp-hpi,PRIORITY,optional) + @$(call install_fixup, ltp-hpi,VERSION,$(LTP_VERSION)) + @$(call install_fixup, ltp-hpi,SECTION,base) + @$(call install_fixup, ltp-hpi,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup, ltp-hpi,DEPENDS,) + @$(call install_fixup, ltp-hpi,DESCRIPTION,missing) + + @for file in `find $(LTP_HPI_PKGDIR)/bin -type f`; do \ + PER=`stat -c "%a" $$file` \ + $(call install_copy, ltp-hpi, 0, 0, $$PER, $$file, $(LTP_BIN_DIR)/$$file); \ + done + + + @$(call install_finish, ltp-hpi) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +ltp-hpi_clean: + rm -rf $(STATEDIR)/ltp-hpi.* + rm -rf $(IMAGEDIR)/ltp-hpi_* + rm -rf $(LTP_HPI_DIR) + +# vim: syntax=make diff --git a/rules/ltp-kdump.in b/rules/ltp-kdump.in new file mode 100644 index 000000000..708c876ee --- /dev/null +++ b/rules/ltp-kdump.in @@ -0,0 +1,8 @@ + + +menuconfig LTP_KDUMP + bool + prompt "Kdump " + select LTP + depends on BROKEN + diff --git a/rules/ltp-kdump.make b/rules/ltp-kdump.make new file mode 100644 index 000000000..b4ed2fe2f --- /dev/null +++ b/rules/ltp-kdump.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_KDUMP) += ltp-kdump + +# +# Paths and names +# +LTP_KDUMP_VERSION = $(LTP_VERSION) +LTP_KDUMP = ltp-kdump-$(LTP_VERSION) +LTP_KDUMP_PKGDIR = $(PKGDIR)/$(LTP_KDUMP) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +ltp-kdump_get: $(STATEDIR)/ltp-kdump.get + +$(STATEDIR)/ltp-kdump.get: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +ltp-kdump_extract: $(STATEDIR)/ltp-kdump.extract + +$(STATEDIR)/ltp-kdump.extract: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +ltp-kdump_prepare: $(STATEDIR)/ltp-kdump.prepare + +$(STATEDIR)/ltp-kdump.prepare: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +ltp-kdump_compile: $(STATEDIR)/ltp-kdump.compile + +$(STATEDIR)/ltp-kdump.compile: + @$(call targetinfo, $@) + @cd $(LTP_DIR)/testcases/kdump; $(LTP_ENV) make $(PARALLELMFLAGS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +ltp-kdump_install: $(STATEDIR)/ltp-kdump.install + +$(STATEDIR)/ltp-kdump.install: + @$(call targetinfo, $@) + @mkdir -p $(LTP_KDUMP_PKGDIR)/bin + @ln -sf $(LTP_KDUMP_PKGDIR)/bin $(LTP_DIR)/testcases/bin + @cd $(LTP_DIR)/testcases/kdump; $(LTP_ENV) make $(PARALLELMFLAGS) install + @rm $(LTP_DIR)/testcases/bin + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +ltp-kdump_targetinstall: $(STATEDIR)/ltp-kdump.targetinstall + +$(STATEDIR)/ltp-kdump.targetinstall: + @$(call targetinfo, $@) + + @$(call install_init, ltp-kdump) + @$(call install_fixup, ltp-kdump,PACKAGE,ltp-kdump) + @$(call install_fixup, ltp-kdump,PRIORITY,optional) + @$(call install_fixup, ltp-kdump,VERSION,$(LTP_VERSION)) + @$(call install_fixup, ltp-kdump,SECTION,base) + @$(call install_fixup, ltp-kdump,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup, ltp-kdump,DEPENDS,) + @$(call install_fixup, ltp-kdump,DESCRIPTION,missing) + + @for file in `find $(LTP_KDUMP_PKGDIR)/bin -type f`; do \ + PER=`stat -c "%a" $$file` \ + $(call install_copy, ltp-kdump, 0, 0, $$PER, $$file, $(LTP_BIN_DIR)/$$file); \ + done + + + @$(call install_finish, ltp-kdump) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +ltp-kdump_clean: + rm -rf $(STATEDIR)/ltp-kdump.* + rm -rf $(IMAGEDIR)/ltp-kdump_* + rm -rf $(LTP_KDUMP_DIR) + +# vim: syntax=make diff --git a/rules/ltp-kernel.in b/rules/ltp-kernel.in index 04fded2c2..37993fbf1 100644 --- a/rules/ltp-kernel.in +++ b/rules/ltp-kernel.in @@ -1,7 +1,7 @@ menuconfig LTP_KERNEL bool prompt "Kernel " - depends on LTP + select LTP help Kernel based tests. 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 diff --git a/rules/ltp-misc.in b/rules/ltp-misc.in index fc21ae549..81f44973b 100644 --- a/rules/ltp-misc.in +++ b/rules/ltp-misc.in @@ -1,36 +1,36 @@ # ---------------------------------------------------------------------------- -menuconfig LTP_MISC +config LTP_MISC # ---------------------------------------------------------------------------- bool prompt "Misc " - depends on LTP + select LTP # Math ----------------------------------------------------------------------- -config LTP_MISC_MATH - bool - prompt "math" - depends on LTP_MISC - help - Floating point math tests of the LTP (Linux Test Project) - -config LTP_MISC_MATH_ABS - bool - prompt "abs" - depends on LTP_MISC_MATH - help - Absolute integer value test - -config LTP_MISC_MATH_ATOF - bool - prompt "atof" - depends on LTP_MISC_MATH - help - ASCII to float conversion - -config LTP_MISC_MATH_FLOAT - bool - prompt "float" - depends on LTP_MISC_MATH - help - Floating point tests +#config LTP_MISC_MATH +# bool +# prompt "math" +# depends on LTP_MISC +# help +# Floating point math tests of the LTP (Linux Test Project) +# +#config LTP_MISC_MATH_ABS +# bool +# prompt "abs" +# depends on LTP_MISC_MATH +# help +# Absolute integer value test +# +#config LTP_MISC_MATH_ATOF +# bool +# prompt "atof" +# depends on LTP_MISC_MATH +# help +# ASCII to float conversion +# +#config LTP_MISC_MATH_FLOAT +# bool +# prompt "float" +# depends on LTP_MISC_MATH +# help +# Floating point tests diff --git a/rules/ltp-misc.make b/rules/ltp-misc.make new file mode 100644 index 000000000..563c94a87 --- /dev/null +++ b/rules/ltp-misc.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_MISC) += ltp-misc + +# +# Paths and names +# +LTP_MISC_VERSION = $(LTP_VERSION) +LTP_MISC = ltp-misc-$(LTP_VERSION) +LTP_MISC_PKGDIR = $(PKGDIR)/$(LTP_MISC) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +ltp-misc_get: $(STATEDIR)/ltp-misc.get + +$(STATEDIR)/ltp-misc.get: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +ltp-misc_extract: $(STATEDIR)/ltp-misc.extract + +$(STATEDIR)/ltp-misc.extract: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +ltp-misc_prepare: $(STATEDIR)/ltp-misc.prepare + +$(STATEDIR)/ltp-misc.prepare: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +ltp-misc_compile: $(STATEDIR)/ltp-misc.compile + +$(STATEDIR)/ltp-misc.compile: + @$(call targetinfo, $@) + @cd $(LTP_DIR)/testcases/misc; $(LTP_ENV) make $(PARALLELMFLAGS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +ltp-misc_install: $(STATEDIR)/ltp-misc.install + +$(STATEDIR)/ltp-misc.install: + @$(call targetinfo, $@) + @mkdir -p $(LTP_MISC_PKGDIR)/bin + @ln -sf $(LTP_MISC_PKGDIR)/bin $(LTP_DIR)/testcases/bin + @cd $(LTP_DIR)/testcases/misc; $(LTP_ENV) make $(PARALLELMFLAGS) install + @rm $(LTP_DIR)/testcases/bin + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +ltp-misc_targetinstall: $(STATEDIR)/ltp-misc.targetinstall + +$(STATEDIR)/ltp-misc.targetinstall: + @$(call targetinfo, $@) + + @$(call install_init, ltp-misc) + @$(call install_fixup, ltp-misc,PACKAGE,ltp-misc) + @$(call install_fixup, ltp-misc,PRIORITY,optional) + @$(call install_fixup, ltp-misc,VERSION,$(LTP_VERSION)) + @$(call install_fixup, ltp-misc,SECTION,base) + @$(call install_fixup, ltp-misc,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup, ltp-misc,DEPENDS,) + @$(call install_fixup, ltp-misc,DESCRIPTION,missing) + + @for file in `find $(LTP_MISC_PKGDIR)/bin -type f`; do \ + PER=`stat -c "%a" $$file` \ + $(call install_copy, ltp-misc, 0, 0, $$PER, $$file, $(LTP_BIN_DIR)/$$file); \ + done + + + @$(call install_finish, ltp-misc) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +ltp-misc_clean: + rm -rf $(STATEDIR)/ltp-misc.* + rm -rf $(IMAGEDIR)/ltp-misc_* + rm -rf $(LTP_MISC_DIR) + +# vim: syntax=make diff --git a/rules/ltp-network.in b/rules/ltp-network.in new file mode 100644 index 000000000..0792c719f --- /dev/null +++ b/rules/ltp-network.in @@ -0,0 +1,6 @@ + +config LTP_NETWORK + bool + prompt "Network " + select LTP + diff --git a/rules/ltp-network.make b/rules/ltp-network.make new file mode 100644 index 000000000..1d44ab7f4 --- /dev/null +++ b/rules/ltp-network.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_NETWORK) += ltp-network + +# +# Paths and names +# +LTP_NETWORK_VERSION = $(LTP_VERSION) +LTP_NETWORK = ltp-network-$(LTP_VERSION) +LTP_NETWORK_PKGDIR = $(PKGDIR)/$(LTP_NETWORK) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +ltp-network_get: $(STATEDIR)/ltp-network.get + +$(STATEDIR)/ltp-network.get: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +ltp-network_extract: $(STATEDIR)/ltp-network.extract + +$(STATEDIR)/ltp-network.extract: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +ltp-network_prepare: $(STATEDIR)/ltp-network.prepare + +$(STATEDIR)/ltp-network.prepare: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +ltp-network_compile: $(STATEDIR)/ltp-network.compile + +$(STATEDIR)/ltp-network.compile: + @$(call targetinfo, $@) + @cd $(LTP_DIR)/testcases/network; $(LTP_ENV) make $(PARALLELMFLAGS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +ltp-network_install: $(STATEDIR)/ltp-network.install + +$(STATEDIR)/ltp-network.install: + @$(call targetinfo, $@) + @mkdir -p $(LTP_NETWORK_PKGDIR)/bin + @ln -sf $(LTP_NETWORK_PKGDIR)/bin $(LTP_DIR)/testcases/bin + @cd $(LTP_DIR)/testcases/network; $(LTP_ENV) make $(PARALLELMFLAGS) install + @rm $(LTP_DIR)/testcases/bin + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +ltp-network_targetinstall: $(STATEDIR)/ltp-network.targetinstall + +$(STATEDIR)/ltp-network.targetinstall: + @$(call targetinfo, $@) + + @$(call install_init, ltp-network) + @$(call install_fixup, ltp-network,PACKAGE,ltp-network) + @$(call install_fixup, ltp-network,PRIORITY,optional) + @$(call install_fixup, ltp-network,VERSION,$(LTP_VERSION)) + @$(call install_fixup, ltp-network,SECTION,base) + @$(call install_fixup, ltp-network,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup, ltp-network,DEPENDS,) + @$(call install_fixup, ltp-network,DESCRIPTION,missing) + + @for file in `find $(LTP_NETWORK_PKGDIR)/bin -type f`; do \ + PER=`stat -c "%a" $$file` \ + $(call install_copy, ltp-network, 0, 0, $$PER, $$file, $(LTP_BIN_DIR)/$$file); \ + done + + + @$(call install_finish, ltp-network) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +ltp-network_clean: + rm -rf $(STATEDIR)/ltp-network.* + rm -rf $(IMAGEDIR)/ltp-network_* + rm -rf $(LTP_NETWORK_DIR) + +# vim: syntax=make diff --git a/rules/ltp-posix.in b/rules/ltp-posix.in new file mode 100644 index 000000000..28a594d04 --- /dev/null +++ b/rules/ltp-posix.in @@ -0,0 +1,6 @@ + +menuconfig LTP_POSIX + bool + prompt "open_posix_testsuite" + select LTP + depends on BROKEN diff --git a/rules/ltp-posix.make b/rules/ltp-posix.make new file mode 100644 index 000000000..6a7de0a0f --- /dev/null +++ b/rules/ltp-posix.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_POSIX) += ltp-posix + +# +# Paths and names +# +LTP_POSIX_VERSION = $(LTP_VERSION) +LTP_POSIX = ltp-posix-$(LTP_VERSION) +LTP_POSIX_PKGDIR = $(PKGDIR)/$(LTP_POSIX) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +ltp-posix_get: $(STATEDIR)/ltp-posix.get + +$(STATEDIR)/ltp-posix.get: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +ltp-posix_extract: $(STATEDIR)/ltp-posix.extract + +$(STATEDIR)/ltp-posix.extract: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +ltp-posix_prepare: $(STATEDIR)/ltp-posix.prepare + +$(STATEDIR)/ltp-posix.prepare: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +ltp-posix_compile: $(STATEDIR)/ltp-posix.compile + +$(STATEDIR)/ltp-posix.compile: + @$(call targetinfo, $@) + @cd $(LTP_DIR)/testcases/open_posix_testsuite; $(LTP_ENV) make $(PARALLELMFLAGS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +ltp-posix_install: $(STATEDIR)/ltp-posix.install + +$(STATEDIR)/ltp-posix.install: + @$(call targetinfo, $@) + @mkdir -p $(LTP_POSIX_PKGDIR)/bin + @ln -sf $(LTP_POSIX_PKGDIR)/bin $(LTP_DIR)/testcases/bin + @cd $(LTP_DIR)/testcases/open_posix_testsuite; $(LTP_ENV) make $(PARALLELMFLAGS) install + @rm $(LTP_DIR)/testcases/bin + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +ltp-posix_targetinstall: $(STATEDIR)/ltp-posix.targetinstall + +$(STATEDIR)/ltp-posix.targetinstall: + @$(call targetinfo, $@) + + @$(call install_init, ltp-posix) + @$(call install_fixup, ltp-posix,PACKAGE,ltp-posix) + @$(call install_fixup, ltp-posix,PRIORITY,optional) + @$(call install_fixup, ltp-posix,VERSION,$(LTP_VERSION)) + @$(call install_fixup, ltp-posix,SECTION,base) + @$(call install_fixup, ltp-posix,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup, ltp-posix,DEPENDS,) + @$(call install_fixup, ltp-posix,DESCRIPTION,missing) + + @for file in `find $(LTP_POSIX_PKGDIR)/bin -type f`; do \ + PER=`stat -c "%a" $$file` \ + $(call install_copy, ltp-posix, 0, 0, $$PER, $$file, $(LTP_BIN_DIR)/$$file); \ + done + + + @$(call install_finish, ltp-posix) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +ltp-posix_clean: + rm -rf $(STATEDIR)/ltp-posix.* + rm -rf $(IMAGEDIR)/ltp-posix_* + rm -rf $(LTP_POSIX_DIR) + +# vim: syntax=make diff --git a/rules/ltp-pounder21.in b/rules/ltp-pounder21.in new file mode 100644 index 000000000..e10f1b77c --- /dev/null +++ b/rules/ltp-pounder21.in @@ -0,0 +1,7 @@ + +menuconfig LTP_POUNDER21 + bool + prompt "Pounder21 " + select LTP + depends on BROKEN + diff --git a/rules/ltp-pounder21.make b/rules/ltp-pounder21.make new file mode 100644 index 000000000..c10dc385f --- /dev/null +++ b/rules/ltp-pounder21.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_POUNDER21) += ltp-pounder21 + +# +# Paths and names +# +LTP_POUNDER21_VERSION = $(LTP_VERSION) +LTP_POUNDER21 = ltp-pounder21-$(LTP_VERSION) +LTP_POUNDER21_PKGDIR = $(PKGDIR)/$(LTP_POUNDER21) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +ltp-pounder21_get: $(STATEDIR)/ltp-pounder21.get + +$(STATEDIR)/ltp-pounder21.get: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +ltp-pounder21_extract: $(STATEDIR)/ltp-pounder21.extract + +$(STATEDIR)/ltp-pounder21.extract: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +ltp-pounder21_prepare: $(STATEDIR)/ltp-pounder21.prepare + +$(STATEDIR)/ltp-pounder21.prepare: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +ltp-pounder21_compile: $(STATEDIR)/ltp-pounder21.compile + +$(STATEDIR)/ltp-pounder21.compile: + @$(call targetinfo, $@) + @cd $(LTP_DIR)/testcases/pounder21; $(LTP_ENV) make $(PARALLELMFLAGS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +ltp-pounder21_install: $(STATEDIR)/ltp-pounder21.install + +$(STATEDIR)/ltp-pounder21.install: + @$(call targetinfo, $@) + @mkdir -p $(LTP_POUNDER21_PKGDIR)/bin + @ln -sf $(LTP_POUNDER21_PKGDIR)/bin $(LTP_DIR)/testcases/bin + @cd $(LTP_DIR)/testcases/pounder21; $(LTP_ENV) make $(PARALLELMFLAGS) install + @rm $(LTP_DIR)/testcases/bin + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +ltp-pounder21_targetinstall: $(STATEDIR)/ltp-pounder21.targetinstall + +$(STATEDIR)/ltp-pounder21.targetinstall: + @$(call targetinfo, $@) + + @$(call install_init, ltp-pounder21) + @$(call install_fixup, ltp-pounder21,PACKAGE,ltp-pounder21) + @$(call install_fixup, ltp-pounder21,PRIORITY,optional) + @$(call install_fixup, ltp-pounder21,VERSION,$(LTP_VERSION)) + @$(call install_fixup, ltp-pounder21,SECTION,base) + @$(call install_fixup, ltp-pounder21,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup, ltp-pounder21,DEPENDS,) + @$(call install_fixup, ltp-pounder21,DESCRIPTION,missing) + + @for file in `find $(LTP_POUNDER21_PKGDIR)/bin -type f`; do \ + PER=`stat -c "%a" $$file` \ + $(call install_copy, ltp-pounder21, 0, 0, $$PER, $$file, $(LTP_BIN_DIR)/$$file); \ + done + + + @$(call install_finish, ltp-pounder21) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +ltp-pounder21_clean: + rm -rf $(STATEDIR)/ltp-pounder21.* + rm -rf $(IMAGEDIR)/ltp-pounder21_* + rm -rf $(LTP_POUNDER21_DIR) + +# vim: syntax=make diff --git a/rules/ltp-realtime.in b/rules/ltp-realtime.in new file mode 100644 index 000000000..bd5209749 --- /dev/null +++ b/rules/ltp-realtime.in @@ -0,0 +1,6 @@ + +config LTP_REALTIME + bool + prompt "Realtime " + select LTP + diff --git a/rules/ltp-realtime.make b/rules/ltp-realtime.make new file mode 100644 index 000000000..6eb0d9334 --- /dev/null +++ b/rules/ltp-realtime.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_REALTIME) += ltp-realtime + +# +# Paths and names +# +LTP_REALTIME_VERSION = $(LTP_VERSION) +LTP_REALTIME = ltp-realtime-$(LTP_VERSION) +LTP_REALTIME_PKGDIR = $(PKGDIR)/$(LTP_REALTIME) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +ltp-realtime_get: $(STATEDIR)/ltp-realtime.get + +$(STATEDIR)/ltp-realtime.get: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +ltp-realtime_extract: $(STATEDIR)/ltp-realtime.extract + +$(STATEDIR)/ltp-realtime.extract: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +ltp-realtime_prepare: $(STATEDIR)/ltp-realtime.prepare + +$(STATEDIR)/ltp-realtime.prepare: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +ltp-realtime_compile: $(STATEDIR)/ltp-realtime.compile + +$(STATEDIR)/ltp-realtime.compile: + @$(call targetinfo, $@) + @cd $(LTP_DIR)/testcases/realtime; $(LTP_ENV) make $(PARALLELMFLAGS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +ltp-realtime_install: $(STATEDIR)/ltp-realtime.install + +$(STATEDIR)/ltp-realtime.install: + @$(call targetinfo, $@) + @mkdir -p $(LTP_REALTIME_PKGDIR)/bin + @ln -sf $(LTP_REALTIME_PKGDIR)/bin $(LTP_DIR)/testcases/bin + @cd $(LTP_DIR)/testcases/realtime; $(LTP_ENV) make $(PARALLELMFLAGS) install + @rm $(LTP_DIR)/testcases/bin + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +ltp-realtime_targetinstall: $(STATEDIR)/ltp-realtime.targetinstall + +$(STATEDIR)/ltp-realtime.targetinstall: + @$(call targetinfo, $@) + + @$(call install_init, ltp-realtime) + @$(call install_fixup, ltp-realtime,PACKAGE,ltp-realtime) + @$(call install_fixup, ltp-realtime,PRIORITY,optional) + @$(call install_fixup, ltp-realtime,VERSION,$(LTP_VERSION)) + @$(call install_fixup, ltp-realtime,SECTION,base) + @$(call install_fixup, ltp-realtime,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup, ltp-realtime,DEPENDS,) + @$(call install_fixup, ltp-realtime,DESCRIPTION,missing) + + @for file in `find $(LTP_REALTIME_PKGDIR)/bin -type f`; do \ + PER=`stat -c "%a" $$file` \ + $(call install_copy, ltp-realtime, 0, 0, $$PER, $$file, $(LTP_BIN_DIR)/$$file); \ + done + + + @$(call install_finish, ltp-realtime) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +ltp-realtime_clean: + rm -rf $(STATEDIR)/ltp-realtime.* + rm -rf $(IMAGEDIR)/ltp-realtime_* + rm -rf $(LTP_REALTIME_DIR) + +# vim: syntax=make diff --git a/rules/ltp-template.make b/rules/ltp-template.make new file mode 100644 index 000000000..f28fdd7de --- /dev/null +++ b/rules/ltp-template.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_TEMPLATE) += ltp-template + +# +# Paths and names +# +LTP_TEMPLATE_VERSION = $(LTP_VERSION) +LTP_TEMPLATE = ltp-template-$(LTP_VERSION) +LTP_TEMPLATE_PKGDIR = $(PKGDIR)/$(LTP_TEMPLATE) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +ltp-template_get: $(STATEDIR)/ltp-template.get + +$(STATEDIR)/ltp-template.get: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +ltp-template_extract: $(STATEDIR)/ltp-template.extract + +$(STATEDIR)/ltp-template.extract: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +ltp-template_prepare: $(STATEDIR)/ltp-template.prepare + +$(STATEDIR)/ltp-template.prepare: + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +ltp-template_compile: $(STATEDIR)/ltp-template.compile + +$(STATEDIR)/ltp-template.compile: + @$(call targetinfo, $@) + @cd $(LTP_DIR)/testcases/template; $(LTP_ENV) make $(PARALLELMFLAGS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +ltp-template_install: $(STATEDIR)/ltp-template.install + +$(STATEDIR)/ltp-template.install: + @$(call targetinfo, $@) + @mkdir -p $(LTP_TEMPLATE_PKGDIR)/bin + @ln -sf $(LTP_TEMPLATE_PKGDIR)/bin $(LTP_DIR)/testcases/bin + @cd $(LTP_DIR)/testcases/template; $(LTP_ENV) make $(PARALLELMFLAGS) install + @rm $(LTP_DIR)/testcases/bin + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +ltp-template_targetinstall: $(STATEDIR)/ltp-template.targetinstall + +$(STATEDIR)/ltp-template.targetinstall: + @$(call targetinfo, $@) + + @$(call install_init, ltp-template) + @$(call install_fixup, ltp-template,PACKAGE,ltp-template) + @$(call install_fixup, ltp-template,PRIORITY,optional) + @$(call install_fixup, ltp-template,VERSION,$(LTP_VERSION)) + @$(call install_fixup, ltp-template,SECTION,base) + @$(call install_fixup, ltp-template,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup, ltp-template,DEPENDS,) + @$(call install_fixup, ltp-template,DESCRIPTION,missing) + + @for file in `find $(LTP_TEMPLATE_PKGDIR)/bin -type f`; do \ + PER=`stat -c "%a" $$file` \ + $(call install_copy, ltp-template, 0, 0, $$PER, $$file, $(LTP_BIN_DIR)/$$file); \ + done + + + @$(call install_finish, ltp-template) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +ltp-template_clean: + rm -rf $(STATEDIR)/ltp-template.* + rm -rf $(IMAGEDIR)/ltp-template_* + rm -rf $(LTP_TEMPLATE_DIR) + +# vim: syntax=make diff --git a/rules/ltp.in b/rules/ltp.in index 4cf66154b..61d199c1c 100644 --- a/rules/ltp.in +++ b/rules/ltp.in @@ -1,4 +1,5 @@ -menuconfig LTP +menu "Linux Test Project " +config LTP bool prompt "Linux Test Project " help @@ -13,6 +14,14 @@ menuconfig LTP source "rules/ltp-ballista.in" source "rules/ltp-commands.in" +source "rules/ltp-dots.in" +source "rules/ltp-hpi.in" +source "rules/ltp-kdump.in" source "rules/ltp-kernel.in" source "rules/ltp-misc.in" +source "rules/ltp-network.in" +source "rules/ltp-posix.in" +source "rules/ltp-pounder21.in" +source "rules/ltp-realtime.in" +endmenu diff --git a/rules/ltp.make b/rules/ltp.make index 6d3f94690..bc3d28707 100644 --- a/rules/ltp.make +++ b/rules/ltp.make @@ -23,7 +23,7 @@ LTP_SUFFIX = tgz LTP_URL = $(PTXCONF_SETUP_SFMIRROR)/ltp/$(LTP).$(LTP_SUFFIX) LTP_SOURCE = $(SRCDIR)/$(LTP).$(LTP_SUFFIX) LTP_DIR = $(BUILDDIR)/$(LTP) - +LTP_BIN_DIR = /usr/bin/ltp # ---------------------------------------------------------------------------- # Get @@ -59,7 +59,7 @@ $(STATEDIR)/ltp.extract: $(ltp_extract_deps_default) ltp_prepare: $(STATEDIR)/ltp.prepare LTP_PATH = PATH=$(CROSS_PATH) -LTP_ENV = $(CROSS_ENV) +LTP_ENV = $(CROSS_ENV) LDFLAGS="-L$(LTP_DIR)/lib" $(STATEDIR)/ltp.prepare: $(ltp_prepare_deps_default) @$(call targetinfo, $@) @@ -73,13 +73,7 @@ ltp_compile: $(STATEDIR)/ltp.compile $(STATEDIR)/ltp.compile: $(ltp_compile_deps_default) @$(call targetinfo, $@) - cd $(LTP_DIR); \ - CROSS_COMPILER=$(PTXDIST_WORKSPACE)/.toolchain/$(PTXCONF_COMPILER_PREFIX) \ - make \ - CROSS_CFLAGS="$(CROSS_CPPFLAGS)" \ - LDFLAGS="-static -L$(LTP_DIR)/lib" \ - LOADLIBS="-lpthread -lc -lresolv -lnss_dns -lnss_files -lm -lc" \ - $(PARALLELMFLAGS) all install + cd $(LTP_DIR); $(LTP_ENV) make $(PARALLELMFLAGS) libltp.a # CROSS_COMPILER=$(PTXDIST_WORKSPACE)/.toolchain/$(PTXCONF_COMPILER_PREFIX) \ # make CROSS_CFLAGS="" LDFLAGS="-static -L$(LTP_DIR)/lib" \ @@ -121,11 +115,6 @@ $(STATEDIR)/ltp.targetinstall: $(ltp_targetinstall_deps_default) @$(call install_fixup, ltp,DEPENDS,) @$(call install_fixup, ltp,DESCRIPTION,missing) - cd $(LTP_DIR)/testcases/bin; \ - for file in `find . -type f`; do \ - $(call install_copy, ltp, 0, 0, 0755, $(LTP_DIR)/testcases/bin/$$file, /usr/bin/ltp/$$file); \ - done - @$(call install_finish, ltp) @$(call touch, $@) |