Currently utelnetd skips the patch procedure after extracting the package.
This patch fixes that.

It also adds a patch to utelnetd to make it use the EXTRA_CFLAGS during 
compilation
of the package. This is required for some architectures to pass flags like
CPU-type to the compilation.

Signed-off-by: Remy Bohmer <[EMAIL PROTECTED]>
---
 patches/utelnetd-0.1.9/generic/adapt-makefile-for-arch-specific-build.patch |  
 26 ++++++++++
 patches/utelnetd-0.1.9/generic/series                                       |  
  1 
 rules/utelnetd.make                                                         |  
  4 +
 3 files changed, 30 insertions(+), 1 deletion(-)

Index: ptxdist-trunk/rules/utelnetd.make
===================================================================
--- ptxdist-trunk.orig/rules/utelnetd.make      2008-08-05 22:54:27.000000000 
+0200
+++ ptxdist-trunk/rules/utelnetd.make   2008-08-05 23:22:10.000000000 +0200
@@ -47,6 +47,7 @@ $(STATEDIR)/utelnetd.extract: $(utelnetd
        @$(call targetinfo, $@)
        @$(call clean, $(UTELNETS_DIR))
        @$(call extract, UTELNETD)
+       @$(call patchin, UTELNETD)
        @$(call touch, $@)
 
 # ----------------------------------------------------------------------------
@@ -66,7 +67,8 @@ $(STATEDIR)/utelnetd.prepare: $(utelnetd
 utelnetd_compile: $(STATEDIR)/utelnetd.compile
 
 UTELNETD_ENVIRONMENT += PATH=$(CROSS_PATH)
-UTELNETD_MAKEVARS    += CROSS=$(COMPILER_PREFIX)
+UTELNETD_MAKEVARS    += CROSS=$(COMPILER_PREFIX) \
+                       EXTRA_CFLAGS='$(call remove_quotes,$(TARGET_CFLAGS))'
 
 $(STATEDIR)/utelnetd.compile: $(utelnetd_compile_deps_default)
        @$(call targetinfo, $@)
Index: 
ptxdist-trunk/patches/utelnetd-0.1.9/generic/adapt-makefile-for-arch-specific-build.patch
===================================================================
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
+++ 
ptxdist-trunk/patches/utelnetd-0.1.9/generic/adapt-makefile-for-arch-specific-build.patch
   2008-08-05 23:27:29.000000000 +0200
@@ -0,0 +1,26 @@
+---
+ Makefile |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+Index: utelnetd-0.1.9/Makefile
+===================================================================
+--- utelnetd-0.1.9.orig/Makefile       2003-08-08 09:25:18.000000000 +0200
++++ utelnetd-0.1.9/Makefile    2007-08-29 12:54:35.000000000 +0200
+@@ -35,7 +35,7 @@ OBJS      = utelnetd.o
+ CC        = $(CROSS)gcc
+ INSTALL   = install
+
+-CFLAGS         += -I. -pipe -DSHELLPATH=\"$(LOGIN)\" -Wall
++CFLAGS         += $(EXTRA_CFLAGS) -I. -pipe -DSHELLPATH=\"$(LOGIN)\" -Wall
+
+ ifneq ("","$(DEBUG)")
+ CFLAGS   += -DDEBUG -g -Os
+@@ -53,7 +53,7 @@ endif
+ all: $(PROGS)
+
+ $(PROGS): $(OBJS)
+-      $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
++      $(CC) $(LDFLAGS) $(EXTRA_CFLAGS) $^ $(LDLIBS) -o $@
+       $(STRIP) --remove-section=.comment --remove-section=.note $@
+
+ .PHONY: install
Index: ptxdist-trunk/patches/utelnetd-0.1.9/generic/series
===================================================================
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
+++ ptxdist-trunk/patches/utelnetd-0.1.9/generic/series 2008-08-05 
23:24:54.000000000 +0200
@@ -0,0 +1 @@
+adapt-makefile-for-arch-specific-build.patch

-- 


--
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to