Skip to contentSkip to conversation

svn commit: trunk/buildroot/package/microcom

Buildroot aldot at uclibc.org 1 participant 1 message Jan 19, 2007

lore
Share & tools
lore
#0 lore raw

Author: aldot
Date: 2007-01-19 11:14:33 -0800 (Fri, 19 Jan 2007) New Revision: 17386

Log:
- make it build.. compile-tested only. Closes #970

Added:
trunk/buildroot/package/microcom/microcom-102-001-speed-defines.patch trunk/buildroot/package/microcom/microcom-102-002-rename-variable-log.patch

Modified:
trunk/buildroot/package/microcom/microcom.mk

Changeset:
Added: trunk/buildroot/package/microcom/microcom-102-001-speed-defines.patch
===================================================================

buildroot/package/microcom/microcom-102-001-speed-defines.patch +34 -0
@@ -0,0 +1,34 @@
+diff -rdup microcom-1.02.orig/help.c microcom-1.02/help.c
+--- microcom-1.02.orig/help.c	2000-07-30 06:15:47.000000000 +0200
++++ microcom-1.02/help.c	2007-01-19 19:44:19.000000000 +0100
+@@ -273,12 +273,29 @@ static void help_set_speed(int fd, char 
+     B19200,
+     B38400,
+     B57600,
++#if defined B115200
+     B115200,
++#endif
++#if defined B230400
+     B230400,
++#endif
++#if defined B460800
+     B460800
++#endif
+   };
++#undef __STOPCHAR
++#if defined B115200
++#define __STOPCHAR 'h'
++#endif
++#if defined B230400
++#define __STOPCHAR 'i'
++#endif
++#if defined B460800
++#define __STOPCHAR 'j'
++#endif
+ 
+-  if (c < 'a' && c > 'j') {
++
++  if (c < 'a' && c > __STOPCHAR) {
+     if (c == '~') {
+       help_speed();
+       return;

Added: trunk/buildroot/package/microcom/microcom-102-002-rename-variable-log.patch
===================================================================

buildroot/package/microcom/microcom-102-002-rename-variable-log.patch +78 -0

78 lines not on this page · raw message

Modified: trunk/buildroot/package/microcom/microcom.mk
===================================================================

buildroot/package/microcom/microcom.mk +5 -1
@@ -45,7 +45,11 @@
 	touch $@
 
 $(MICROCOM_DIR)/microcom: $(MICROCOM_DIR)/.configured
-	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(MICROCOM_DIR)
+	$(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS)" $(MAKE) -C $(MICROCOM_DIR)
+	#(cd $(MICROCOM_DIR) ; \
+	# $(TARGET_CC) $(TARGET_CFLAGS) --combine -fwhole-program -o $@ $(wildcard $(MICROCOM_DIR)/*.c); \
+	#)
+	$(STRIP) -s $@
 
 $(TARGET_DIR)/usr/bin/microcom: $(MICROCOM_DIR)/microcom
 	install -c $(MICROCOM_DIR)/microcom $(TARGET_DIR)/usr/bin/microcom