diff mbox series

sdk: expose PATENTED an NLS build options

Message ID 20230124153217.295211-1-tmn505@terefe.re
State Superseded
Headers show
Series sdk: expose PATENTED an NLS build options | expand

Commit Message

Tomasz Maciej Nowak Jan. 24, 2023, 3:32 p.m. UTC
From: Tomasz Maciej Nowak <tmn505@gmail.com>

Some packages offer functionalities guarded by these options and it'll
be impossible to reach them without changing Config-build.in. So allow
to toggle these in more friendly way, by exposing them in configuration
menu.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
---
 target/sdk/files/Config.in | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
diff mbox series

Patch

diff --git a/target/sdk/files/Config.in b/target/sdk/files/Config.in
index 12c0f6a6246c..e0b8160e5dfb 100644
--- a/target/sdk/files/Config.in
+++ b/target/sdk/files/Config.in
@@ -18,6 +18,24 @@  menu "Global build settings"
 		bool "Cryptographically sign package lists"
 		default y
 
+	comment "General build options"
+
+	config BUILD_PATENTED
+		default n
+		bool "Compile with support for patented functionality"
+		help
+		  When this option is disabled, software which provides patented functionality
+		  will not be built.  In case software provides optional support for patented
+		  functionality, this optional support will get disabled for this package.
+
+	config BUILD_NLS
+		default n
+		bool "Compile with full language support"
+		help
+		  When this option is enabled, packages are built with the full versions of
+		  iconv and GNU gettext instead of the default OpenWrt stubs. If uClibc is
+		  used, it is also built with locale support.
+
 	comment "Package build options"
 
 	config DEBUG