diff options
author | dir <diez.roggisch@ableton.com> | 2018-02-28 21:03:58 +0100 |
---|---|---|
committer | dir <dir@ableton.com> | 2018-08-13 17:54:03 +0200 |
commit | 70a42f6597b06f9be12db1bd32bb6a97d4a2e182 (patch) | |
tree | 83c060bb6e269ee4267c7e59dac4242faf8bfa69 | |
parent | 922ca0cee6fd1c5b64e4a66c0167bb385f410bf2 (diff) |
Add option to mount debugfs at startup
@upstream
-rw-r--r-- | package/base-files/Makefile | 4 | ||||
-rw-r--r-- | target/config/Config.in.runtime | 6 |
2 files changed, 10 insertions, 0 deletions
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 @@ -94,6 +94,10 @@ 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; \ echo "127.0.0.1 localhost" > $(IDIR_BASE_FILES)/etc/hosts 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 |