From fb15cc4e1c4be75c81acaf6a1dd33675a9142975 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Wed, 3 Aug 2011 16:39:14 -0400 Subject: meta-tlk: initial creation Call this layer whatever you want, but when enabled it turns on BSP configuration items specific to autobuild/official binary images. Once this is enabled the uptime of any BSP will be limted to the value in the .cfg. It is currently at 2 minutes as an example, but it should be extended to a number of days going forward. Signed-off-by: Bruce Ashfield meta-tlk: Rename and changed to 10 day limit Signed-off-by: Saul Wold --- meta-tlk/README | 6 ++++++ meta-tlk/conf/layer.conf | 6 ++++++ meta-tlk/recipes-kernel/linux/linux-yocto/time-limited-kernel.cfg | 3 +++ meta-tlk/recipes-kernel/linux/linux-yocto_3.0.bbappend | 4 ++++ 4 files changed, 19 insertions(+) create mode 100644 meta-tlk/README create mode 100644 meta-tlk/conf/layer.conf create mode 100644 meta-tlk/recipes-kernel/linux/linux-yocto/time-limited-kernel.cfg create mode 100644 meta-tlk/recipes-kernel/linux/linux-yocto_3.0.bbappend (limited to 'meta-tlk') diff --git a/meta-tlk/README b/meta-tlk/README new file mode 100644 index 00000000..5ff4d3bc --- /dev/null +++ b/meta-tlk/README @@ -0,0 +1,6 @@ +meta-autobuilder +=============== + +Contains recipe modifications required to produce the official +yocto autobuild BSPs. + diff --git a/meta-tlk/conf/layer.conf b/meta-tlk/conf/layer.conf new file mode 100644 index 00000000..9af646f0 --- /dev/null +++ b/meta-tlk/conf/layer.conf @@ -0,0 +1,6 @@ +# We have a conf and classes directory, add to BBPATH +BBPATH := "${BBPATH}:${LAYERDIR}" + +# We have a packages directory, add to BBFILES +BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" diff --git a/meta-tlk/recipes-kernel/linux/linux-yocto/time-limited-kernel.cfg b/meta-tlk/recipes-kernel/linux/linux-yocto/time-limited-kernel.cfg new file mode 100644 index 00000000..44f4beaa --- /dev/null +++ b/meta-tlk/recipes-kernel/linux/linux-yocto/time-limited-kernel.cfg @@ -0,0 +1,3 @@ +CONFIG_UPTIME_LIMITED_KERNEL=y +CONFIG_UPTIME_LIMIT_DURATION=14400 +CONFIG_UPTIME_LIMIT_KERNEL_REBOOT=y diff --git a/meta-tlk/recipes-kernel/linux/linux-yocto_3.0.bbappend b/meta-tlk/recipes-kernel/linux/linux-yocto_3.0.bbappend new file mode 100644 index 00000000..58a6541c --- /dev/null +++ b/meta-tlk/recipes-kernel/linux/linux-yocto_3.0.bbappend @@ -0,0 +1,4 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +# enable the time limited kernel configuration options +SRC_URI += "file://time-limited-kernel.cfg" -- cgit v1.2.3-54-g00ecf