Skip to contentSkip to conversation

neardal: add support for ncl tool

PATCH New spdawson at gmail.com 2 participants 2 messages Apr 26, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 neardal: add support for ncl tool

From: Simon Dawson <[email protected]>

---
 package/neardal/Config.in  |    6 ++++++
 package/neardal/neardal.mk |    8 ++++++++
 2 files changed, 14 insertions(+)
package/neardal/Config.in +6 -0
index 045ccee..b3ac67d 100644
@@ -13,3 +13,9 @@ config BR2_PACKAGE_NEARDAL
 
 comment "neardal requires a toolchain with WCHAR and threads support"
 	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
+
+config BR2_PACKAGE_NEARDAL_NCL
+	bool "neardal ncl tool"
+	depends on BR2_PACKAGE_NEARDAL
+	help
+	  Build and install neardal ncl command line interpreter tool.
package/neardal/neardal.mk +8 -0
index 9625f0e..b937acb 100644
@@ -14,4 +14,12 @@ NEARDAL_LICENSE_FILES = COPYING
 NEARDAL_DEPENDENCIES = host-pkgconf dbus dbus-glib
 NEARDAL_AUTORECONF = YES
 
+define NEARDAL_INSTALL_NCL
+	$(INSTALL) -m 0755 -D $(@D)/ncl/ncl $(TARGET_DIR)/usr/bin/ncl
+endef
+
+ifeq ($(BR2_PACKAGE_NEARDAL_NCL),y)
+	NEARDAL_POST_INSTALL_TARGET_HOOKS += NEARDAL_INSTALL_NCL
+endif
+
 $(eval $(autotools-package))
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 neardal: add support for ncl tool

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"spdawson" == spdawson <[email protected]> writes:

spdawson> From: Simon Dawson <[email protected]> spdawson> Signed-off-by: Simon Dawson <[email protected]> spdawson> ---

 spdawson>  package/neardal/Config.in  |    6 ++++++
 spdawson>  package/neardal/neardal.mk |    8 ++++++++

spdawson> 2 files changed, 14 insertions(+)

spdawson> diff --git a/package/neardal/Config.in b/package/neardal/Config.in spdawson> index 045ccee..b3ac67d 100644
spdawson> --- a/package/neardal/Config.in
spdawson> +++ b/package/neardal/Config.in
spdawson> @@ -13,3 +13,9 @@ config BR2_PACKAGE_NEARDAL

spdawson> comment "neardal requires a toolchain with WCHAR and threads support"
spdawson> depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
spdawson> +
spdawson> +config BR2_PACKAGE_NEARDAL_NCL
spdawson> + bool "neardal ncl tool"
spdawson> + depends on BR2_PACKAGE_NEARDAL
spdawson> + help
spdawson> + Build and install neardal ncl command line interpreter tool.

The sub option should go right after the BR2_PACKAGE_NEARDAL so menuconfig considers it a sub option and indents it, so I moved it above the comment and committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard