jq: enable host package
authorThomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Mon, 19 Oct 2015 10:42:09 +0000 (12:42 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 25 Oct 2015 20:36:23 +0000 (21:36 +0100)
Allow building jq as host utility for use in post-build scripts.
This can be useful to created, edit, merge or even perform syntax checking
on JSON files.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/Config.in.host
package/jq/Config.in.host [new file with mode: 0644]
package/jq/jq.mk

index 1f69687b30ac6eee0d5409a2447a890769dd37be..ce1b6bcad84ef6110856f1aa87a57dcd9e5bffd6 100644 (file)
@@ -13,6 +13,7 @@ menu "Host utilities"
        source "package/genimage/Config.in.host"
        source "package/genpart/Config.in.host"
        source "package/imx-usb-loader/Config.in.host"
+       source "package/jq/Config.in.host"
        source "package/lpc3250loader/Config.in.host"
        source "package/mke2img/Config.in.host"
        source "package/mtd/Config.in.host"
diff --git a/package/jq/Config.in.host b/package/jq/Config.in.host
new file mode 100644 (file)
index 0000000..a0aabc0
--- /dev/null
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_HOST_JQ
+       bool "host jq"
+       help
+         jq is like sed for JSON data - you can use it to slice and filter
+         and map and transform structured data with the same ease that sed,
+         awk, grep and friends let you play with text.
+
+         As a host tool, jq can be useful to create/edit/merge/check JSON
+         files from a post-build script.
+
+         http://stedolan.github.io/jq/
index 8053e392f237c36eff2ae48228e990441d82553c..9a094ba9a0b87875b320ce262a6ca9f67a80d5f1 100644 (file)
@@ -11,8 +11,11 @@ JQ_LICENSE_FILES = COPYING
 
 # uses c99 specific features
 JQ_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=c99"
+HOST_JQ_CONF_ENV += CFLAGS="$(HOST_CFLAGS) -std=c99"
 
 # jq explicitly enables maintainer mode, which we don't need/want
 JQ_CONF_OPTS += --disable-maintainer-mode
+HOST_JQ_CONF_OPTS += --disable-maintainer-mode
 
 $(eval $(autotools-package))
+$(eval $(host-autotools-package))