Commit db6fb49e authored by Thomas De Schampheleire's avatar Thomas De Schampheleire Committed by Peter Korsgaard
Browse files

jq: enable host package



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: default avatarThomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 8a837869
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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"
+11 −0
Original line number Diff line number Diff line
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/
+3 −0
Original line number Diff line number Diff line
@@ -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))