Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: aldot at uclibc.org <aldot@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package:  setserial
Date: Tue,  6 Feb 2007 01:04:44 -0800 (PST)	[thread overview]
Message-ID: <20070206090444.17F164864B@busybox.net> (raw)

Author: aldot
Date: 2007-02-06 01:04:44 -0800 (Tue, 06 Feb 2007)
New Revision: 17786

Log:
- add setserial package


Added:
   trunk/buildroot/package/setserial/
   trunk/buildroot/package/setserial/Config.in
   trunk/buildroot/package/setserial/setserial.mk

Modified:
   trunk/buildroot/package/Config.in


Changeset:
Modified: trunk/buildroot/package/Config.in
===================================================================
--- trunk/buildroot/package/Config.in	2007-02-06 01:20:12 UTC (rev 17785)
+++ trunk/buildroot/package/Config.in	2007-02-06 09:04:44 UTC (rev 17786)
@@ -209,6 +209,7 @@
 source "package/pciutils/Config.in"
 source "package/pcmcia/Config.in"
 source "package/raidtools/Config.in"
+source "package/setserial/Config.in"
 if !BR2_PACKAGE_BUSYBOX_HIDE_OTHERS
 # busybox has fdisk
 source "package/sfdisk/Config.in"

Added: trunk/buildroot/package/setserial/Config.in
===================================================================
--- trunk/buildroot/package/setserial/Config.in	                        (rev 0)
+++ trunk/buildroot/package/setserial/Config.in	2007-02-06 09:04:44 UTC (rev 17786)
@@ -0,0 +1,5 @@
+config BR2_PACKAGE_SETSERIAL
+        bool "setserial"
+        default n
+        help
+             Setserial : configuration of serial ports

Added: trunk/buildroot/package/setserial/setserial.mk
===================================================================
--- trunk/buildroot/package/setserial/setserial.mk	                        (rev 0)
+++ trunk/buildroot/package/setserial/setserial.mk	2007-02-06 09:04:44 UTC (rev 17786)
@@ -0,0 +1,71 @@
+#############################################################
+#
+# Setserial
+#
+#############################################################
+SETSERIAL_VERSION:=2.17
+SETSERIAL_SOURCE:=setserial_$(SETSERIAL_VERSION).orig.tar.gz
+SETSERIAL_SITE:=http://ftp.debian.org/debian/pool/main/s/setserial/
+SETSERIAL_PATCH:=setserial_$(SETSERIAL_VERSION)-43.diff.gz
+SETSERIAL_DIR:=$(BUILD_DIR)/setserial-$(SETSERIAL_VERSION)
+SETSERIAL_BINARY:=setserial
+SETSERIAL_TARGET_BINARY:=usr/bin/setserial
+
+$(DL_DIR)/$(SETSERIAL_SOURCE):
+	$(WGET) -P $(DL_DIR) $(SETSERIAL_SITE)/$(SETSERIAL_SOURCE)
+
+$(SETSERIAL_DIR)/.unpacked: $(DL_DIR)/$(SETSERIAL_SOURCE)
+	$(ZCAT) $(DL_DIR)/$(SETSERIAL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+	$(CONFIG_UPDATE) $(SETSERIAL_DIR)
+	toolchain/patch-kernel.sh $(SETSERIAL_DIR) package/setserial setserial\*.patch
+ifneq ($(SETSERIAL_PATCH),)
+	toolchain/patch-kernel.sh $(SETSERIAL_DIR) $(DL_DIR) $(SETSERIAL_PATCH)
+	if [ -d $(SETSERIAL_DIR)/debian/patches ]; then \
+		toolchain/patch-kernel.sh $(SETSERIAL_DIR) $(SETSERIAL_DIR)/debian/patches \*.patch ; \
+	fi
+endif
+	touch $@
+
+ifeq ($(BR2_PREFER_IMA),y)
+SETSERIAL_CFLAGS=--combine -fwhole-program
+endif
+
+$(SETSERIAL_DIR)/.configured: $(SETSERIAL_DIR)/.unpacked
+	(cd $(SETSERIAL_DIR); rm -rf config.cache ; \
+		$(TARGET_CONFIGURE_OPTS) \
+		CFLAGS="$(TARGET_CFLAGS) $(SETSERIAL_CFLAGS)" \
+		./configure \
+		--target=$(GNU_TARGET_NAME) \
+		--host=$(GNU_TARGET_NAME) \
+		--build=$(GNU_HOST_NAME) \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+	);
+	touch $@
+
+$(SETSERIAL_DIR)/$(SETSERIAL_BINARY): $(SETSERIAL_DIR)/.configured
+	$(MAKE) CC=$(TARGET_CC) -C $(SETSERIAL_DIR)
+
+$(TARGET_DIR)/$(SETSERIAL_TARGET_BINARY): $(SETSERIAL_DIR)/$(SETSERIAL_BINARY)
+	install -c $(SETSERIAL_DIR)/$(SETSERIAL_BINARY) $(TARGET_DIR)/$(SETSERIAL_TARGET_BINARY)
+	$(STRIP) -s $(TARGET_DIR)/$(SETSERIAL_TARGET_BINARY)
+
+setserial: uclibc $(TARGET_DIR)/$(SETSERIAL_TARGET_BINARY)
+
+setserial-source: $(DL_DIR)/$(SETSERIAL_SOURCE) $(DL_DIR)/$(SETSERIAL_PATCH)
+
+setserial-clean:
+	rm -f $(TARGET_DIR)/$(SETSERIAL_TARGET_BINARY)
+	-$(MAKE) -C $(SETSERIAL_DIR) clean
+
+setserial-dirclean:
+	rm -rf $(SETSERIAL_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_SETSERIAL)),y)
+TARGETS+=setserial
+endif

                 reply	other threads:[~2007-02-06  9:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070206090444.17F164864B@busybox.net \
    --to=aldot@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox