Skip to contentSkip to conversation

dhcp: needs MMU

PATCH New Gustavo Zacarias 2 participants 7 messages Apr 5, 2012 – May 6, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 dhcp: needs MMU

---
 package/dhcp/Config.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
package/dhcp/Config.in +2 -0
index 2245839..38cf007 100644
@@ -1,5 +1,7 @@
 config BR2_PACKAGE_DHCP
 	bool "isc dhcp"
+	# fork()
+	depends on BR2_USE_MMU
 	help
 	  DHCP relay agent from the ISC DHCP distribution.
 
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 2/6 openntpd: needs MMU

---
 package/openntpd/Config.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
package/openntpd/Config.in +2 -0
index 32d0d8b..4dd9a29 100644
@@ -1,5 +1,7 @@
 config BR2_PACKAGE_OPENNTPD
 	bool "openntpd"
+	# fork()
+	depends on BR2_USE_MMU
 	help
 	  OpenNTPD is an easy to use implementation of the Network Time
 	  Protocol. It provides the ability to sync the local clock
Signature · 1 line
1.7.3.4
#2 lore raw

PATCH 3/6 wget: needs MMU

In reply to Gustavo Zacarias
---
 package/wget/Config.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
package/wget/Config.in +2 -0
index 3877a3a..3f79a64 100644
@@ -1,5 +1,7 @@
 config BR2_PACKAGE_WGET
 	bool "wget"
+	# fork()
+	depends on BR2_USE_MMU
 	help
 	  Network utility to retrieve files from http, https and ftp.
 
Signature · 1 line
1.7.3.4
#3 lore raw

PATCH 4/6 ncftp: needs MMU

In reply to Gustavo Zacarias
---
 package/ncftp/Config.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
package/ncftp/Config.in +2 -0
index 7b6ae64..4aaa62d 100644
@@ -1,5 +1,7 @@
 config BR2_PACKAGE_NCFTP
 	bool "ncftp"
+	# fork()
+	depends on BR2_USE_MMU
 	help
 	  NcFTP Client (also known as just NcFTP) is a set of FREE application
 	  programs implementing the File Transfer Protocol (FTP).
Signature · 1 line
1.7.3.4
#4 lore raw

PATCH 5/6 rsync: needs MMU

In reply to Gustavo Zacarias
---
 package/rsync/Config.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
package/rsync/Config.in +2 -0
index 0f33774..be95a7c 100644
@@ -1,5 +1,7 @@
 config BR2_PACKAGE_RSYNC
 	bool "rsync"
+	# fork()
+	depends on BR2_USE_MMU
 	help
 	  File transfer program to keep remote files in sync.
 
Signature · 1 line
1.7.3.4
#5 lore raw

PATCH 6/6 dropbear: fix nommu build breakage

In reply to Gustavo Zacarias
---
 package/dropbear/dropbear-nommu.patch |   19 +++++++++++++++++++
 package/dropbear/dropbear.mk          |    5 +++++
 2 files changed, 24 insertions(+), 0 deletions(-)
 create mode 100644 package/dropbear/dropbear-nommu.patch
package/dropbear/dropbear-nommu.patch new file +19 -0
new file mode 100644
index 0000000..cf228e1
@@ -0,0 +1,19 @@
+Get rid of the last lingering fork() for nommu systems.
+
+Signed-off-by: Gustavo Zacarias <[email protected]>
+
+diff -Nura dropbear-2012.55/svr-main.c dropbear-2012.55-nommu/svr-main.c
+--- dropbear-2012.55/svr-main.c	2012-02-23 10:47:06.000000000 -0300
++++ dropbear-2012.55-nommu/svr-main.c	2012-04-05 10:46:19.639718670 -0300
+@@ -262,7 +262,11 @@
+ #ifdef DEBUG_NOFORK
+ 			fork_ret = 0;
+ #else
++# ifdef __uClinux__
++			fork_ret = vfork();
++# else
+ 			fork_ret = fork();
++# endif
+ #endif
+ 			if (fork_ret < 0) {
+ 				dropbear_log(LOG_WARNING, "Error forking: %s", strerror(errno));
package/dropbear/dropbear.mk +5 -0
index fea96d6..3ce5a0e 100644
@@ -10,6 +10,11 @@ DROPBEAR_TARGET_BINS = dbclient dropbearkey dropbearconvert scp ssh
 DROPBEAR_MAKE =	$(MAKE) MULTI=1 SCPPROGRESS=1 \
 		PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp"
 
+# bfin 2011R1-RC4 toolchain doesn't define __uClinux__
+ifneq ($(BR2_USE_MMU),y)
+DROPBEAR_MAKE += CPPFLAGS="-D__uClinux__"
+endif
+
 ifeq ($(BR2_PREFER_STATIC_LIB),y)
 DROPBEAR_MAKE += STATIC=1
 endif
Signature · 1 line
1.7.3.4