summaryrefslogtreecommitdiffstats
path: root/rules/sched_switch.make
diff options
context:
space:
mode:
Diffstat (limited to 'rules/sched_switch.make')
-rw-r--r--rules/sched_switch.make69
1 files changed, 69 insertions, 0 deletions
diff --git a/rules/sched_switch.make b/rules/sched_switch.make
new file mode 100644
index 000000000..77c70f247
--- /dev/null
+++ b/rules/sched_switch.make
@@ -0,0 +1,69 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2010 by Remy Bohmer <linux@bohmer.net>
+#
+# 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_SCHED_SWITCH) += sched_switch
+
+#
+# Paths and names
+#
+SCHED_SWITCH_VERSION := 0.1
+SCHED_SWITCH := sched_switch-$(SCHED_SWITCH_VERSION)
+SCHED_SWITCH_SUFFIX := tgz
+SCHED_SWITCH_URL := http://www.osadl.org/uploads/media/$(SCHED_SWITCH).$(SCHED_SWITCH_SUFFIX)
+SCHED_SWITCH_SOURCE := $(SRCDIR)/$(SCHED_SWITCH).$(SCHED_SWITCH_SUFFIX)
+SCHED_SWITCH_DIR := $(BUILDDIR)/$(SCHED_SWITCH)
+SCHED_SWITCH_LICENSE := GPLv2
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(SCHED_SWITCH_SOURCE):
+ @$(call targetinfo)
+ @$(call get, SCHED_SWITCH)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SCHED_SWITCH_CONF_TOOL := NO
+SCHED_SWITCH_COMPILE_ENV:= $(CROSS_ENV_FLAGS)
+SCHED_SWITCH_MAKE_OPT := $(CROSS_ENV_CC)
+SCHED_SWITCH_INSTALL_OPT:= \
+ $(SCHED_SWITCH_MAKE_OPT) \
+ DESTDIR=$(SCHED_SWITCH_PKGDIR) \
+ install
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sched_switch.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, sched_switch)
+ @$(call install_fixup, sched_switch,PACKAGE,sched-switch)
+ @$(call install_fixup, sched_switch,PRIORITY,optional)
+ @$(call install_fixup, sched_switch,VERSION,$(SCHED_SWITCH_VERSION))
+ @$(call install_fixup, sched_switch,SECTION,base)
+ @$(call install_fixup, sched_switch,AUTHOR,"Remy Bohmer <linux@bohmer.net>")
+ @$(call install_fixup, sched_switch,DEPENDS,)
+ @$(call install_fixup, sched_switch,DESCRIPTION,missing)
+
+ @$(call install_copy, sched_switch, 0, 0, 0755, -, /usr/bin/sched_switch)
+
+ @$(call install_finish, sched_switch)
+
+ @$(call touch)
+
+# vim: syntax=make