瀏覽代碼

update and fix native build

Waldemar Brodkorb 13 年之前
父節點
當前提交
9ff94ff55f
共有 2 個文件被更改,包括 21 次插入6 次删除
  1. 2 2
      package/pcmciautils/Makefile
  2. 19 4
      package/pcmciautils/patches/patch-Makefile

+ 2 - 2
package/pcmciautils/Makefile

@@ -4,9 +4,9 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=		pcmciautils
-PKG_VERSION:=		017
+PKG_VERSION:=		018
 PKG_RELEASE:=		1
-PKG_MD5SUM:=		ee5837214d297661c8b8189055a351fc
+PKG_MD5SUM:=		3c388cb559975b37a75cb5965e9800a9
 PKG_DESCR:=		Utilities for PCMCIA subsystem
 PKG_SECTION:=		utils
 PKG_BUILDDEP:=		sysfsutils

+ 19 - 4
package/pcmciautils/patches/patch-Makefile

@@ -1,6 +1,6 @@
 --- pcmciautils-017.orig/Makefile	2010-01-06 16:47:45.000000000 +0100
-+++ pcmciautils-017/Makefile	2010-07-30 17:34:46.000000000 +0200
-@@ -94,12 +94,13 @@ PWD = $(shell pwd)
++++ pcmciautils-017/Makefile	2011-07-15 12:41:55.000000000 +0200
+@@ -94,16 +94,19 @@ PWD = $(shell pwd)
  # If you are running a cross compiler, you may want to set this
  # to something more interesting, like "arm-linux-".  If you want
  # to compile vs uClibc, that can be done here as well.
@@ -15,7 +15,22 @@
  HOSTCC = gcc
  
  export CROSS CC AR STRIP RANLIB CFLAGS LDFLAGS LIB_OBJS ARCH_LIB_OBJS CRT0
-@@ -264,30 +265,31 @@ clean:
+ 
++CFLAGS ?=
++
+ # code taken from uClibc to determine the current arch
+ ARCH := ${shell $(CC) -dumpmachine | sed -e s'/-.*//' -e 's/i.86/i386/' -e 's/sparc.*/sparc/' \
+ 	-e 's/arm.*/arm/g' -e 's/m68k.*/m68k/' -e 's/powerpc/ppc/g'}
+@@ -215,7 +218,7 @@ all: ccdv $(PCCARDCTL) $(PCMCIA_CHECK_BR
+ ccdv: build/ccdv
+ build/ccdv: build/ccdv.c
+ 	@echo "Building ccdv"
+-	@$(HOSTCC) -O1 $< -o $@
++	$(HOSTCC) $(CFLAGS_FOR_BUILD) -O1 $< -o $@
+ 
+ %.o : %.c ccdv
+ 	$(QUIET) $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
+@@ -264,30 +267,31 @@ clean:
  
  install-hotplug:
  	$(INSTALL) -d $(DESTDIR)$(hotplugdir)
@@ -54,7 +69,7 @@
  
  uninstall-tools:
  	- rm -f $(DESTDIR)$(sbindir)/$(PCCARDCTL)
-@@ -296,22 +298,24 @@ uninstall-tools:
+@@ -296,22 +300,24 @@ uninstall-tools:
  
  install-config:
  	$(INSTALL) -d $(DESTDIR)$(pcmciaconfdir)