Browse Source

hide linux kernel config for bare-metal

Waldemar Brodkorb 7 years ago
parent
commit
054925c991
2 changed files with 3 additions and 4 deletions
  1. 1 2
      Config.in
  2. 2 2
      target/config/Config.in.libc

+ 1 - 2
Config.in

@@ -19,8 +19,6 @@ source "target/config/Config.in.boards"
 source "target/config/Config.in.kernelfmt"
 source "target/config/Config.in.arch"
 source "target/config/Config.in.endian"
-
-
 source "target/config/Config.in.system"
 source "target/config/Config.in.systemopts"
 source "target/config/Config.in.subsystem"
@@ -45,6 +43,7 @@ source "target/config/Config.in.runtime"
 endmenu
 
 menu "Linux Kernel configuration"
+	visible if ADK_TARGET_OS_LINUX
 source "target/config/Config.in.kernelversion"
 source "target/config/Config.in.kernelcfg"
 source "target/config/Config.in.kernelcmd"

+ 2 - 2
target/config/Config.in.libc

@@ -166,7 +166,7 @@ prompt "Threading"
 
 config ADK_TARGET_WITH_NPTL
 	bool "enable NPTL"
-	depends on ADK_TARGET_SUPPORTS_NPTL && ADK_TARGET_SUPPORTS_THREADS
+	depends on ADK_TARGET_SUPPORTS_NPTL && ADK_TARGET_SUPPORTS_THREADS && !ADK_TARGET_LIB_NEWLIB
 
 config ADK_TARGET_WITH_LT
 	bool "enable Linuxthreads"
@@ -174,7 +174,7 @@ config ADK_TARGET_WITH_LT
 
 config ADK_TARGET_WITHOUT_THREADS
 	bool "disable threads"
-	depends on ADK_TARGET_LIB_UCLIBC_NG
+	depends on ADK_TARGET_LIB_UCLIBC_NG || ADK_TARGET_LIB_NEWLIB
 
 endchoice