aboutsummaryrefslogtreecommitdiffstats
path: root/meta-tlk
diff options
context:
space:
mode:
Diffstat (limited to 'meta-tlk')
-rw-r--r--meta-tlk/COPYING.MIT17
-rw-r--r--meta-tlk/README9
-rw-r--r--meta-tlk/conf/layer.conf13
-rw-r--r--meta-tlk/recipes-core/base-files/base-files_3.0.14.bbappend1
-rw-r--r--meta-tlk/recipes-core/base-files/files/motd7
-rw-r--r--meta-tlk/recipes-core/psplash/files/psplash-tlk.pngbin42295 -> 0 bytes
-rw-r--r--meta-tlk/recipes-core/psplash/psplash_git.bbappend6
-rw-r--r--meta-tlk/recipes-kernel/linux/files/time-limited-kernel.cfg3
-rw-r--r--meta-tlk/recipes-kernel/linux/files/uptime-allow-the-optional-limiting-of-kernel-runtime.patch251
-rw-r--r--meta-tlk/recipes-kernel/linux/linux-intel_%.bbappend3
-rw-r--r--meta-tlk/recipes-kernel/linux/linux-yocto_%.bbappend2
11 files changed, 0 insertions, 312 deletions
diff --git a/meta-tlk/COPYING.MIT b/meta-tlk/COPYING.MIT
deleted file mode 100644
index fb950dc6..00000000
--- a/meta-tlk/COPYING.MIT
+++ /dev/null
@@ -1,17 +0,0 @@
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/meta-tlk/README b/meta-tlk/README
deleted file mode 100644
index 07cbd76e..00000000
--- a/meta-tlk/README
+++ /dev/null
@@ -1,9 +0,0 @@
-meta-tlk
-========
-
-This layer makes the appropriate kernel modifications to enable a 10 day
-time limit in the official BSP images produced using the Yocto Project
-autobuilder, in order to encourage people to produce their own images
-for production whilst still allowing the images to be useful for testing
-and debugging.
-
diff --git a/meta-tlk/conf/layer.conf b/meta-tlk/conf/layer.conf
deleted file mode 100644
index dea544fd..00000000
--- a/meta-tlk/conf/layer.conf
+++ /dev/null
@@ -1,13 +0,0 @@
-# We have a conf and classes directory, add to BBPATH
-BBPATH .= ":${LAYERDIR}"
-
-# We have recipes-* directories, add to BBFILES
-BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
- ${LAYERDIR}/recipes-*/*/*.bbappend"
-
-BBFILE_COLLECTIONS += "tlk"
-BBFILE_PATTERN_tlk := "^${LAYERDIR}/"
-BBFILE_PRIORITY_tlk = "5"
-
-LAYERDEPENDS_tlk = "core intel"
-
diff --git a/meta-tlk/recipes-core/base-files/base-files_3.0.14.bbappend b/meta-tlk/recipes-core/base-files/base-files_3.0.14.bbappend
deleted file mode 100644
index 81fe7b79..00000000
--- a/meta-tlk/recipes-core/base-files/base-files_3.0.14.bbappend
+++ /dev/null
@@ -1 +0,0 @@
-FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
diff --git a/meta-tlk/recipes-core/base-files/files/motd b/meta-tlk/recipes-core/base-files/files/motd
deleted file mode 100644
index 13cd74c7..00000000
--- a/meta-tlk/recipes-core/base-files/files/motd
+++ /dev/null
@@ -1,7 +0,0 @@
-This image contains a time limited kernel and will reboot the machine
-automatically in 10 days. Do not include this image in a product.
-
-Use the image for evaluation purposes only.
-
-Please see http://www.yoctoproject.org/tlk for instructions on how to
-eliminate the timeout.
diff --git a/meta-tlk/recipes-core/psplash/files/psplash-tlk.png b/meta-tlk/recipes-core/psplash/files/psplash-tlk.png
deleted file mode 100644
index 54b8fae7..00000000
--- a/meta-tlk/recipes-core/psplash/files/psplash-tlk.png
+++ /dev/null
Binary files differ
diff --git a/meta-tlk/recipes-core/psplash/psplash_git.bbappend b/meta-tlk/recipes-core/psplash/psplash_git.bbappend
deleted file mode 100644
index 176a299e..00000000
--- a/meta-tlk/recipes-core/psplash/psplash_git.bbappend
+++ /dev/null
@@ -1,6 +0,0 @@
-FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
-
-# NB: this is only for the main logo image; if you add multiple images here,
-# poky will build multiple psplash packages with 'outsuffix' in name for
-# each of these ...
-SPLASH_IMAGES = "file://psplash-tlk.png;outsuffix=default"
diff --git a/meta-tlk/recipes-kernel/linux/files/time-limited-kernel.cfg b/meta-tlk/recipes-kernel/linux/files/time-limited-kernel.cfg
deleted file mode 100644
index 44f4beaa..00000000
--- a/meta-tlk/recipes-kernel/linux/files/time-limited-kernel.cfg
+++ /dev/null
@@ -1,3 +0,0 @@
-CONFIG_UPTIME_LIMITED_KERNEL=y
-CONFIG_UPTIME_LIMIT_DURATION=14400
-CONFIG_UPTIME_LIMIT_KERNEL_REBOOT=y
diff --git a/meta-tlk/recipes-kernel/linux/files/uptime-allow-the-optional-limiting-of-kernel-runtime.patch b/meta-tlk/recipes-kernel/linux/files/uptime-allow-the-optional-limiting-of-kernel-runtime.patch
deleted file mode 100644
index aa143059..00000000
--- a/meta-tlk/recipes-kernel/linux/files/uptime-allow-the-optional-limiting-of-kernel-runtime.patch
+++ /dev/null
@@ -1,251 +0,0 @@
-From a21e483b57c8c31beaa5063268ec35da375daf04 Mon Sep 17 00:00:00 2001
-From: Bruce Ashfield <bruce.ashfield@windriver.com>
-Date: Tue, 12 Jul 2011 10:26:50 -0400
-Subject: [PATCH] uptime: allow the optional limiting of kernel runtime
-
-Introduce the ability to limit the limit the uptime of a kernel.
-When enabled, these options set a maximum uptime on the kernel, and
-(optionally) trigger a clean reboot at expiration.
-
-This functionality may appear to be very close to the softdog watchdog
-implementation. It is. But can't be the softdog for several reasons:
-
- - The soft watchdog should be available while this functionality is active
- - The duration range is different between this and the softdog. The
- timeout available here is potentially quite a bit longer.
- - At expiration, there are different expiration requirements and actions.
- - This functionality is specific to a particular use case and should
- not impact mainline functionality
-
-To cleanly restart the kernel after one minute of uptime, the following
-config items would be required:
-
- CONFIG_UPTIME_LIMITED_KERNEL=y
- CONFIG_UPTIME_LIMIT_DURATION=1
- CONFIG_UPTIME_LIMIT_KERNEL_REBOOT=y
-
-Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-
-diff --git a/init/Kconfig b/init/Kconfig
-index cac3f096050d..77d6d5fa1b1d 100644
---- a/init/Kconfig
-+++ b/init/Kconfig
-@@ -1376,6 +1376,31 @@ menuconfig EXPERT
- environments which can tolerate a "non-standard" kernel.
- Only use this if you really know what you are doing.
-
-+config UPTIME_LIMITED_KERNEL
-+ bool "Create a kernel with uptime limitations"
-+ default n
-+ help
-+ Limit the amount of time a kernel can run. The associated UPTIME_LIMIT*
-+ kernel config options should be used to tune the behaviour.
-+
-+config UPTIME_LIMIT_DURATION
-+ int "Kernel uptime limit in minutes"
-+ depends on UPTIME_LIMITED_KERNEL
-+ range 0 14400
-+ default 0
-+ help
-+ Define the uptime limitation on a kernel in minutes. Once
-+ the defined time expires the kernel will emit a warning, cease
-+ to be usable and eventually restart. The valid range is 0 (disable)
-+ to 14400 (10 days)
-+
-+config UPTIME_LIMIT_KERNEL_REBOOT
-+ bool "Reboot a time limited kernel at expiration"
-+ depends on UPTIME_LIMITED_KERNEL
-+ default y
-+ help
-+ Reboot an uptime limited kernel at expiration.
-+
- config UID16
- bool "Enable 16-bit UID system calls" if EXPERT
- depends on HAVE_UID16 && MULTIUSER
-diff --git a/kernel/Makefile b/kernel/Makefile
-index e2ec54e2b952..6b7bdddd624b 100644
---- a/kernel/Makefile
-+++ b/kernel/Makefile
-@@ -45,6 +45,7 @@ obj-$(CONFIG_FREEZER) += freezer.o
- obj-$(CONFIG_PROFILING) += profile.o
- obj-$(CONFIG_STACKTRACE) += stacktrace.o
- obj-y += time/
-+obj-$(CONFIG_UPTIME_LIMITED_KERNEL) += uptime_limit.o
- obj-$(CONFIG_FUTEX) += futex.o
- ifeq ($(CONFIG_COMPAT),y)
- obj-$(CONFIG_FUTEX) += futex_compat.o
-diff --git a/kernel/uptime_limit.c b/kernel/uptime_limit.c
-new file mode 100644
-index 000000000000..b6a1a5e4f9d9
---- /dev/null
-+++ b/kernel/uptime_limit.c
-@@ -0,0 +1,166 @@
-+/*
-+ * uptime_limit.c
-+ *
-+ * This file contains the functions which can limit kernel uptime
-+ *
-+ * Copyright (C) 2011 Bruce Ashfield (bruce.ashfield@windriver.com)
-+ *
-+ * This program is free software; you can redistribute it and/or modify
-+ * it under the terms of the GNU General Public License as published by
-+ * the Free Software Foundation; either version 2 of the License, or
-+ * (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-+ *
-+ *
-+ * This functionality is somewhat close to the softdog watchdog
-+ * implementation, but it cannot be used directly for several reasons:
-+ *
-+ * - The soft watchdog should be available while this functionality is active
-+ * - The duration range is different between this and the softdog. The
-+ * timeout available here is potentially quite a bit longer.
-+ * - At expiration, there are different expiration requirements and actions.
-+ * - This functionality is specific to a particular use case and should
-+ * not impact mainline functionality
-+ *
-+ */
-+#include <linux/kernel.h>
-+#include <linux/reboot.h>
-+#include <linux/timer.h>
-+#include <linux/delay.h>
-+#include <linux/kthread.h>
-+
-+#define UPTIME_LIMIT_IN_SECONDS (CONFIG_UPTIME_LIMIT_DURATION * 60)
-+#define MIN(X, Y) ((X) <= (Y) ? (X) : (Y))
-+#define TEN_MINUTES_IN_SECONDS 600
-+
-+enum uptime_expiration_type {
-+ uptime_no_action,
-+ uptime_reboot
-+};
-+
-+static enum uptime_expiration_type uptime_expiration_action = uptime_no_action;
-+static struct timer_list timelimit_timer;
-+static struct task_struct *uptime_worker_task;
-+
-+static void timelimit_expire(unsigned long timeout_seconds)
-+{
-+ char msg[128];
-+ int msglen = 127;
-+
-+ if (timeout_seconds) {
-+ if (timeout_seconds >= 60)
-+ snprintf(msg, msglen,
-+ "Uptime: kernel validity duration has %d %s remaining\n",
-+ (int) timeout_seconds / 60, "minute(s)");
-+ else
-+ snprintf(msg, msglen,
-+ "Uptime: kernel validity duration has %d %s remaining\n",
-+ (int) timeout_seconds, "seconds");
-+
-+ printk(KERN_CRIT "%s", msg);
-+
-+ timelimit_timer.expires = jiffies + timeout_seconds * HZ;
-+ timelimit_timer.data = 0;
-+ add_timer_on(&timelimit_timer, cpumask_first(cpu_online_mask));
-+ } else {
-+ printk(KERN_CRIT "Uptime: Kernel validity timeout has expired\n");
-+#ifdef CONFIG_UPTIME_LIMIT_KERNEL_REBOOT
-+ uptime_expiration_action = uptime_reboot;
-+ wake_up_process(uptime_worker_task);
-+ }
-+#endif
-+}
-+
-+/*
-+ * This thread starts and then immediately goes to sleep. When it is woken
-+ * up, it carries out the instructions left in uptime_expiration_action. If
-+ * no action was specified it simply goes back to sleep.
-+ */
-+static int uptime_worker(void *unused)
-+{
-+ set_current_state(TASK_INTERRUPTIBLE);
-+
-+ while (!kthread_should_stop()) {
-+ schedule();
-+
-+ if (kthread_should_stop())
-+ break;
-+
-+ if (uptime_expiration_action == uptime_reboot) {
-+ printk(KERN_CRIT "Uptime: restarting machine\n");
-+ kernel_restart(NULL);
-+ }
-+
-+ set_current_state(TASK_INTERRUPTIBLE);
-+ }
-+ __set_current_state(TASK_RUNNING);
-+
-+ return 0;
-+}
-+
-+static int timeout_enable(int cpu)
-+{
-+ int err = 0;
-+ int warning_limit;
-+
-+ /*
-+ * Create an uptime worker thread. This thread is required since the
-+ * safe version of kernel restart cannot be called from a
-+ * non-interruptible context. Which means we cannot call it directly
-+ * from a timer callback. So we arrange for the timer expiration to
-+ * wakeup a thread, which performs the action.
-+ */
-+ uptime_worker_task = kthread_create(uptime_worker,
-+ (void *)(unsigned long)cpu,
-+ "uptime_worker/%d", cpu);
-+ if (IS_ERR(uptime_worker_task)) {
-+ printk(KERN_ERR "Uptime: task for cpu %i failed\n", cpu);
-+ err = PTR_ERR(uptime_worker_task);
-+ goto out;
-+ }
-+ /* bind to cpu0 to avoid migration and hot plug nastiness */
-+ kthread_bind(uptime_worker_task, cpu);
-+ wake_up_process(uptime_worker_task);
-+
-+ /* Create the timer that will wake the uptime thread at expiration */
-+ init_timer(&timelimit_timer);
-+ timelimit_timer.function = timelimit_expire;
-+ /*
-+ * Fire two timers. One warning timeout and the final timer
-+ * which will carry out the expiration action. The warning timer will
-+ * expire at the minimum of half the original time or ten minutes.
-+ */
-+ warning_limit = MIN(UPTIME_LIMIT_IN_SECONDS/2, TEN_MINUTES_IN_SECONDS);
-+ timelimit_timer.expires = jiffies + warning_limit * HZ;
-+ timelimit_timer.data = UPTIME_LIMIT_IN_SECONDS - warning_limit;
-+
-+ add_timer_on(&timelimit_timer, cpumask_first(cpu_online_mask));
-+out:
-+ return err;
-+}
-+
-+static int __init timelimit_init(void)
-+{
-+ int err = 0;
-+
-+ printk(KERN_INFO "Uptime: system uptime restrictions enabled\n");
-+
-+ /*
-+ * Enable the timeout thread for cpu 0 only, assuming that the
-+ * uptime limit is non-zero, to protect against any cpu
-+ * migration issues.
-+ */
-+ if (UPTIME_LIMIT_IN_SECONDS)
-+ err = timeout_enable(0);
-+
-+ return err;
-+}
-+device_initcall(timelimit_init);
---
-2.10.1
-
diff --git a/meta-tlk/recipes-kernel/linux/linux-intel_%.bbappend b/meta-tlk/recipes-kernel/linux/linux-intel_%.bbappend
deleted file mode 100644
index 47c62efe..00000000
--- a/meta-tlk/recipes-kernel/linux/linux-intel_%.bbappend
+++ /dev/null
@@ -1,3 +0,0 @@
-FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
-SRC_URI_append = " file://time-limited-kernel.cfg \
- file://uptime-allow-the-optional-limiting-of-kernel-runtime.patch"
diff --git a/meta-tlk/recipes-kernel/linux/linux-yocto_%.bbappend b/meta-tlk/recipes-kernel/linux/linux-yocto_%.bbappend
deleted file mode 100644
index 30085121..00000000
--- a/meta-tlk/recipes-kernel/linux/linux-yocto_%.bbappend
+++ /dev/null
@@ -1,2 +0,0 @@
-FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
-SRC_URI_append = " file://time-limited-kernel.cfg"