From 70a42f6597b06f9be12db1bd32bb6a97d4a2e182 Mon Sep 17 00:00:00 2001 From: dir Date: Wed, 28 Feb 2018 21:03:58 +0100 Subject: Add option to mount debugfs at startup @upstream --- package/base-files/Makefile | 4 ++++ target/config/Config.in.runtime | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index e9dd3d9cc..95f22f6f0 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -93,6 +93,10 @@ endif endif ifeq ($(ADK_RUNTIME_INIT_SYSVINIT),y) cp ./files/inittab.sysvinit $(IDIR_BASE_FILES)/etc/inittab +endif +ifeq ($(ADK_RUNTIME_MOUNT_DEBUGFS),y) + echo debugfs /sys/kernel/debug debugfs defaults 0 0 >> $(IDIR_BASE_FILES)/etc/fstab + echo null::sysinit:/bin/mount -a -t debugfs >> $(IDIR_BASE_FILES)/etc/inittab endif test -z $(ADK_RUNTIME_HOSTNAME) || \ echo $(ADK_RUNTIME_HOSTNAME) > $(IDIR_BASE_FILES)/etc/hostname; \ diff --git a/target/config/Config.in.runtime b/target/config/Config.in.runtime index 7697bcaf9..9c9b9cd49 100644 --- a/target/config/Config.in.runtime +++ b/target/config/Config.in.runtime @@ -188,6 +188,12 @@ config ADK_RUNTIME_USER_SHELL help Set the shell to use. +config ADK_RUNTIME_MOUNT_DEBUGFS + bool "mount debugfs" + depends on !ADK_RUNTIME_INIT_SYSTEMD + help + mount debugfs under /sys/kernel/debug + config ADK_RUNTIME_START_SERVICES bool "start services by default" default n -- cgit v1.2.3