IoT.js: modify Kconfig to be called with Runtime Environment title
authorsunghan <sh924.chang@samsung.com>
Fri, 22 Sep 2017 12:13:24 +0000 (21:13 +0900)
committersunghan <sh924.chang@samsung.com>
Fri, 22 Sep 2017 12:13:24 +0000 (21:13 +0900)
1. Split Kconfig from external's
2. Call it from os/Kconfig.runtime to get "Runtime Environment" title
   at 1st depth of menuconfig

external/Kconfig
external/iotjs/Kconfig.runtime [new file with mode: 0644]
os/Kconfig.runtime

index c692dbb..e80cdca 100644 (file)
@@ -136,27 +136,5 @@ config AWS_SDK
        ---help---
                enable AWS IoT Device SDK
 
-config ENABLE_IOTJS
-       bool "IoT.js"
-       default n
-       ---help---
-               Enable IoT.js framework
-
-if ENABLE_IOTJS
-
-config IOTJS_PRIORITY
-        int "IoT.js task priority"
-        default 100
-
-config IOTJS_STACKSIZE
-        int "IoT.js stack size"
-        default 32768
-
-config IOTJS_JERRY_HEAP
-        int "Jerryscript Heaplimit"
-        default 128
-
-endif #ENABLE_IOTJS
-
 source "$EXTERNALDIR/json/Kconfig"
 source "$EXTERNALDIR/codecs/Kconfig"
diff --git a/external/iotjs/Kconfig.runtime b/external/iotjs/Kconfig.runtime
new file mode 100644 (file)
index 0000000..12428b8
--- /dev/null
@@ -0,0 +1,27 @@
+#
+# For a description of the syntax of this configuration file,
+# see kconfig-language at https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt
+#
+
+config ENABLE_IOTJS
+       bool "IoT.js"
+       default n
+       ---help---
+               Enable IoT.js framework
+
+if ENABLE_IOTJS
+
+config IOTJS_PRIORITY
+        int "IoT.js task priority"
+        default 100
+
+config IOTJS_STACKSIZE
+        int "IoT.js stack size"
+        default 32768
+
+config IOTJS_JERRY_HEAP
+        int "Jerryscript Heaplimit"
+        default 128
+
+endif #ENABLE_IOTJS
+
index 9309605..c3e3fe3 100644 (file)
@@ -3,3 +3,4 @@
 # see kconfig-language at https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt
 #
 
+source "$EXTERNALDIR/iotjs/Kconfig.runtime"