diff mbox

Added the empty package

Message ID 1334047948-7325-1-git-send-email-spdawson@gmail.com
State Superseded
Headers show

Commit Message

Simon Dawson April 10, 2012, 8:52 a.m. UTC
From: Simon Dawson <spdawson@gmail.com>

Signed-off-by: Simon Dawson <spdawson@gmail.com>
---
 package/Config.in       |    1 +
 package/empty/Config.in |    6 ++++++
 package/empty/empty.mk  |   19 +++++++++++++++++++
 3 files changed, 26 insertions(+), 0 deletions(-)
 create mode 100644 package/empty/Config.in
 create mode 100644 package/empty/empty.mk

Comments

Belisko Marek April 10, 2012, 9:06 a.m. UTC | #1
Hi,
On Tue, Apr 10, 2012 at 10:52 AM,  <spdawson@gmail.com> wrote:
> From: Simon Dawson <spdawson@gmail.com>
>
> Signed-off-by: Simon Dawson <spdawson@gmail.com>
> ---
>  package/Config.in       |    1 +
>  package/empty/Config.in |    6 ++++++
>  package/empty/empty.mk  |   19 +++++++++++++++++++
>  3 files changed, 26 insertions(+), 0 deletions(-)
>  create mode 100644 package/empty/Config.in
>  create mode 100644 package/empty/empty.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 4c6d4d8..205fa8a 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -426,6 +426,7 @@ endmenu
>  endmenu
>
>  menu "Miscellaneous"
> +source "package/empty/Config.in"
>  source "package/shared-mime-info/Config.in"
>  endmenu
>
> diff --git a/package/empty/Config.in b/package/empty/Config.in
> new file mode 100644
> index 0000000..67b09fc
> --- /dev/null
> +++ b/package/empty/Config.in
> @@ -0,0 +1,6 @@
> +config BR2_PACKAGE_EMPTY
> +       bool "empty"
> +       help
> +         Run processes and applications under pseudo-terminal (PTY) sessions.
> +
> +         http://empty.sourceforge.net/
> diff --git a/package/empty/empty.mk b/package/empty/empty.mk
> new file mode 100644
> index 0000000..d15a18f
> --- /dev/null
> +++ b/package/empty/empty.mk
> @@ -0,0 +1,19 @@
> +#############################################################
> +#
> +# empty
> +#
> +#############################################################
> +EMPTY_VERSION = 0.6.18b
> +EMPTY_SOURCE = empty-$(EMPTY_VERSION).tgz
> +EMPTY_SITE = http://downloads.sourceforge.net/project/empty/empty/empty-$(EMPTY_VERSION)
> +
> +define EMPTY_BUILD_CMDS
> +       $(MAKE) CC=$(TARGET_CC) LD=$(TARGET_LD) -C $(@D) all
Instead CC and LD use $(TARGET_CONFIGURE_OPTS) which does the job.
> +endef
> +
> +define EMPTY_INSTALL_TARGET_CMDS
> +       $(INSTALL) -D $(@D)/empty $(TARGET_DIR)/usr/bin
You need to specify name also for target directory so then:
   +       $(INSTALL) -D $(@D)/empty $(TARGET_DIR)/usr/bin/empty

> +       -$(STRIPCMP) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/empty
> +endef
> +
> +$(eval $(call GENTARGETS,package,empty))
> --
> 1.7.5.4
>
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

regards,

marek
Thomas Petazzoni April 10, 2012, 9:12 a.m. UTC | #2
Le Tue, 10 Apr 2012 11:06:57 +0200,
Belisko Marek <marek.belisko@gmail.com> a écrit :

> > +define EMPTY_INSTALL_TARGET_CMDS
> > +       $(INSTALL) -D $(@D)/empty $(TARGET_DIR)/usr/bin
> You need to specify name also for target directory so then:
>    +       $(INSTALL) -D $(@D)/empty $(TARGET_DIR)/usr/bin/empty
> 
> > +       -$(STRIPCMP) $(STRIP_STRIP_UNNEEDED)
> > $(TARGET_DIR)/usr/bin/empty +endef

No need to call $(STRIPCMP), this is done automatically by Buildroot.

> > +$(eval $(call GENTARGETS,package,empty))

The GENTARGETS arguments are useless.

Regards,

Thomas
diff mbox

Patch

diff --git a/package/Config.in b/package/Config.in
index 4c6d4d8..205fa8a 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -426,6 +426,7 @@  endmenu
 endmenu
 
 menu "Miscellaneous"
+source "package/empty/Config.in"
 source "package/shared-mime-info/Config.in"
 endmenu
 
diff --git a/package/empty/Config.in b/package/empty/Config.in
new file mode 100644
index 0000000..67b09fc
--- /dev/null
+++ b/package/empty/Config.in
@@ -0,0 +1,6 @@ 
+config BR2_PACKAGE_EMPTY
+	bool "empty"
+	help
+	  Run processes and applications under pseudo-terminal (PTY) sessions.
+
+	  http://empty.sourceforge.net/
diff --git a/package/empty/empty.mk b/package/empty/empty.mk
new file mode 100644
index 0000000..d15a18f
--- /dev/null
+++ b/package/empty/empty.mk
@@ -0,0 +1,19 @@ 
+#############################################################
+#
+# empty
+#
+#############################################################
+EMPTY_VERSION = 0.6.18b
+EMPTY_SOURCE = empty-$(EMPTY_VERSION).tgz
+EMPTY_SITE = http://downloads.sourceforge.net/project/empty/empty/empty-$(EMPTY_VERSION)
+
+define EMPTY_BUILD_CMDS
+	$(MAKE) CC=$(TARGET_CC) LD=$(TARGET_LD) -C $(@D) all
+endef
+
+define EMPTY_INSTALL_TARGET_CMDS
+	$(INSTALL) -D $(@D)/empty $(TARGET_DIR)/usr/bin
+	-$(STRIPCMP) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/empty
+endef
+
+$(eval $(call GENTARGETS,package,empty))