summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/base-files/Makefile4
-rw-r--r--target/config/Config.in.runtime6
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