Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] mount debugfs when applicable
@ 2012-09-21 19:11 tom.zanussi
  2012-09-21 19:11 ` [PATCH 1/1] initscripts/sysfs.sh: mount debugfs if present tom.zanussi
  0 siblings, 1 reply; 3+ messages in thread
From: tom.zanussi @ 2012-09-21 19:11 UTC (permalink / raw)
  To: openembedded-core

From: Tom Zanussi <tom.zanussi@intel.com>

If debugfs is available, it should be mounted and made available
to users.  This patch mounts it if present.

The following changes since commit df74f8d9a8b1500da3fffd77f12ec8d1900d0bf6:

  gcc: Use 4.7.2 release tarball (2012-09-21 14:55:32 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib.git tzanussi/debugfs-mount
  http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=tzanussi/debugfs-mount

Tom Zanussi (1):
  initscripts/sysfs.sh: mount debugfs if present

 meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh | 4 ++++
 meta/recipes-core/initscripts/initscripts_1.0.bb       | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

-- 
1.7.11.4




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] initscripts/sysfs.sh: mount debugfs if present
  2012-09-21 19:11 [PATCH 0/1] mount debugfs when applicable tom.zanussi
@ 2012-09-21 19:11 ` tom.zanussi
  2012-09-24 10:26   ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: tom.zanussi @ 2012-09-21 19:11 UTC (permalink / raw)
  To: openembedded-core

From: Tom Zanussi <tom.zanussi@intel.com>

debugfs is another kernel virtual file system that should be mounted
if configured, so if it's configured into the kernel, mount it.

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
---
 meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh | 4 ++++
 meta/recipes-core/initscripts/initscripts_1.0.bb       | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh b/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh
index bd87dcd..0cfe76e 100644
--- a/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh
@@ -17,3 +17,7 @@ fi
 if [ -e /sys ] && grep -q sysfs /proc/filesystems && ! [ -e /sys/class ]; then
   mount -t sysfs sysfs /sys
 fi
+
+if [ -e /sys/kernel/debug ] && grep -q debugfs /proc/filesystems; then
+  mount -t debugfs debugfs /sys/kernel/debug
+fi
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index b741b61..d25838b 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "Initscripts provide the basic system startup initialization scrip
 SECTION = "base"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
-PR = "r136"
+PR = "r137"
 
 INHIBIT_DEFAULT_DEPS = "1"
 
-- 
1.7.11.4




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] initscripts/sysfs.sh: mount debugfs if present
  2012-09-21 19:11 ` [PATCH 1/1] initscripts/sysfs.sh: mount debugfs if present tom.zanussi
@ 2012-09-24 10:26   ` Richard Purdie
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2012-09-24 10:26 UTC (permalink / raw)
  To: tom.zanussi; +Cc: openembedded-core

On Fri, 2012-09-21 at 14:11 -0500, tom.zanussi@intel.com wrote:
> From: Tom Zanussi <tom.zanussi@intel.com>
> 
> debugfs is another kernel virtual file system that should be mounted
> if configured, so if it's configured into the kernel, mount it.
> 
> Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
> ---
>  meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh | 4 ++++
>  meta/recipes-core/initscripts/initscripts_1.0.bb       | 2 +-
>  2 files changed, 5 insertions(+), 1 deletion(-)

Merged to master, thanks.

Richard




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-24 11:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-21 19:11 [PATCH 0/1] mount debugfs when applicable tom.zanussi
2012-09-21 19:11 ` [PATCH 1/1] initscripts/sysfs.sh: mount debugfs if present tom.zanussi
2012-09-24 10:26   ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox