[leaf-commits] src/bering-uclibc4/source/setserial buildtool.cfg, NONE, 1.1 buildtool.mk, NONE, 1.1 setserial-2.17.tar.gz, NONE, 1.1 setserial-tiocghayesesp-build-fix.patch, NONE, 1.1 setserial.sh, NONE, 1.1
Andrew <[email protected]>
| Newsgroups | gmane.linux.leaf.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/leaf/src/bering-uclibc4/source/setserial In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv24677/source/setserial Added Files: buildtool.cfg buildtool.mk setserial-2.17.tar.gz setserial-tiocghayesesp-build-fix.patch setserial.sh Log Message: Patch for compilation for 2.6.33+ kernels --- NEW FILE: setserial.sh --- #!/bin/sh RCDLINKS="S,S19" test -f /bin/setserial || exit 0 test -f /etc/serial.conf || exit 0 grep -Ev '^ *(#.*)? *$' < /etc/serial.conf | while read device args do /bin/setserial -z $device $args done --- NEW FILE: buildtool.mk --- include $(MASTERMAKEFILE) SETSERIAL_DIR:=setserial-2.17 SETSERIAL_TARGET_DIR:=$(BT_BUILD_DIR)/setserial $(SETSERIAL_DIR)/.source: zcat $(SETSERIAL_SOURCE) | tar -xvf - cat $(PATCH1) | patch -p1 -d $(SETSERIAL_DIR) touch $(SETSERIAL_DIR)/.source $(SETSERIAL_DIR)/.configured: $(SETSERIAL_DIR)/.source cd $(SETSERIAL_DIR); CFLAGS="$(BT_COPT_FLAGS)" ./configure \ --host=$(GNU_HOST_NAME) \ --prefix=/usr touch $(SETSERIAL_DIR)/.configured $(SETSERIAL_DIR)/.build: $(SETSERIAL_DIR)/.configured $(MAKE) -C $(SETSERIAL_DIR) mkdir -p $(BT_STAGING_DIR)/bin mkdir -p $(BT_STAGING_DIR)/etc mkdir -p $(BT_STAGING_DIR)/etc/init.d cp -a -f $(SETSERIAL_DIR)/setserial $(BT_STAGING_DIR)/bin cp -a -f $(SETSERIAL_DIR)/serial.conf $(BT_STAGING_DIR)/etc/serial.conf cp -a -f $(SETSERIAL_INITD) $(BT_STAGING_DIR)/etc/init.d/setserial.sh touch $(SETSERIAL_DIR)/.build source: $(SETSERIAL_DIR)/.source build: $(SETSERIAL_DIR)/.build clean: -rm $(SETSERIAL_DIR)/.build rm -rf $(SETSERIAL_TARGET_DIR) $(MAKE) -C $(SETSERIAL_DIR) clean rm -f $(BT_STAGING_DIR)/etc/init.d/setserial.sh rm -f $(BT_STAGING_DIR)/etc/serial.conf rm -f $(BT_STAGING_DIR)/bin/setserial srcclean: rm -rf $(SETSERIAL_DIR) --- NEW FILE: setserial-tiocghayesesp-build-fix.patch --- [PATCH] setserial: fix build with 2.6.33+ kernel headers linux/hayesesp.h got removed in 2.6.33, but some archs (like x86) still define the TIOCGHAYESESP ioctl, breaking the build. It's very unlikely to be of interest anymore, so just undef it. Signed-off-by: Peter Korsgaard <[email protected]> --- setserial.c | 5 +++++ 1 file changed, 5 insertions(+) Index: setserial-2.17/setserial.c =================================================================== --- setserial-2.17.orig/setserial.c +++ setserial-2.17/setserial.c @@ -24,6 +24,11 @@ #endif #include <linux/serial.h> +/* linux/hayesesp.h got removed in 2.6.33 but some archs (like x86) + still define TIOCGHAYESESP. It's very unlikely to be of interest + anymore, so just undef it */ +#undef TIOCGHAYESESP + #include "version.h" static char version_str[] = "setserial version " SETSERIAL_VERSION ", " --- NEW FILE: setserial-2.17.tar.gz --- (This appears to be a binary file; contents omitted.) --- NEW FILE: buildtool.cfg --- <File buildtool.mk> Server = cvs4-sourceforge Directory = setserial Revision = HEAD </File> <File setserial-2.17.tar.gz> Server = cvs4-sourceforge Directory = setserial Revision = HEAD envname = SETSERIAL_SOURCE </File> <File setserial-tiocghayesesp-build-fix.patch> Server = cvs4-sourceforge Directory = setserial Revision = HEAD envname = PATCH1 </File> <File setserial.sh> Server = cvs4-sourceforge Directory = setserial Revision = HEAD envname = SETSERIAL_INITD </File> <Package> <serial> Version = 2.17 Revision = 3 Help <<EOF Serial driver config tool LRP package by __PACKAGER__, __BUILDDATE__ EOF <Permissions> Files = 644 Directories = 755 </Permissions> <Owner> Files = root:root Directories = root:root </Owner> <Contents> <File> Source = etc/serial.conf Filename = etc/serial.conf Type = conf Type = local Type = binary # Permissions = 600 </File> <File> Source = bin/setserial Filename = bin/setserial Type = binary Permissions = 755 </File> <File> Source = etc/init.d/setserial.sh Filename = etc/init.d/setserial.sh Type = binary Permissions = 755 </File> </Contents> </serial> </Package> ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev